I understand that mt5 uses broker server time when back testing but when using for example Alpari, this causes data to use daylight savings time whereas I need to test
without any adjustments, ideally GMT for all of the data. Is this
possible in mt5? My code:
MqlDateTime mdt;
TimeCurrent(mdt);
if ((mdt.hour>=TradingTimeStart && mdt.hour<TradingTimeEnd))
I tried TimeGMT but as stated on mql5: During testing in the strategy tester, TimeGMT() is always equal to TimeTradeServer() simulated server time
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Hello,
I understand that mt5 uses broker server time when back testing but when using for example Alpari, this causes data to use daylight savings time whereas I need to test without any adjustments, ideally GMT for all of the data. Is this possible in mt5? My code:
I tried TimeGMT but as stated on mql5: During testing in the strategy tester, TimeGMT() is always equal to TimeTradeServer() simulated server time