Having some difficulty accessing daily data without engendering a very, very long one-minute chart, ie, instead of the usual "5 days" for a 1-minute chart, I need to go much longer in order to do any averaging of the secondary series daily data without getting the error message: "accessing an index with a value that is invalid since it is out-of-range." I have to go at least 364 days out.
To be more specific, here's a simple example:
Assuming the primary data series is 1 minute and the added series is 1 day:
"(Closes[0][0] - Closes[1][1]) / StdDev(Closes[1], 20)[1]" ...
... just doesn't want to work.
It seems possible to use a separate chart to streamwrite the necessary daily stats to a csv, then access that csv in the one-minute chart without concern about intraday changes to those figures (since daily stats from the day prior wouldn't change).
Is there any easier way you could envisage here?
Thank you!
POSTSCRIPT
For this particular example, I realized there is absolutely no reason for a second data series. That complication added nothing but surface the strange difficulty I encountered. This particular calculation can be made simply using Daily data. End of Inquiry. Thank you!
