I need some help troubleshooting an error that keeps popping up while my strategy is running real-time.
Error on calling 'OnBarUpdate' method on bar 634: 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.
From searching on here, it seems like this error would occur at the start of session since there may not be enough bars. I've had my strategy running since last night and there are hundreds of bars on the chart before it hit the error.
Where should I look?
Comment