my scripts are working OK, but as soon as I add VIX I have the error message
"7/7/2016 9:54:40 PM Strategy Error on calling 'OnBarUpdate' method for strategy 'a111xESxSxTlevelxVix/733b05791f3d4803b465f42df8e50d84': 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 do in Initialize
Add( "^VIX", PeriodType.Range,2); // dataseries 4
and I do in OnBarUpdate
if(Lows[4][0] <= Instrument.MasterInstrument.Round2TickSize(Donchia nChannel(BarsArray[4],21).Lower[0]))
When I remove the lines concerning VIX I have no message in logtab.
Thank you!
Tony
Comment