function run()
{
if(is(INITRUN))
{
assetList("AssetsStock");
History = "_d.t6";
asset("GOOGL");
StartDate = 2017;
EndDate = 2018;
BarPeriod = 60*24;
LookBack = 600;
//TimeFrame = 1;
//TradesPerBar = 1;
}
Verbose = 2;
set(LOGFILE|PLOTNOW); // log all trades
vars Prices = series(priceClose());
vars fastema = series(EMA(Prices,50));
vars slowema = series(EMA(Prices,80));
if(fastema[0]>slowema[0]) enterLong();
if(fastema[0]<slowema[0]) exitLong();
PlotWidth = 800;
PlotHeight1 = 300;
}
It looks the data can be loaded correctly, but Zorro always complains no bar generated:
Quote
stock_trend compiling........... Error 016: Date range 2019-06-28 00:00:00 - 2014-06-30 00:00:00 Error 055: No bars generated Error 047: No bars to plot!
Last edited by JesseL; 06/30/1910:06.
Re: Pls help: No bars generated from EOD history
[Re: JesseL]
#477466 06/30/1916:2006/30/1916:20