How do you reproduce a Market validation timeout when the test stops on a different chart after each update?

I am testing an 11-symbol MT5 EA that checks positions once per second. I would like to reproduce a Market timeout locally. Three consecutive validation reports stopped at different points. All the tests listed below used netting accounts.

v1.47 (25 Nov) completed EURUSD H1 and XAUUSD D1 with “there are no trading operations”, then timed out on GBPUSD M30.
v1.48 (26 Nov) completed EURUSD H1 with the same no-trades message, then timed out on XAUUSD D1.
v1.49 (27 Nov) timed out on EURUSD H1, the first test listed. Its report says “tester takes too long time” followed by “strategy tester report not found”. It gives no simulated dates or last processed tick.

For a local comparison I ran v1.48 and v1.49 on XAUUSD D1, 2–19 November 2026, with a USD 10,000 netting account, the same history for all 11 symbols and the same one-second timer. After changing how ETH positions are reconciled and how BTC waiting records are reread, elapsed time fell from 3,298 to 2,184 seconds (33.8%). Both runs recorded the same 15 deals. That measures the saving on our local gold-chart run. We still do not know where the EURUSD validation run spent its time.

My next experiment would be to run the same EX5 on EURUSD H1 twice, first with a fresh tester history cache and then with the same cache populated. I would record elapsed time per simulated day, time inside OnTimer and time spent requesting history for each secondary symbol. For anyone who has reproduced this error, which measurement or tester setting actually exposed the bottleneck? Is there a supported way to see the last simulated timestamp reached by the Market agent so I can choose a comparable test window?

Earlier discussion of the separate no-trades issue and the v1.47 measurements: https://www.mql5.com/en/forum/521171#comment_60758400
Market validation: v1.30 passed, v1.41 reports no trades - how can I obtain diagnostic details?
Market validation: v1.30 passed, v1.41 reports no trades - how can I obtain diagnostic details?
  • 2026.11.18
  • www.mql5.com
Hello, I am the seller of product 202121. I need help obtaining enough information to reproduce an automatic Market validation result locally...

There is no supported way to retrieve the Market validation agent's last simulated timestamp: when "tester takes too long time" is followed by "strategy tester report not found", the agent process was terminated before flushing a report.

Your local timing already explains why Market validation fails: 2,184 seconds (~36 minutes) for just 17 simulated days (2-19 Nov 2026) scales to many hours over a multi-month or multi-year validation window, well past the validator's execution limit. Different updates stop on different charts simply because slight timing variance and startup history caching shift which pair crosses the wall-clock ceiling first.

With a 1-second OnTimer() polling 11 symbols (especially 24/7 crypto symbols like BTC/ETH alongside FX/Gold), the main bottlenecks in Strategy Tester are usually:

1. Running HistorySelect(0, TimeCurrent()) or full symbol scans inside OnTimer() 86,400 times per simulated day even when no bar closed and no position/order state changed.

2. Pulling CopyRates/CopyTicks/CopyBuffer across all 11 symbols on every timer tick instead of checking for a new bar or active exposure first.

To isolate whether the cost is HistorySelect(), secondary symbol loading, or position logic locally (using a multi-month Every tick run on EURUSD H1 with an uncached tester folder), accumulate GetMicrosecondCount() counters and log once in OnDeinit():

ulong g_us_timer = 0, g_us_hist = 0, g_cnt_timer = 0; // reset in OnInit
void OnTimer() {
   ulong t0 = GetMicrosecondCount();
   // ... position/order state checks ...
   ulong h0 = GetMicrosecondCount();
   // ... HistorySelect / CopyRates / symbol calls ...
   g_us_hist += (GetMicrosecondCount() - h0);
   g_us_timer += (GetMicrosecondCount() - t0); g_cnt_timer++;
}
// In OnDeinit(): PrintFormat("calls=%I64u timer_ms=%.1f hist_ms=%.1f", g_cnt_timer, g_us_timer/1000.0, g_us_hist/1000.0);

Once measured, moving deal/order reconciliation to OnTradeTransaction(), narrowing HistorySelect() to an incremental timestamp, and gating secondary symbol reads by SERIES_LASTBAR_DATE or open exposure normally cuts Strategy Tester runtime by an order of magnitude without changing trading behavior.