I am having trouble plotting the range of the NQ of the range of the ES, and display that fraction as an indicator. The NQ is the primary series and the ES is called via AddDataSeries. The indicator complies fine but nothing plots on the chart. Thank you for your help.
AddPlot(new Stroke(Brushes.Green, 1), PlotStyle.Line, "other");
}
else if (State == State.Configure)
{
AddDataSeries("ES 12-19", BarsPeriodType.Second, 10);
}
}
protected override void OnBarUpdate()
{
if(CurrentBars[0] < 1 || CurrentBars[1] < 1) return;
if(BarsInProgress != 0) return;
double a = High[0] - Low[0];
double b = Highs[0][0] - Lows[0][0];
Values[0][0] = a / b;
Comment