Error on calling 'OnBarUpdate' method for indicator 'paskbid' on bar 2: 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.
But this error only occurs when you use a template session different than the default, use instrument settings.
Why does this happen?
The indicator used in the strategy uses data from ticks, bid and ask.
If I insert the indicator directly on the chart looks good and there is no error.
The instrument is the Mini-Russell.
Thanks
Comment