- Universal Time
- Local and server time
- Date and Time
I am not fully sure that it is related to your question/issue but, anyway - look at the following:
Forum on trading, automated trading systems and testing trading strategies
MetaTrader5 Python API timestamp semantics: UTC or broker server time?
Sergey Golubev, 2026.09.30 08:50
It was already discussed many times, for example:
I am not fully sure that it is related to your question/issue but, anyway - look at the following:
Thank you, Sergey. I read the linked discussions, including Alain’s explanation distinguishing UTC-aware request parameters from broker-server-time outputs. I am not requesting another ticket.
Which explanation applies to this MetaQuotes-Demo EURUSD example from 5 October 2026, terminal build 6238, Python package 5.0.6231?
- Python UTC observation: 14:23:03.639290–14:23:03.640266.
- Native TimeGMT: 1791210183; TimeLocal: 1791217383.
- Identical native/Python tick time: 1791220983; time_msc: 1791220983280; bid/ask: 1.11886/1.11886.
- Native TimeCurrent and TimeTradeServer: both 1791220983.
Both APIs returned identical raw fields approximately three hours ahead when decoded as UTC, so this is not solely Python display conversion. Pairing was approximate; independent UTC brackets agreed to integer-second precision, not verified subsecond synchronization or arrival latency.
Does server-time encoding apply to these native tick fields too? If so, which MetaQuotes-Demo offset/DST rule and effective dates apply, including transition ambiguities? Otherwise, which recorded field or conversion is wrong?
Build 6241 was observed separately; no paired capture was made on that build. No offset has been applied. A server-specific reference or responsible contact would help.
Forum on trading, automated trading systems and testing trading strategies
Authoritative MetaQuotes-Demo tick timestamp and copy_ticks_range time-domain semantics
Alain Verleyen, 2026.09.24 17:35
I reported the documentation issue about datetime and timezone to MetaQuotes.
So you get different data because you request different datetime, python/MQL5 API request UTC datetime. But the data MT5 returns are ALWAYS broker server time data.
That seems pretty clear to me.
Detecting the server time offset is your job.
Please note MetaQuotes is NOT a broker and so MetaQuotes-Demo server should not be used for something else than technical tests.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use