Hi,
I have this script:
function run()
{
NumCores = -1;
StartDate = 20200406;
BarPeriod = 15; // 15 min
LookBack = 200;
MaxLong = MaxShort = 15;
LifeTime = 16;
assetList("Assets4");
if (is(INITRUN))
assetHistory(Asset,0+1);
if (is(FIRSTINITRUN)){
assetHistory(Asset,1);
printf("\n%s after init------------------\n",Asset);
}
TakeProfit = 16*ATRS(90);
Stop = 12*ATRS(60);
ticket();
}
I trying the function assetHistory.
1. delete symbol_2020.t1 in history folder
2. FCE ticket - open orders - not important
3. start the TEST ( is a connected to MT4 )
in the MT4 / output in Strategy TAB:
2020.05.30 05:26:20.549 Zorro EURUSD,M15: Send 300 AUDNZD bars at 2020.01.03 12:00 (96373 - 96673)
2020.05.30 05:26:20.503 Zorro EURUSD,M15: Send 300 AUDNZD bars at 2020.01.03 16:59 (96074 - 96374)
2020.05.30 05:26:20.471 Zorro EURUSD,M15: Send 300 AUDNZD bars at 2020.01.03 21:59 (95775 - 96075) <--
2020.05.30 05:26:20.440 Zorro EURUSD,M15: Send 300 AUDNZD bars at 2020.01.06 03:08 (95476 - 95776) <--
2020.05.30 05:26:20.409 Zorro EURUSD,M15: Send 300 AUDNZD bars at 2020.01.06 08:07 (95177 - 95477)
2020.05.30 05:26:20.378 Zorro EURUSD,M15: Send 300 AUDNZD bars at 2020.01.06 13:06 (94878 - 95178)
Zorro skip from 2020/06/01 to 2020/03/01!! - without any notice
I trying many times, but every the same. MT4 broker is Global PRime