08/01/2020 01:27:19 | BarsInProgress: 3, 197 41449 MGC 08-21 540 Tick 08/01/2020 01:27:34 | BarsInProgress: 0, 1177 247814 MGC 08-21 90 Tick 08/01/2020 01:27:34 | BarsInProgress: 1, 1177 247814 MGC 08-21 90 Tick 08/01/2020 01:27:49 | BarsInProgress: 0, 1178 247814 MGC 08-21 90 Tick 08/01/2020 01:27:49 | BarsInProgress: 1, 1178 247814 MGC 08-21 90 Tick 08/01/2020 01:28:02 | BarsInProgress: 0, 1179 247814 MGC 08-21 90 Tick 08/01/2020 01:28:02 | BarsInProgress: 1, 1179 247814 MGC 08-21 90 Tick 08/01/2020 01:28:02 | BarsInProgress: 2, 393 82724 MGC 08-21 270 Tick 08/01/2020 01:28:21 | BarsInProgress: 0, 1180 247814 MGC 08-21 90 Tick 08/01/2020 01:28:21 | BarsInProgress: 1, 1180 247814 MGC 08-21 90 Tick 08/01/2020 01:28:58 | BarsInProgress: 0, 1181 247814 MGC 08-21 90 Tick 08/01/2020 01:28:58 | BarsInProgress: 1, 1181 247814 MGC 08-21 90 Tick 08/01/2020 01:29:12 | BarsInProgress: 0, 1182 247814 MGC 08-21 90 Tick 08/01/2020 01:29:12 | BarsInProgress: 1, 1182 247814 MGC 08-21 90 Tick Strategy 'aaaaaaaaaaaaaaaaaarrrrrrrrrrrrreeee': Error on calling 'OnBarUpdate' method on bar 1182: 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.
meaning error occurs during the 198th.
CurrentBar[3]'s value is 198. Correct me if Iam wrong but this would be the case if process was RealTime.
Since this is Historical, CurrentBar[3] 's value at the error is 197.

Comment