within the OnBarUpdate()-method I use the following syntax.
Print(Closes[1].IsValidPlot(CurrentBar));
Print(Closes[1][0]);
When the first bar is processed, it puts out true for the first line of the code but gives an error at the second line.
The message:
You are accessing an index with a value that is invalid since its out of range
Does the first line of the syntax not work properly?
Comment