I'm running a strategy on 5 min data.
I'm trying to compare yesterday close price to the current price.
I've added Add(PeriodType.Day, 1); to the Initialize method.
But when I'm trying to access Closes[1][1], I get the following error:
Error on calling 'OnBarUpdate' method for strategy 'BelowAbpveBB/e7d3f0df74b048b885437abed2ab16fb': 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.
Comment