I'm trying to plot by specifying the bar number (e.g. High[BarNumber], Low[BarNumber]) but I can only plot lines for High[0], Low[0] or High[1] or Low[1], but not High[2], Low[2] or High[3], Low[3], etc.
I got error message:
Indicator 'RichardBarNumberTest': Error on calling 'OnBarUpdate' method on bar 1: 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. |
Thank you.
Richard
Comment