/// <summary> /// Creates a new CompositeIndicator capable of taking the output from the left and right indicators /// and producing a new value via the composer delegate specified /// </summary> /// <param name="left">The left indicator for the 'composer'</param> /// <param name="right">The right indidcator for the 'composoer'</param> /// <param name="composer">Function used to compose the left and right indicators</param> public CompositeIndicator(IndicatorBase <T> left, IndicatorBase <T> right, IndicatorComposer composer) : base(string.Format("COMPOSE({0},{1})", left.Name, right.Name)) { _composer = composer; Left = left; Right = right; }
/// <summary> /// Creates a new CompositeIndicator capable of taking the output from the left and right indicators /// and producing a new value via the composer delegate specified /// </summary> /// <param name="name">The name of this indicator</param> /// <param name="left">The left indicator for the 'composer'</param> /// <param name="right">The right indidcator for the 'composoer'</param> /// <param name="composer">Function used to compose the left and right indicators</param> public CompositeIndicator(string name, IndicatorBase <T> left, IndicatorBase <T> right, IndicatorComposer composer) : base(name) { _composer = composer; Left = left; Right = right; }
/// <summary> /// Creates a new CompositeIndicator capable of taking the output from the left and right indicators /// and producing a new value via the composer delegate specified /// </summary> /// <param name="name">The name of this indicator</param> /// <param name="left">The left indicator for the 'composer'</param> /// <param name="right">The right indidcator for the 'composoer'</param> /// <param name="composer">Function used to compose the left and right indicators</param> public CompositeIndicator(string name, IndicatorBase left, IndicatorBase right, IndicatorComposer composer) : base(name) { _composer = composer; Left = left; Right = right; ConfigureEventHandlers(); }
/// <summary> /// Creates a new CompositeIndicator capable of taking the output from the left and right indicators /// and producing a new value via the composer delegate specified /// </summary> /// <param name="left">The left indicator for the 'composer'</param> /// <param name="right">The right indidcator for the 'composoer'</param> /// <param name="composer">Function used to compose the left and right indicators</param> public CompositeIndicator(IndicatorBase left, IndicatorBase right, IndicatorComposer composer) : this($"COMPOSE({left.Name},{right.Name})", left, right, composer) { }
/// <summary> /// Creates a new CompositeIndicator capable of taking the output from the left and right indicators /// and producing a new value via the composer delegate specified /// </summary> /// <param name="left">The left indicator for the 'composer'</param> /// <param name="right">The right indidcator for the 'composoer'</param> /// <param name="composer">Function used to compose the left and right indicators</param> public CompositeIndicator(IndicatorBase <T> left, IndicatorBase <T> right, IndicatorComposer composer) : this(string.Format("COMPOSE({0},{1})", left.Name, right.Name), left, right, composer) { }