try this...
Code
function run() 
{
	
	StartDate = 20200301;
        EndDate = 20200314;
	
	BarZone = EST;
        BarPeriod = 5;
	BarMode = BR_MARKET;
	
	StartMarket = 0930;
	EndMarket = 1600;
	set(LOGFILE+PLOTNOW);
	setf(PlotMode, PL_FINE);
	
	// HistoryZone = UTC;
	
	
	asset("SPY");
        AssetZone = EST;
	AssetMarket = EST;

	vars Prices = series(priceClose());
}

Last edited by Grat; 06/12/20 12:37.