Mt5 Ctrader Bridge Dealer Architecture
Decoding MT5 & cTrader Client Journal Logs: Millisecond TCA, Requotes & Off Quotes
Every MetaTrader 5 MQL5/Logs/*.log file and cTrader Journal records a multi-line millisecond state trace—separating client WAN transit from Trade Server queuing, bridge rejections, and LP Off Quotes (10021).

When an execution goes sideways during a central-bank announcement—slipping 3.8 pips or failing with Off Quotes—most traders complain with screenshots of a 1-minute candlestick chart. Institutional execution desks skip candlestick charts entirely and pull the raw %APPDATA%\MetaQuotes\Terminal\<ID>\Logs\YYYYMMDD.log or cTrader Journal JSON/text trace! Hidden inside those three-line millisecond state transitions (order -> accepted by server -> process in routing -> deal performed) is an exact hardware-like breakdown separating your local ISP latency from the broker internal LD4/NY4 liquidity bridge!
Line-by-Line Anatomy of a Three-Step MT5 Journal Execution Trace#
Open a live MT5 Terminal Journal tab (not the Experts tab!) and inspect the exact three-line timestamp sequence emitted on a Market Buy:
14:30:01.104 Trades '804192': market buy 5.00 EURUSD: Local terminal stampedt_0 = .104, encrypted theMqlTradeRequest, and wrote bytes into the local OS TCP socket.14:30:01.142 Trades '804192': accepted market buy 5.00 EURUSD: Server validated margin/permissions and echoedACCEPTEDback to your terminal att_1 = .142(Delta_1 = 38 ms— approximating 1 full network RTT between your PC/VPS, Access Proxy, and Trade Server!).14:30:01.147 Trades '804192': deal #99210482 buy 5.00 EURUSD at 1.08504 done (based on order #...)+execution in 43.18 ms: NoticeDelta_2 = t_2 - t_1 = 147 - 142 = 5 milliseconds! That5 msdelta isolates pure upstream Bridge + Liquidity Provider execution time completely independent of your home internet ping!
Requote (10004) vs No Prices / Off Quotes (10021) vs Reject (10006): Root Causes#
Traders routinely conflate Requote and Off Quotes, yet inside MT5 clusters and cTrader they diagnose completely different failure layers:
Requote (10004): Occurs only inInstant Executionmode when price moved outsiderequest.deviationbefore execution. Fix: switch to an ECNMarket Executionaccount.No Prices / Off Quotes (10021)(MT4 Error 136): Occurs EVEN inMarket Executionwhen zero executable upstream LP liquidity exists! Three real engineering triggers cause10021: (a) Bridge Tick Spike / Staleness Filter tripped because all LP feeds froze> 2,000 msor crossed excessively; (b) LP Last-Look Reject Waterfall Exhausted (3 out of 3LPs rejected yourIOCsweep during NFP); or (c) Broker Prime-of-PrimeNOPCredit Line Full!Request Rejected (10006): Dealer rule, symbolClose-Onlystate, or pre-trade risk collar block.
| Terminal Return Code | MT4 Legacy Code | Exact Server / Bridge Meaning | Engineer / Trader Action |
|---|---|---|---|
10009 (DONE) / 10010 (PARTIAL) | ERR_NO_ERROR (0) | Executed completely or partially on book | Reconcile DEAL_PRICE vs CopyTicksRange |
10004 (REQUOTE) | ERR_REQUOTE (138) | Instant-mode price moved past deviation | Migrate to Market Execution ECN account (MT5) |
10021 (NO_PRICES / Off Quotes) | ERR_OFF_QUOTES (136) | All LPs rejected IOC OR quote stream stale | Split clip size (< 20 lots) or avoid 0-liquidity rollover |
10030 (INVALID_FILL) | N/A | Wrong ORDER_FILLING_FOK/IOC bitmask | Query SYMBOL_FILLING_MODE dynamically |
10019 (NO_MONEY) | ERR_NOT_ENOUGH_MONEY | Free margin < InitialMargin at t_1 | Check weekend/news dynamic leverage tier drop! |
MT5 & cTrader Journal Error Code Forensic Mapping Matrix#
Translating terminal error codes into exact server, bridge, or upstream FIX OrdRejReason (103) root causes.
- Delta2Bridgems = tjournaldealdone - tjournalaccepted
- SlippageTruePts = Dir * ( PxTickAt(tsent + 0.5 * Delta1) - PxDealDone ) / Point
- Worked Forensic Dispute Calculation (Buy 10 Lots GBP/USD, Dir = +1):
- tsent = .200 (Client saw Ask = 1.27500) ; taccepted = .280 (Delta_1 = 80ms -> Order hit server @ ~.240)
- CopyTicksRange @ .240 shows Ask already moved to 1.27506 before order arrived! Deal filled @ 1.27507 (tdone = .284, Delta2 = 4ms)
- Conclusion: 0.6 pips was pure client WAN flight delay (.200->.240); broker LD4 bridge slipped only 0.1 pips in 4 ms!
cTrader Execution Timeline & FIX Tag 58 (Text) Transparency#
Inside Spotware cTrader (Desktop and cTrader Web), expanding any Historical Deal opens an explicit Event Timeline showing millisecond-precision server UTC stamps (Submitted -> Accepted -> Filled / Partially Filled / Cancelled) alongside exact requested price vs VWAP fill price.
Even better, when connecting via cTrader FIX 4.4 API, rejected ExecutionReport (35=8, 39=8) frames populate Text (Tag 58) with structured rejection diagnostics (INSUFFICIENT_FUNDS, MARKET_CLOSED, NO_LIQUIDITY), letting automated TCA scripts separate internal margin bugs from upstream LP fades—complementing our Virtual Dealer vs Market Execution audit and MT5, cTrader & Liquidity Bridge Architecture Guide.
Automating Python / MQL5 Daily Log Parsers for Best-Execution Disputes#
If you ever need to file a formal execution dispute with a broker compliance desk under UK FCA DISP or NFA rules, screenshots carry minimal weight. Submit: (1) the exact raw YYYYMMDD.log lines with UTC offset, (2) Order Ticket # and Deal #, (3) CopyTicksRange(..., COPY_TICKS_ALL) millisecond Bid/Ask array +/- 5 seconds around t_0, and (4) Delta_1 vs Delta_2 breakdown!
Stress-test expected CPI spread widening and rejection cushions inside the Terminal Margin VaR & ES Calculator and explore more log diagnostics in the MT5, cTrader & Bridge Topic Hub.
Frequently asked questions
What is the difference between the Experts tab log and the Journal tab log in MT5?
The Experts tab (MQL5/Logs) only prints output generated by your EA Print statements, whereas the Journal tab (Logs/YYYYMMDD.log) is written by the C++ terminal engine itself—recording socket handshakes, server failover pings, and multi-stage order acceptance!
Why do Off Quotes (10021) spike every day between 23:59 and 00:05 server time (17:00 EST)?
At 17:00 New York Rollover, global Tier-1 banks reset daily settlement ledgers and temporarily pull or widen spot FX quotes for 60–180 seconds; bridge spread/staleness filters intentionally block execution (10021) rather than filling Market orders across a 15-pip vacuum!
How can I download millisecond historical ticks inside MT5 to verify a bad fill?
Run a 5-line MQL5 script calling CopyTicksRange(_Symbol, ticksArray, COPY_TICKS_ALL, startTimeMs, endTimeMs): MT5 downloads the broker exact server-recorded millisecond Bid/Ask tick tape from the History Server so you can audit BBO at exact fill millisecond.
Why did Delta_2 jump from 3ms normally to 65ms on a 50-lot order without a Virtual Dealer?
On large institutional tickets (30–100 lots), if top-of-book LP #1 uses a 25ms Last-Look window and rejects its slice, your bridge Retry Waterfall automatically re-routes the remaining lots to LP #2 and LP #3—legitimately adding one or two 25ms LP hops!
Publication record
- Published
- 13 November 2026
- Updated
- 14 November 2026
- Author
- Marcus Thorne, CQF
- Review
- Review not recorded
- Automated fact check
- Passed in the stored pipeline record
- Source URLs
- 3 recorded
AI assistance recorded: anthropic/claude-opus-4.6. This field does not establish human review or source verification.
Academic & Institutional Attribution
Cite This Research & Embed Live Data Card
Standard academic & institutional research paper citation format.
Marcus Thorne, CQF. (2026, November 14). Decoding MT5 & cTrader Client Journal Logs: Millisecond TCA, Requotes & Off Quotes. Terminal Ledger Desk. https://terminalledgerdesk.com/reports/decoding-mt5-ctrader-client-journal-logs-requotes-off-quotes-ms-tcaRelated Mt5 Ctrader Bridge Dealer Architecture & Institutional Briefings
Explore Mt5 Ctrader Bridge Dealer Architecture Hub (20) →Mt5 Ctrader Bridge Dealer Architecture
MetaTrader 5, cTrader & Liquidity Bridge Server Topology & Execution Logs GuideMt5 Ctrader Bridge Dealer Architecture
Tick-Filtering Gateways: Off-Market Spike Suppression & Quote Aggregation ThrottlesMt5 Ctrader Bridge Dealer Architecture
Spotware cTrader Open API (Protobuf) vs cTrader FIX 4.4: Quotas, Auth & LatencyMt5 Ctrader Bridge Dealer Architecture
MT5 Netting vs Hedging Position Ledgers: Orders, Deals, CloseBy & Margin MathMt5 Ctrader Bridge Dealer Architecture
OTC FX Last-Look Hold Windows: FX Global Code Principle 17 & Firm Liquidity TCAMt5 Ctrader Bridge Dealer Architecture
Margin Stop-Out Liquidation Engines: Tick Evaluation, Smart Partial Close & NBPMt5 Ctrader Bridge Dealer Architecture
PAMM, MAM & Copy-Trading Engines: Master-to-Child Allocation Latency & SlippageMt5 Ctrader Bridge Dealer Architecture
FX Swap Rollover Engines: Triple-Wednesday T+2 Settlement & Tom-Next Batch MathMifid Rts6 Pretrade Kill Switch Controls
Self-Match Prevention (SMP): Cancel-Oldest, Cancel-Newest & Decrement-and-Cancel MechanicsMifid Rts6 Pretrade Kill Switch Controls
Order-to-Trade Ratio (OTR) & MiFID II RTS 9: Token-Bucket Message Throttling EngineeringMifid Rts6 Pretrade Kill Switch Controls
NMS Limit Up-Limit Down (LULD) Plan: Reference Price Bands, Limit States & 5-Minute PausesMifid Rts6 Pretrade Kill Switch Controls
CME Globex Velocity Logic & Dynamic Circuit Breakers: Sub-Second Futures Volatility Guards
Terminal Ledger Desk Data, Benchmarks & Contributor Records
CC BY 4.0 Open Data
Open Institutional Datasets (CSV / JSON) →
Download desk-compiled quantitative series & schemas.
2026 Reference Matrix
2026 Institutional Benchmarks & Thresholds →
Statutory capital, clearing, margin & rate conventions.
Editorial Records
Authors & Review Records →
View named contributors where those records are available.
Complete Index
Master Research & Dossier Archive →
Browse all published briefings by topic pillar & date.
