I have a strategy that works correctly but when I go to the "backtest" with it, I get this message:
"Strategy 'AyudanteNT8': Error on calling 'OnStateChange' method: 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"
This problem only occurs with the "Stratety Analyzer" but not when I insert my strategy in a chart in real time.
Thanks in advance for your help.
Comment