If i do Close.GetValueAt(CurrentBar-1), and there is a 1000 barindex in the chart, it will return bar 999. Right?
But for Close[999] it will return an error message:
Indicator 'NEWSDBA': Error on calling 'OnRender' method on bar 10037: You are accessing an index with a value that is invalid since it is out-of-range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
How can we get a specific barindex?
TY

Comment