#define ASSETLIST "AssetsALP-VIX"
function run()
{
set(PLOTNOW+PRELOAD+COMMONSTART+LOGFILE);
LookBack = 0;
BarMode = BR_WEEKEND+BR_FLAT+BR_MARKET+BR_SLEEP+BR_LOGOFF;
BarPeriod = 1440;
BarOffset = 17*60; //shift the bar begin to 17:00 server time / 19:00 local time
StartDate = ifelse(Live,NOW,20180101);
EndDate = NOW;
Capital = 10000;
NumCores = -2;
if(is(INITRUN)) assetList(ASSETLIST);
if(Live) brokerCommand(SET_PRICETYPE, 2);
BarOffset = 17*60; //Shift bar start/end by x hours
asset("VXX");
printf("\n%d-%d-%d: price=%.2f",year(),month(),day(),priceClose());
}