Example #1
0
 /// <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;
 }
Example #2
0
 /// <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;
 }
Example #3
0
 /// <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();
 }
Example #4
0
 /// <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)
 {
 }
Example #5
0
 /// <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)
 {
 }