Title: Terminal drops the trade server connection ~0.2 s after Strategy Tester start (TickmillUK-Live), builds 5800–6361

Description:
When a test is started in the Strategy Tester (also from the command line with /config), the terminal logs "automatic testing started" and 0.15–0.35 s later "connection to TickmillUK-Live lost", then re-authorizes within ~0.5 s. If a history/tick download is in progress at that moment, it is cancelled ("no history data, stop testing") or, in build 6061, hangs for up to ~13 minutes.

Facts:
- Reproduced with the standard "MACD Sample" (XAUUSD H1, 2026.10.01–2026.10.08, every tick based on real ticks) on builds 6061, 6230 and 6361, including a completely fresh 6361 installation with a clean configuration.
- Same fresh terminal, alternating servers on 29 Nov 2026, 11:21–11:24 CET: MetaQuotes-Demo 0 of 8 tests disconnected, TickmillUK-Live 6 of 8.
- A Windows ETW TCP trace shows that the terminal itself aborts the connection (local abort + RST) right after receiving the server's reply to the Tester's initial requests; successful runs receive the same data in the same TCP segments.
- The frequency varies with time of day (29 Nov: 00:10–00:38 – 2 of 41 tests; 10:45–11:24 – 36 of 38). It has been present since at least April 2026 (build 5800).

Question: what condition makes the terminal close the trade server connection at Tester start, and is there a fix or a setting to avoid it? I can provide terminal and tester logs and the TCP trace.

Broker: Tickmill UK Ltd, server TickmillUK-Live; Windows 11 build 26200.
Nothing is reproduced as long as you don´t provide the needed evidences. You need to post the logs from the Terminal (Journal) and the Tester at minimum.
Alain Verleyen #:
Nothing is reproduced as long as you don´t provide the needed evidences. You need to post the logs from the Terminal (Journal) and the Tester at minimum.

Thank you. Below are the Journal and Tester logs (account number, IP and MQL5 login masked). Times are local (GMT+1). Expert: standard Examples\MACD\MACD Sample with default inputs, XAUUSD H1, 2026.10.01–2026.10.08, every tick based on real ticks, deposit 70000 PLN, leverage 1:30, started with terminal64.exe /portable /config:<file>.ini ([Tester] section only).

Example A – build 6361, 29 Nov 2026 (disconnect, test still finishes because ticks are already cached)

Journal:

10:45:36.691 Terminal Tickmill UK MT5 Terminal x64 build 6361 started for Tickmill UK Ltd 10:45:36.695 MCP started on 127.0.0.1:22346 10:45:39.090 Network '<account>': authorized on TickmillUK-Live through Live AS - London 1 (ping: 59.35 ms, build 6182) 10:45:39.364 Network '<account>': terminal synchronized with Tickmill UK Ltd: 7 positions, 1 orders, 101 symbols, 0 spreads 10:45:39.426 Tester automatic testing started 10:45:39.620 Network '<account>': connection to TickmillUK-Live lost 10:45:39.822 Network '<account>': authorized on TickmillUK-Live through Live AS - London 1 (ping: 59.35 ms, build 6182) 10:45:40.051 Network '<account>': terminal synchronized with Tickmill UK Ltd: 7 positions, 1 orders, 101 symbols, 0 spreads

Tester:

10:45:39.401 Tester  "Examples\MACD\MACD Sample.ex5" X64
10:45:39.546 Tester  XAUUSD: history data begins from 2024.03.15 00:00
10:45:39.549 Tester  XAUUSD: preliminary downloading of history ticks started, it may take quite a long time
10:45:39.549 Tester  XAUUSD: preliminary downloading of history ticks completed
10:45:40.304 Tester  USDPLN: preliminary downloading of history ticks completed

Example B – build 6230, 26 Nov 2026 (disconnect while ticks are downloading – test fails)

Journal:

22:30:35.395 Terminal Tickmill UK MT5 Terminal x64 build 6230 started for Tickmill UK Ltd 22:30:37.277 Network '<account>': authorized on TickmillUK-Live through Live AS - London 1 (ping: 47.12 ms, build 6182) 22:30:37.538 Network '<account>': terminal synchronized with Tickmill UK Ltd: 1 positions, 2 orders, 101 symbols, 0 spreads 22:30:37.587 Tester automatic testing started 22:30:38.493 Network '<account>': connection to TickmillUK-Live lost 22:30:39.066 Network '<account>': authorized on TickmillUK-Live through Live AS - London 1 (ping: 47.12 ms, build 6182) 22:30:39.812 Tester last test passed with result "some error after pass finished" in 0:00:00.000

Tester:

22:30:37.692 Tester  XAUUSD: history data begins from 2024.03.15 00:00
22:30:37.693 Tester  XAUUSD: preliminary downloading of history ticks started, it may take quite a long time
22:30:37.693 Tester  XAUUSD: "bases\TickmillUK-Live\ticks\XAUUSD\202611.tkc" download
22:30:38.709 Tester  XAUUSD: preliminary downloading of history ticks canceled
22:30:38.709 Tester  no history data, stop testing

Additional facts:

  • On 29 Nov 2026, 10:45–11:06 (GMT+1), 40 of 40 tests disconnected this way on builds 6230 and 6361, including a fresh 6361 installation with a clean configuration.
  • The same fresh terminal, alternating servers (11:21–11:24): MetaQuotes-Demo 0 of 8 disconnected, TickmillUK-Live 6 of 8.
  • The same pattern appears in our logs from April–May 2026 (builds 5800/5833, before the MCP server existed).
  • A Windows TCP trace shows that the terminal itself closes the connection (local abort + RST) right after receiving the server's reply to the Tester's first requests.

What makes the terminal drop the trade server connection right after the Tester starts, and is there a fix or setting to avoid it? Full logs are available on request.

Przemysław Izbicki #:

Thank you. Below are the Journal and Tester logs (account number, IP and MQL5 login masked). Times are local (GMT+1). Expert: standard Examples\MACD\MACD Sample with default inputs, XAUUSD H1, 2026.10.01–2026.10.08, every tick based on real ticks, deposit 70000 PLN, leverage 1:30, started with terminal64.exe /portable /config:<file>.ini ([Tester] section only).

Example A – build 6361, 29 Nov 2026 (disconnect, test still finishes because ticks are already cached)

Journal:

10:45:36.691 Terminal Tickmill UK MT5 Terminal x64 build 6361 started for Tickmill UK Ltd 10:45:36.695 MCP started on 127.0.0.1:22346 10:45:39.090 Network '<account>': authorized on TickmillUK-Live through Live AS - London 1 (ping: 59.35 ms, build 6182) 10:45:39.364 Network '<account>': terminal synchronized with Tickmill UK Ltd: 7 positions, 1 orders, 101 symbols, 0 spreads 10:45:39.426 Tester automatic testing started 10:45:39.620 Network '<account>': connection to TickmillUK-Live lost 10:45:39.822 Network '<account>': authorized on TickmillUK-Live through Live AS - London 1 (ping: 59.35 ms, build 6182) 10:45:40.051 Network '<account>': terminal synchronized with Tickmill UK Ltd: 7 positions, 1 orders, 101 symbols, 0 spreads

Tester:

Example B – build 6230, 26 Nov 2026 (disconnect while ticks are downloading – test fails)

Journal:

22:30:35.395 Terminal Tickmill UK MT5 Terminal x64 build 6230 started for Tickmill UK Ltd 22:30:37.277 Network '<account>': authorized on TickmillUK-Live through Live AS - London 1 (ping: 47.12 ms, build 6182) 22:30:37.538 Network '<account>': terminal synchronized with Tickmill UK Ltd: 1 positions, 2 orders, 101 symbols, 0 spreads 22:30:37.587 Tester automatic testing started 22:30:38.493 Network '<account>': connection to TickmillUK-Live lost 22:30:39.066 Network '<account>': authorized on TickmillUK-Live through Live AS - London 1 (ping: 47.12 ms, build 6182) 22:30:39.812 Tester last test passed with result "some error after pass finished" in 0:00:00.000

Tester:

Additional facts:

  • On 29 Nov 2026, 10:45–11:06 (GMT+1), 40 of 40 tests disconnected this way on builds 6230 and 6361, including a fresh 6361 installation with a clean configuration.
  • The same fresh terminal, alternating servers (11:21–11:24): MetaQuotes-Demo 0 of 8 disconnected, TickmillUK-Live 6 of 8.
  • The same pattern appears in our logs from April–May 2026 (builds 5800/5833, before the MCP server existed).
  • A Windows TCP trace shows that the terminal itself closes the connection (local abort + RST) right after receiving the server's reply to the Tester's first requests.

What makes the terminal drop the trade server connection right after the Tester starts, and is there a fix or setting to avoid it? Full logs are available on request.

I think you (your AI agent) misunderstood. I don't asked you again more explanation, I asked you the log FILES. Not an excerpt, not a ill-formatted copy and paste.

I will not even read your post sorry, I don't have time to lose reading all this AI slop.

Alain Verleyen #:

I think you (your AI agent) misunderstood. I don't asked you again more explanation, I asked you the log FILES. Not an excerpt, not a ill-formatted copy and paste.

I will not even read your post sorry, I don't have time to lose reading all this AI slop.

Attached are the full terminal Journal and Tester log files from 29 Nov 2026 (build 6361, account/IP masked). Example: "automatic testing started" at 10:45:39.426, "connection to TickmillUK-Live lost" at 10:45:39.620.

Analysis of your posts and logs :

Read both files. Both claims fail against them — and the logs show something different from the narrative.

Files

File Size Coverage
20261129_terminal_journal.log 85,364 B 10:45:36.558 → 11:06:21 (two terminal sessions)
20261129_tester.log 6,042,950 B same window, 27,6xx lines

Claim 1 — "download is cancelled → 'no history data, stop testing'"

Not present in these logs. Zero occurrences.

  • no history data → 0 matches in both files
  • cancel (covers canceled / cancelled ) → 0 matches
  • Every preliminary downloading of history ticks started is followed by completed in the same millisecond — ticks were already cached, nothing was ever in flight:

11:02:55.714 Tester XAUUSD: preliminary downloading of history ticks started, it may take quite a long time 11:02:55.714 Tester XAUUSD: preliminary downloading of history ticks completed 11:02:55.714 Tester XAUUSD: ticks data begins from 2026.09.03 00:00

So the archive cannot support this claim either way. Note however that the mechanism is consistent with the timing: the connection drop lands 0.15–0.19 s after test start, exactly inside the window where the tick request is issued — in these runs that request takes 0 ms because it is cached, so nothing is lost. A genuinely uncached run would straddle the drop. Plausible, unproven.

Claim 2 — "build 6061 hangs for up to ~13 minutes"

Not present, and the 13 minutes in this file has a different cause.

  • 6061 → 0 matches in both files. Everything is build 6361 ( agent build 6361 , ... build 6182 for the server).
  • There is a 13 min 39 s gap: 10:49:13 → 11:02:55. It is a harness restart, not a hang:

10:49:13.015 Core 01 XAUUSD,H1: total time from login to stop testing 0:00:01.792 10:49:13.058 Tester automatic testing finished 10:49:13.058 Core 01 connection closed 10:49:14.218 Tester last test passed with result "successfully finished" in 0:00:00.766 10:49:14.412 Terminal exit with code 0 10:49:14.866 Terminal shutdown with 0 11:02:53.351 Startup successfully initialized from start config "C:\MT5_Diag6361\diag_alt_1.ini" 11:02:53.388 Terminal Tickmill UK MT5 Terminal x64 build 6361 started

The tester closed cleanly, the terminal exited with code 0, and a new instance was launched 13m39s later. If a 6061 hang exists, it is not in this archive.


What the logs do show

20 tests, not 40. Each one is a separate terminal launch from its own config ( diag_alt_1.ini , diag_alt_2.ini , diag_alt_3.ini …), one test per launch, then exit with code 0 . Session 1: 10 tests (10:45:39 – 10:49:09). Session 2: 10 tests (11:02:55 – 11:06:17).

Every one of the 20 disconnects, and every one of the 20 tests passes.

10:46:05.414 Tester automatic testing started 10:46:05.582 Network 'XXXXXXXX': connection to TickmillUK-Live lost ← +0.168 s 10:46:05.834 Network 'XXXXXXXX': authorized on TickmillUK-Live ... ← +0.252 s 10:46:06.051 Network 'XXXXXXXX': terminal synchronized ... 10:46:09.589 Tester last test passed with result "successfully finished" in 0:00:00.675 10:46:09.773 Terminal exit with code 0

Start→loss gaps for all 20 (seconds):

0.194 0.168 0.153 0.182 0.149 0.144 0.151 0.165 0.166 0.149 0.191 0.158 0.151 0.156 0.144 0.166 0.160 0.164 0.154 0.145

min 0.144 · max 0.194 · mean 0.161 · 100 % (20/20), consistent across both sessions and 10 different .ini launches. Reconnect takes 0.20–0.34 s, full re-sync 0.43 s.

So:

  • His "0.15–0.35 s" is close but the upper bound is unsupported — nothing above 0.194 s.
  • "40 of 40" and "36 of 38" — the file contains exactly 20 tests, all in 10:45–11:06; the journal ends at 11:06:21, so nothing exists for the claimed 11:06–11:24 stretch, let alone 41 tests at 00:10–00:38.
  • All 20 tests finished successfully finished in 0.567–0.797 s. The disconnect damaged nothing in this evidence.

Two other things worth quoting back

  1. Each drop happens before the tester agent even starts ( agent process started on 127.0.0.1:3000 comes ~0.7 s after the loss). That is the signature of the terminal re-establishing its session at test start, not of a test being interrupted.
  2. Only one disconnect is unrelated to tester start, and it is clearly client-initiated network management:

10:45:46.544 Network 'XXXXXXXX': scanning network finished 10:45:46.544 Network 'XXXXXXXX': auto connecting to a better access point with 93 % quality (previous: 90 %) 10:45:46.544 Network 'XXXXXXXX': connection to TickmillUK-Live lost

No line in either file states a reason for the loss, so the logs alone cannot prove which side aborted — his ETW claim is still the only thing that could, and it is not in the archive.

Practical conclusion for the thread

The evidence he supplied supports exactly one narrow fact: on TickmillUK-Live, build 6361, 20/20 scripted single-test launches logged a connection loss 0.14–0.19 s after automatic testing started , followed by re-authorization 0.2–0.34 s later, and every test still finished successfully. It does not support the cancellation claim, the 6061 hang, or the 40/41/38 counts, and the 13-minute gap is his own harness restarting the terminal.

To close it out he still needs: the 26 Nov build 6230 pair (cancellation), the 6061 pair (hang), the .ini files used by the diag_alt_N harness.


Additionally I tested a backtest from command line.

Ini file :

[Tester]
Expert=Examples\MACD\MACD Sample.ex5
Symbol=XAUUSD
Period=M1
Optimization=0
Model=4
FromDate=2023.01.01
ToDate=2026.04.01
ForwardMode=0
Deposit=200000
Currency=USD
ProfitInPips=0
Leverage=500
ExecutionMode=0
OptimizationCriterion=0
Visual=0


Journal log :

2026.12.02 12:39:11.965    Startup    successfully initialized from start config "D:\Apps\MT5\MQ-Dev\test.ini"
2026.12.02 12:39:12.761    Terminal    MetaTrader 5 x64 build 6368 started for MetaQuotes Software Corp.
2026.12.02 12:39:12.761    Terminal    Windows 11 build 26300, 32 x AMD Ryzen 9 9950X3D 16-Core, AVX2, 99 / 125 Gb memory, 179 / 431 Gb disk, UAC, GMT-5
2026.12.02 12:39:12.761    Terminal    C:\Users\alain\AppData\Roaming\MetaQuotes\Terminal\EBB561CE1733F3EA36FE0A65CCCC582C
2026.12.02 12:39:12.761    Terminal    launched with D:\Apps\MT5\MQ-Dev\test.ini
2026.12.02 12:39:12.766    MCP    started on 127.0.0.1:22345
2026.12.02 12:39:14.496    Indicators    custom indicator IndicatorReceiver (USDCAD,M5) loaded succesfully
2026.12.02 12:39:14.769    Network    '5058616859': authorized on MetaQuotes-Demo through Access Point US 1 (ping: 96.92 ms, build 6363)
2026.12.02 12:39:14.769    Network    '5058616859': previous successful authorization performed from 70.29.155.150 on 2026.12.02 19:36:39
2026.12.02 12:39:14.977    Network    '5058616859': terminal synchronized with MetaQuotes Ltd.: 0 positions, 0 orders, 13180 symbols, 0 spreads
2026.12.02 12:39:14.977    Network    '5058616859': trading has been enabled, demo account - hedging mode
2026.12.02 12:39:14.977    Network    '5058616859': balance management has been disabled - demo account
2026.12.02 12:39:15.138    Tester    automatic testing started


No connection lost.So it must be something specific, I would suggest to talk to your broker about these connection issues.