Error on calling 'OnBarUpdate' method for strategy 'simpleMAcrossover/e079022e094f4dacb681d61c50c21380': You are accessing an index with a value that is invalid since its out of range. I.E. accessing a series [barsAgo] with a value of 5 when there are only 4 bars on the chart.
I have used the following method but it is still working.
if (CurrentBar < 100)
return;
Could it be due to the fact that this is a multitimeframe strategy where I use:
Daily, hourly and min data?
Hope you can advise.
Comment