For example
public class Indicator_A : Indicator
{
Series<double> Func_X;
Series<double> Func_Y;
Series<double> Func_Filtered;
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
// Indicator Setup Stuff
}
else if (State == State.Configure)
{
Func_A = new Series<double>(this);
Func_B = new Series<double>(this);
Func_Filtered = new Series<double>(this);
}
else if (State == State.DataLoaded)
{
}
}
protected override void OnBarUpdate()
{
// Logic to define Func_X and Func_Y
// Simple Example
Func_X[0] = SMA( Open, 12 )[0];
Func_Y[0] = MACD( Close, 12, true, 26, 9 )[0];
[B]Func_Filtered[0] = Indicator_B( Func_X, Func_Y, 12, 7 );[/B]
}
How do I create overloaded constructors for Indicator_B to allow me to pass two Series to the indicator?

Comment