When I enable strategies, this error appears in the logs, and the strategy doesn't start.
Also, sometimes when they are running, they deactivate with the same error.
Here the error on logs : "Error on calling 'OnBarUpdate' method on bar 1632: 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."
Could you help me with this?

Comment