When converting my NT7 code to NT8, I also changed a lot of my variables to arrays to clean things up. However, when I loaded my strategy against a paper account feed from IB, the strategy immediately disables and shows the following error message:
Strategy 'PPJuly2018': Error on calling 'OnBarUpdate' method on bar 1: Index was outside the bounds of the array.
if ( CurrentBar < 100) { return; }
Strategy 'PPJuly2018': Error on calling 'OnBarUpdate' method on bar 100: Index was outside the bounds of the array. Disabling NinjaScript strategy (...)
Thanks in advance for any answers!
Comment