Strategy 'AIT_NIDFS_EO_210718': Error on calling 'OnBarUpdate' method on bar 42435: 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.
My generic backtest is from 1st of June, 2019 to 1st of June, 2021 (2 years).
At exactly 14th of March, 2020 it gives me the error posted above. I used prints, but still unable to find, where the problem lies. What is weird, that I tested the following:
1) 13th of March, 2020 - 15th of March, 2020 (1 day before and 1 day after error) - no error.
2) 1st of January, 2020 - 1st of July, 2020 (Half a year, in between of which the error supposedly should occur) - no error.
So what can be wrong?

Comment