I very often get this error while compiling an indicator and I don't know what to do. Any idea what I'm doing wrong?
Error on calling 'OnBarUpdate' method for indicator 'MyIndicator' on bar x: You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
Thanks.
Comment