I have a problem while running the optimizer on my strategies.
I randomly get errors like this : Strategy 'X': Error on calling 'OnBarUpdate' method on bar X: Index was outside the bounds of the array.
As I said, those errors happens randomly. The bar number that causes the error always changes between optimization (even with identical optimization parameters), and sometimes there are no errors at all (optimization runs fine and returns the results).
Also, I never get these errors while backtesting or while running my strategies live.
I searched the forum, and found this post : https://ninjatrader.com/support/foru...x-out-of-range
However, the solution mentioned in there didn't solve my problem.
Did anyone ever experienced this problem? Do anyone know why those errors could be so random?
Thank you,
Alexis
Comment