I am trying to code indicators for an intraday chart that are using historical data from the daily chart. I have been experimenting with AddDataSeries, but did not get very far. One of many reasons seems to be that if I needed 200 daily candles, but I am currently on a one minute chart, I would need to load an excessive amount of data (200 days of 1 minute candles).
Is it possible to manually load a set of historical data into an array independent of the time frame of the current chart?
I am imagining something like (pseudo-code)
//loads 200 closes of daily candles (not millions of 1 minute candles..)
array x = getHistoricalData(currentSymbol, "close", "d", 200);
and no matter on what chart I am, x[1] would be yesterday's daily close, x[2] the day before and so on..
Is there anything in NinjaScript that comes close to this code?
I really appreciate your help!

Comment