How can i revise to avoid the error?
else if (State == State.Configure)
{
AddDataSeries("ES DEC23", BarsPeriodType.Day, 1);
}
}
protected override void OnBarUpdate()
{
ESvol = ATR(Closes[1], Period)[0] / Closes[0];
Symbolvol = ATR(Period)[0] / Close[0];
Value[0] = Symbolvol / ESvol;
}​

Comment