|
Bangkok Thailand
Posts: 36 since May 2016
Thanks Given: 15
Thanks Received: 17
|
I use 1-minute interval as data1, 1 day interval as data2. Same instrument (USD.JPY in this case)
I need to access 2,000 bars back for code involving the 1 minute interval. I the 1 day interval to analyze the last 15 bar.
I get the error "Not enough series length" when I specify 2,000 as "maximum number of bars study will reference", unless I load 2,000 days of data. This is even for a trivial strategy that includes only the following code:
print ("d1",close of data1);
print ("d2",close of data2);
I don't need 2,000 days of data before the backtest period starts, is there a way to specify different "bars back" for the different intervals?
|