- www.mql5.com
- MetaQuotes-Demo XAUUSD rollover time / server timezone / DST clarification
- TimeCurrent() and TimeTradeServer() functions
- Why can't I change the time zone?
Hello,
For the two dates you listed, MetaQuotes-Demo was operating at UTC+3:
- 1 September 2026: UTC+3
- 3 September 2026: UTC+3
This is consistent with the historical MetaQuotes-Demo behaviour of using UTC+2 in standard time and UTC+3 during the summer/DST period.
Regarding your other questions:
MqlTick.time and MqlTick.time_msc represent the same tick timestamp in the same time domain. The difference is only the precision: time is expressed in seconds, while time_msc represents the same tick time with millisecond precision.
TimeCurrent() represents the current trade-server time received with the quote. MetaQuotes documents that this is server time and is independent of the local computer clock.
In the Strategy Tester, TimeTradeServer() is simulated from the historical data, and MetaQuotes documentation states that during testing it is always equal to TimeCurrent() . So, when working with historical data inside MT5, these values should be treated as belonging to the same simulated server-time domain.
The one part I would be careful with is the DST transition rule itself. I am not aware of official MetaQuotes documentation that guarantees a permanent DST calendar for MetaQuotes-Demo for all historical periods and all instruments.
So for your specific dates, the answer is:
2026-09-01 → UTC+3
2026-09-03 → UTC+3
But if your goal is to convert arbitrary historical MetaQuotes-Demo timestamps to UTC deterministically over many years, I would not rely only on a hard-coded modern DST rule. A historical offset table, or offset information derived from the actual MetaQuotes data, would be safer.
The official MetaQuotes documentation supports the behaviour of TimeCurrent() and TimeTradeServer() in the tester, while the exact historical MetaQuotes-Demo UTC/DST convention is based more on observed server behaviour and long-standing forum information than on a clearly documented permanent MetaQuotes timezone specification.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use