Looking for some guidance please for a Strategy Script.
I have a strategy being applied to a Tick chart.
I also have indicator's (derived from the tick data) applied to the strategy chart.
I do so with this code (so far so good):
else if (State == State.DataLoaded)
{
ATRplot = ATR(200);
ATRplot.Plots[0].Brush = Brushes.Green;
ATRplot.Plots[0].Width = 2;
AddChartIndicator(ATRplot);
}
..but i think I am missing something.... because it seems like the ADX is only being partially plotted.
else if (State == State.Configure)
{
AddDataSeries(BarsPeriodType.Day, 1);
}
else if (State == State.DataLoaded)
{
dailyADX = new Series<double>(BarsArray[1]);
dailyADXplot = ADX(BarsArray[1], 14);
dailyADXplot.Plots[0].Brush = Brushes.Cyan;
dailyADXplot.Plots[0].Width = 2;
dailyADXplot.Panel=3;
AddChartIndicator(dailyADXplot);
}

Comment