MT5 XAUUSD tick history Request displays only the last day of the selected range
Hello MetaQuotes team,
I encountered an issue using Market Watch > Symbols > Ticks > Request in the MetaTrader 5 desktop terminal for XAUUSD on ICMarketsSC-Demo.
1. Date-range request: I selected 25–30 September 2026 and clicked Request. I expected MT5 to display the available ticks across that range. The results showed only ticks dated 30 September.
2. Separate single-day requests: Request worked for 25 September 2026. I then changed the selected date to 28 September 2026. Request succeeded for that date only after I closed and reopened MT5.
These are observations from the MT5 interface. The root cause is unverified, and I have no evidence that IC Markets’ historical tick data is missing or corrupted. Could you investigate how the terminal handles the selected date range and subsequent requests after the dates are changed?
Thank you.
Please post screenshots of what you get for these requests.
There is no investigation without clear evidences.
Alain's request for screenshots of the Ticks dialog is the right first step for a terminal-side investigation.
In parallel, I would not treat that dialog as the source of truth. CopyTicksRange() reads the same history the tester uses, and it makes it obvious whether the missing days are absent from the data or only missing from the UI.
The following script, dropped on the symbol, prints the first and last tick and a per-day count for the range you care about. from / to are in milliseconds.
#property script_show_inputs input datetime InpFrom = D'2026.09.25 00:00'; input datetime InpTo = D'2026.09.30 23:59'; void OnStart() { MqlTick ticks[]; ResetLastError(); int n = CopyTicksRange(_Symbol, ticks, COPY_TICKS_ALL, (ulong)InpFrom * 1000, (ulong)InpTo * 1000); if(n < 0) { PrintFormat("CopyTicksRange failed, GetLastError=%d", GetLastError()); return; } if(n == 0) { Print("CopyTicksRange returned 0 ticks for the selected range."); return; } PrintFormat("%s ticks=%d first=%s last=%s", _Symbol, n, TimeToString(ticks[0].time, TIME_DATE|TIME_SECONDS), TimeToString(ticks[n-1].time, TIME_DATE|TIME_SECONDS)); int day_ticks = 0; datetime day0 = ticks[0].time - (ticks[0].time % 86400); for(int i=0; i<n; i++) { datetime d = ticks[i].time - (ticks[i].time % 86400); if(d != day0) { PrintFormat(" %s %d ticks", TimeToString(day0, TIME_DATE), day_ticks); day0 = d; day_ticks = 0; } day_ticks++; } PrintFormat(" %s %d ticks", TimeToString(day0, TIME_DATE), day_ticks); }
How to read it:
- If several days have a non-zero count here, but the Ticks dialog only shows the last day, the history is present and the dialog is the problem. Screenshots of both the dialog and this Experts output would be the clean evidence.
- If only the last day has ticks in CopyTicksRange as well, the terminal does not have the earlier days locally. Then use Tools > History Center (or a tester run that forces a download) and run the script again.
- The need to restart the terminal before a second single-day request works is consistent with a UI cache issue; I have not seen CopyTicksRange itself require a restart.
I would also run the script once after a fresh terminal start, and once after changing the dates in the Ticks dialog, to see whether the dialog is poisoning the in-memory range.
Hello MetaQuotes team,
I encountered an issue using Market Watch > Symbols > Ticks > Request in the MetaTrader 5 desktop terminal for XAUUSD on ICMarketsSC-Demo.
1. Date-range request: I selected 25–30 September 2026 and clicked Request. I expected MT5 to display the available ticks across that range. The results showed only ticks dated 30 September.
2. Separate single-day requests: Request worked for 25 September 2026. I then changed the selected date to 28 September 2026. Request succeeded for that date only after I closed and reopened MT5.
These are observations from the MT5 interface. The root cause is unverified, and I have no evidence that IC Markets’ historical tick data is missing or corrupted. Could you investigate how the terminal handles the selected date range and subsequent requests after the dates are changed?
Thank you.