- www.mql5.com
- Overview of Copy functions for obtaining arrays of quotes
- Daylight saving time (local)
- Local and server time
Is there known server/build-specific behavior that encodes server-wall-clock time in these Python fields? If so, is there an official explanation of affected fields, dates and conversion rules?
See Time zone Information Class (tzinfo) at:
Omega J Msigwa, 2025.11.25 11:58
Unlike MQL5, Python programming language offers control and flexibility when it comes to dealing with and manipulating time. In this article, we will implement similar modules for better handling of dates and time in MQL5 as in Python.I found two earlier discussions reporting similar Python timestamp discrepancies:
https://www.mql5.com/en/forum/375461
https://www.mql5.com/en/forum/483468
The replies suggest broker-time encoding despite the Python documentation stating UTC.
Could MetaQuotes confirm whether this applies to MetaQuotes-Demo build 6182, and which tick, bar and historical deal/order fields are affected?
We also have stale bars on some symbols, so a timezone adjustment alone would not resolve the full issue. No correction has been applied.
I also found a similar report on Stack Overflow, including a comment reporting UTC requests returning UTC+3:
https://stackoverflow.com/questions/79595025/timezones-and-offsets-handling-when-fetching-metatrader5-data-via-mt5-api
Could MetaQuotes clarify whether the same behavior applies to MetaQuotes-Demo build 6182 and how to establish the correct UTC interpretation for our retained records?
Could MetaQuotes clarify whether the same behavior applies to MetaQuotes-Demo build 6182...
I'm in the ET time zone (NY) which observes DST. The Metaquotes Demo server time has always returned 7 hours ahead of my local time. Therefore, the Metaquotes Demo server time observes DST. In my time zone conversions, all times relate back to GMT as a "constant" point of reference, if you will.
The trade server determines the time zone of the chart data─not any Build of MT5.
Thank you, Ryan. A separate read-only observation has now identified historical-data changes as well as the timestamp question.
Environment: MetaQuotes-Demo, terminal build 6182, MetaTrader5 Python package 5.0.5640. This package version was recorded for the new observation only.
On 10 September 2026, three planned calls to copy_rates_from_pos('EURJPY', TIMEFRAME_M30, 0, 240) returned:
-
At 20:07:09.760644 UTC: latest raw bar-open label 1789034400.
-
At 20:07:40.287144 UTC: latest raw bar-open label 1789081200.
-
At 20:08:10.758726 UTC: latest raw bar-open label remained 1789081200.
Two overlapping historical bar labels also changed between the first and second responses:
Raw bar-open 1788829200:
-
Close: 179.423 → 179.242
-
High: 179.434 → 179.440
-
Low: 179.375 → 179.232
-
Tick volume: 160 → 2054
Raw bar-open 1789034400:
-
Close: 178.620 → 178.559
-
High: 178.701 → 178.709
-
Low: 178.572 → 178.532
-
Tick volume: 2054 → 5752
We identified a client-side serialization/type-handling defect affecting price validation. The prices above were recovered from retained numeric representations during offline analysis. Raw timestamp and volume integers were unchanged. No timezone correction was applied.
We are not claiming a server defect. A stale or partial terminal cache becoming synchronized is one possible explanation. However, a timezone offset alone cannot explain changed prices and volumes at identical raw bar labels.
Could MetaQuotes or someone familiar with the terminal’s history synchronization clarify:
-
Can these changes result from a previously partial or stale local history cache being refreshed?
-
What documented read-only check establishes that the requested history is synchronized and sufficiently complete for use?
-
Are there existing history/version or synchronization records that could distinguish cache completion from a published historical correction?
-
What time convention applies to the raw Python bar timestamps for this server?
The separate newest-bar update may be forming-bar activity; the question above concerns the two historical labels and the changing window.
No account identifiers, credentials or private logs are attached. We would appreciate guidance based on these retained observations before considering any further collection.
Thank you.
Can these changes result from a previously partial or stale local history cache being refreshed?
Historic chart data can and does update sometimes. That is demonstrable by mistakenly using Bars() in lieu of rates_total in MQL5 indicator code.
What documented read-only check establishes that the requested history is synchronized and sufficiently complete for use?
For checking history of ticks against bars, I use:
Tick Audit - check real tick history and backtest quality month by month
Ayaz, 2026.09.05 06:13
Reports, month by month, whether your symbol really has ticks or only bars - so you know which part of your backtest ran on generated ticks before you trust the curve. The Strategy Tester gives you one History Quality figure after the test has finished, and it never says which months were the problem. This script asks first.For live data, there's RefreshRates():
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use