Download MetaTrader 5

iTime do not work expected in strategy tester

To add comments, please log in or register
Yong Zheng
140
Yong Zheng  

Hello,

m‌y situation is that, I have a indicator running in strategy tester in MT4 build 1045. Test begin on 2013.01.01 00:00:00.

int OnCalculate(...) {
    Print( "Test: ", iTime( Symbol(), PERIOD_D1, 0 ), " Highest: ", iHigh( NULL, PERIOD_D1, 0 ), " Lowest: ", iLow( NULL, PERIOD_D1, 0 ) );
}

But what I got from that Print is always

‌2017.03.06 18:44:33.241 2013.01.08 11:00:00  TestIndicator EURUSD,M30: Test: 2012.12.31 00:00:00 Highest: 1.32338 Lowest: 1.31716‌

2017.03.06 18:44:32.304 2013.01.08 10:30:00  TestIndicator EURUSD,M30: Test: 2012.12.31 00:00:00 Highest: 1.32338 Lowest: 1.31716‌

‌‌I have downloaded all History data for EURUSD in History Center. Anyone knows whats here the problem is?

Marco vd Heijden
Moderator
5534
Marco vd Heijden  
To add comments, please log in or register