I have an indicator on a chart with a single instrument. I set instrument last day to load a day ago, to make sure it uses cache.
I added data series in state.configure:
else if (State == State.Configure)
{
AddDataSeries("AMG", new BarsPeriod { BarsPeriodType = BarsPeriodType.Minute, Value = 5 }, 20,"US Equities ETH", null);
AddDataSeries("AFL", new BarsPeriod { BarsPeriodType = BarsPeriodType.Minute, Value = 5 }, 20,"US Equities ETH", null);
… …….
}
Each time I reload the ninjascript, it take 1 mn to proceed, which is the duration it took initially.
I suspect it downloads all the data again, as I removed all calculation just to make sure it wasn't an issue with indicator calculation.
How could I prevent this, and force it to use what's in cache?
For backtesting purpose I only use this on historical data and don't need refresh or real time.

Comment