I can't see in the chart a second hosted indicator with second series input. Just I see the indicator but with primary data series besides is declarated with second data series.
I'm on two minutes chart.
---------------------------------------------------------------------------------
public class test : Strategy
{
private SMA sma50;
private SMA sma50_2;
protected override void OnStateChange()
{
if (State == State.SetDefaults)
{
....
}
else if (State == State.Configure)
{
AddDataSeries(BarsPeriodType.Minute, 15);
sma50 = SMA(Close, 50);
sma50.Plots[0].Brush = Brushes.White;
sma50_2 = SMA(Closes[1], 50);
sma50_2.Plots[0].Brush = Brushes.Yellow;
}
else if (State == State.DataLoaded)
{
AddChartIndicator(sma50);
AddChartIndicator(sma50_2);
}
protected override void OnBarUpdate()
{
....
}
}
Comment