Returning to Zorro after a long break. I have a FB.t6 file in the history folder with 5 second candle data for the past 2 years (checked with ZHistoryEditor that the data is valid). The file Assets5s.csv contains:
I attempt to run the following code, just to plot the price data for now
Code
function run()
{
set(PRELOAD);
BarPeriod = 5./60; // 5 second bars
TimeFrame = 1;
LookBack = 12000; // 200*5*12
StartDate = 2019;
EndDate = 2020;
assetList("History\\Assets5s.csv"); // load asset list
asset(Assets[0]);
vars pr = series(price());
//Plot results:
plot("Price",pr,NEW,BLUE);
set(LOGFILE,PLOTNOW);
}
Unfortunately, Zorro returns the error message `Error 055: No bars generated`. What is wrong with my syntax? How should I be using 5 second candle data to make Zorro actually recognize the candles?
Last edited by Kaga; 10/25/2016:35.
Entire Thread
Subject
Posted By
Posted
Error using 5 second time frame - what's wrong with my script?