Forensic Incident Board — XAUUSD EA Triage

XAUUSD EA Equity — Incident Timeline

DAY X — EA STOPS

VPS / MT5 Disconnection

Check MT5 Journal for disconnect errors

MT5 Journal / Experts tab errors to look for

ERR_SERVER_BUSY (4

Connection lost to trade server

Trade server reconnected after

Last ping timed out

3-step fix

1. Check VPS uptime via provider dashboard

2. Log into broker account via web/mobile to check open positions

3. Restart MT5 and re-check Journal after reconnection

How long to wait before acting

Act immediately if positions are open. If no open positions, give MT5 5 minutes to stabilise after reconnection before concluding the issue is resolved.

Broker-Side Restriction

Check spread history and order rejection logs

MT5 Journal / Experts tab errors to look for

TRADE_RETCODE_REJECT (10006)

Trade context is busy

Order rejected: expert not allowed

Trade disabled for this account

3-step fix

1. Contact broker support and ask specifically about scalping/EA policy changes

2. Compare live account trade history with demo account on same broker

3. If live shows rejections while demo trades normally — restriction is account-level

How long to wait before acting

Do not wait. A broker restriction will not self-resolve. Begin the broker migration process immediately while keeping risk minimal.

Settings Corruption

Compare current parameters to your setup screenshot

MT5 Journal / Experts tab errors to look for

ERR_INVALID_INPUTS (4051)

Wrong parameter: LotSize

Invalid EA configuration detected

Parameter out of acceptable range

3-step fix

1. Open EA Properties (right-click chart → Expert Properties)

2. Compare all parameters to your initial setup screenshot or documentation

3. Reset any parameter that changed to the documented value and click OK to reattach

How long to wait before acting

Once settings are restored and the EA reattaches with a smiley face, allow one full trading session (London open) before concluding the fix is successful.

Market Regime Shift

EA is running but signals dried up — regime change

MT5 Journal / Experts tab errors to look for

(No Journal errors — EA is functioning correctly)

(All ticks processed normally)

(SpreadFilter active — current spread above threshold)

(No qualifying signals in current market structure)

3-step fix

1. Confirm: EA shows smiley face with zero errors in Experts tab

2. Check current XAUUSD spread vs EA SpreadFilter parameter

3. Review last 20 days of gold price action — identify if market has shifted to low-range consolidation

How long to wait before acting

This is not a malfunction. Regime shifts typically last 2–8 weeks. Do not modify EA settings to force trades in a regime it was not optimised for.

Q&AEA Failure Diagnosis

Why Do My Gold Trading EAs
Suddenly Stop Working?

Published 8 July 2026 · 14 min read · EA Settings & Configuration

Quick Answer

When a gold trading EA suddenly stops working, the cause falls into one of four categories: a VPS or MT5 disconnection that left the EA offline, a broker-side restriction that is silently rejecting orders, a settings parameter that became corrupted or was accidentally changed, or a market regime shift where the EA is running correctly but its signals have dried up. Each category has distinct MT5 Journal fingerprints and a specific fix. Panic-switching to a new EA is almost always the wrong response — a systematic 5-minute diagnosis will identify the root cause in the vast majority of cases.

Why Gold EAs Stop Working: The 4 Root Causes

Most EA traders, when their gold expert advisor stops producing trades, assume the EA itself is broken or the strategy has stopped working. In practice, the EA logic is rarely the culprit in a sudden stop. The four causes above are all operational — they involve the technical environment the EA runs in, not the EA's internal strategy code.

The distinction between operational failure and strategy failure matters enormously. An operational failure — VPS down, broker restriction, parameter corruption — can be diagnosed and fixed in minutes. A genuine strategy failure — where the EA's entry logic stops generating alpha on the current market — takes weeks to confirm because you need enough trades to distinguish bad luck from systematic underperformance. Treating an operational issue as a strategy failure means you may abandon a working EA unnecessarily. Treating a strategy failure as an operational issue means you keep running an EA that is genuinely not working.

The hierarchy of diagnosis is: confirm the EA is technically running first, then confirm the trading environment (broker, VPS, platform) is functioning correctly, then and only then assess whether the strategy itself needs review. This page walks you through that hierarchy, starting with the fastest checks and progressing to the slower ones.

For the broader picture of external causes behind sudden EA failures on XAUUSD — including broker policy shifts, MT5 update compatibility breaks, and news event catastrophe — those are addressed separately. This page focuses specifically on the user-facing experience: your EA was working yesterday and stopped today.

How to Read Your MT5 Journal to Diagnose EA Failure

The MT5 Journal is the most important diagnostic tool available to EA traders and is systematically underused. Most traders look at their account balance and open positions but never open the Journal — which is where every significant EA event is logged with a timestamp.

To access it: in MetaTrader 5, go to View in the top menu, then Terminal, then click the Journal tab in the terminal panel at the bottom of the screen. The Journal shows every significant system event: EA loads, EA removes, connection events, order attempts, order confirmations, order errors, and system messages from MT5 itself.

The most effective diagnostic approach is to scroll to the timestamp when the EA last placed a trade and look for what happened immediately after. Did a connection warning appear? Did an error code appear in the Experts tab? Did the EA remove itself? The answer to one of these three questions will point to the cause in most cases.

The Experts tab (a separate tab in the same Terminal panel) shows output from the EA's own internal logging. Well-built gold EAs write diagnostic information here — including when signals are generated but blocked by filters, current spread vs filter threshold, and active trade management events. If your EA writes to the Experts tab, this is the first place to look — it provides richer diagnostic information than the general Journal.

MT5 Error Codes That Mean Your EA Is Broken (Not Just Quiet)

When the EA is genuinely broken rather than just waiting, specific error codes appear in the Experts tab or Journal. Here are the most important ones for gold EA traders:

129ERR_INVALID_PRICE

Meaning: EA tried to open at a stale or impossible price

Action: Usually self-resolving on next tick. If persistent: check broker's requote policy

138ERR_REQUOTE

Meaning: Price moved before order was processed

Action: Increase deviation/slippage tolerance in EA settings. Common during news events

4051ERR_INVALID_INPUTS

Meaning: One or more EA parameters has an invalid value

Action: Review all EA parameters. Check for zero lot size, invalid stop loss, or negative values

10006TRADE_RETCODE_REJECT

Meaning: Trade server rejected the order outright

Action: Contact broker. May indicate account-level EA restriction or insufficient margin

10004TRADE_RETCODE_REQUOTE

Meaning: Requote at server level

Action: Increase MaxDeviation parameter. Persistent requotes suggest execution quality issue with broker

10014TRADE_RETCODE_INVALID_VOLUME

Meaning: Lot size is invalid for this account

Action: Check broker minimum lot size for XAUUSD. May be 0.01 or 0.1 depending on account type

Error codes 4xxx are MQL5 runtime errors from the EA's own code. Error codes 10xxx are trade server return codes from the broker. A combination of both types in the same session often indicates a misconfigured parameter (4051) triggering a series of rejected orders (10006) — which looks like a broker restriction but is actually a configuration problem.

Is My EA Stopped or Just Waiting? How to Tell the Difference

This is the most common question from EA traders experiencing a quiet period. The EA is running — you can see the smiley face — but no trades have been placed in 24, 48, or even 72 hours. Is this normal? Is the EA broken? Is this a regime change?

The definitive test: open the Experts tab and look for the most recent entry. If the EA is writing something there — even if it is just logging "no signals" or "spread above filter" — the EA is alive and processing ticks. If the most recent entry in the Experts tab was several hours or days ago, the EA has either stopped receiving tick data (VPS/connection issue) or was quietly removed from the chart without your knowledge.

A gold EA operating in a regime shift will typically still log tick processing but record zero signal attempts. This is the key fingerprint of cause C4: the EA is running correctly, the market is moving, but the EA's entry conditions — which might require a specific combination of session time, spread level, trend direction, and momentum threshold — are not being met simultaneously.

If you are uncertain about whether a quiet period is a regime issue or a technical failure, reviewing when to take a temporary pause while investigating provides the framework for making this call without either over-reacting (disabling a healthy EA) or under-reacting (ignoring a genuine failure).

The 5-Minute EA Triage Protocol Every Gold Trader Needs

Run this protocol every time your gold EA goes quiet for more than 24 hours without an obvious explanation:

  1. 01

    Confirm the EA is attached (30 seconds)

    Open MT5. Find the XAUUSD chart your EA runs on. Look for the smiley face icon in the top-right corner of the chart. If it is there, proceed. If it is an X, the EA is disabled — right-click the chart, select Expert Properties, ensure AutoTrading is enabled, and click OK.

  2. 02

    Check the Experts tab (60 seconds)

    View → Terminal → Experts tab. Read the most recent 10 entries. Look for any error messages, especially codes containing numbers (129, 138, 4051, 10006). Note the timestamp of the most recent entry — if it is older than 30 minutes during a trading session, the EA may have stopped receiving ticks.

  3. 03

    Check the Journal tab (60 seconds)

    View → Terminal → Journal tab. Scroll to the timestamp of the last known trade. Look for any connection events, disconnect messages, or EA-related warnings in the window immediately after that last trade.

  4. 04

    Check current spread vs SpreadFilter (30 seconds)

    On the XAUUSD chart, look at the current bid-ask spread (displayed in the chart header or market watch). Compare it to the EA's SpreadFilter parameter in Expert Properties. If current spread is above SpreadFilter, the EA is correctly blocking trades — not broken.

  5. 05

    Place a manual test on demo (90 seconds)

    On a demo account at the same broker, try placing a manual XAUUSD trade at the current price. If the order goes through normally, the broker's XAUUSD execution is functioning. If the order is rejected, you have found your answer — broker-side restriction or execution issue.

Total time: under 5 minutes. At the end, you will have either identified the cause or confirmed the EA is technically healthy (pointing to regime C4 as the explanation). If you have open positions and the EA is genuinely offline, the 5-minute triage can wait until after you have checked and secured your position — position safety always comes first. More detail on broker-side outages as a failure cause and what to do with open positions in that scenario.

When to Contact Your EA Developer and What to Tell Them

Not every EA issue requires developer involvement. Contact the developer when: (1) the Experts tab shows a specific error referencing an internal function name or line number — this indicates a code-level issue rather than a configuration problem; (2) the EA fails after an MT5 update and recompilation in MetaEditor does not resolve it; (3) you have confirmed through the 5-minute triage that the broker execution is normal, the settings are correct, and the EA is receiving ticks — but it still generates no trades over two complete London sessions.

When you contact your developer, include: the exact error messages from the Experts tab (copy and paste them, with timestamps); your MT5 build number (Help → About); the account type (live or demo, ECN or Standard); the broker name; and the last date when the EA traded normally. This information allows the developer to reproduce the issue without spending time on diagnostic questions you can answer upfront.

Deciding whether to restart or shut down while waiting for a developer response depends on whether you have open positions and your assessment of the current risk environment. The safest default while awaiting developer response: disable the EA (right-click → Disable Expert, not Remove) so it stops attempting new trades but remains attached for diagnostic purposes.

How to Prevent Sudden EA Failures With Proactive Monitoring

The best time to set up failure detection is before the failure happens. Three layers of monitoring eliminate most of the damage from sudden EA failures:

VPS Uptime Alerts

Configure your VPS provider's uptime monitoring to send an SMS or email within 2 minutes of any server downtime. Most VPS providers include this in their dashboard at no extra cost. Uptime Robot (free tier) can also ping your VPS's IP address every 5 minutes.

MT5 Push Notifications

MetaTrader 5 can push notifications to your phone when specific events occur. Configure alerts for: EA removal from chart, trade opened, trade closed, and account equity dropping below a threshold. These are configurable in MT5 Settings → Notifications.

Daily Trade Count Check

Set a personal rule: if your EA does not produce at least one trade in 3 consecutive full trading sessions (London open through NY close), run the triage protocol. This catches both genuine failures and extended quiet periods that may indicate regime change.

A complete guide to setting up an early warning system before EAs fail walks through each of these monitoring layers in detail, including specific free and paid tools for 24/7 EA monitoring without manual checking.

Finally, understanding the full spectrum of automated trading risks and safeguards for XAUUSD provides the broader context for why monitoring matters and what else can be done to protect an automated trading operation from unexpected failures.

Frequently Asked Questions

Open MetaTrader 5 and go to View → Terminal → Journal tab. Look for entries timestamped around when the EA stopped trading. Key things to search for: error codes (129, 138, 4051), "trade context busy" messages, disconnection events, or "expert removed" entries. Each error code points to a specific failure mode — error 129 means invalid price, 138 means requote, and 4051 means an invalid parameter was passed.

Not necessarily broken. A smiley face with no trades usually means one of three things: (1) the spread is above the EA SpreadFilter threshold, blocking all new entries; (2) the EA is in a low-signal market regime and its entry conditions are not being met; or (3) a news filter is active and blocking entries around scheduled events. Check the EA parameters: SpreadFilter, NewsFilter, and any time filter settings. Compare the current spread on your XAUUSD chart against the SpreadFilter value.

A paused EA (running but not signalling) shows a smiley face in the top-right corner of the chart, has no errors in the Experts tab, and the Journal shows normal tick activity but no order attempts. A genuinely broken EA shows either an X instead of a smiley face, errors in the Experts tab, or the EA has completely detached from the chart. If you see normal operation in the Journal but no trades, the EA is running and waiting — not broken.

Immediately. If the EA is not managing open positions, those positions are exposed to unlimited loss with no automated stop loss adjustment. First, log into your broker account via web or mobile app — not just MT5 — and assess current position P&L. If the loss is beyond your risk tolerance, close manually. If positions are within normal fluctuation, reconnect the EA as quickly as possible.

Yes, in most cases restarting is safe provided you do not have open positions that the EA needs to manage. To restart: right-click the EA on the chart and select "Expert Properties," check all parameters, then click OK to reattach. If the EA was removed from the chart, drag it back from the Navigator panel. If you have open positions, ensure the EA is configured to recognise and manage them upon reattach.

The most common silent blocks: (1) AutoTrading button is disabled — check the top toolbar, the AutoTrading button must be green/active; (2) the chart is in Strategy Tester mode rather than live chart; (3) the broker account is in read-only mode due to an API restriction; (4) the EA has an internal time filter set to a time zone that does not match your VPS timezone.

Contact the developer when: the EA generates errors referencing specific functions or parameters; after an MT5 update breaks compilation; or when you have confirmed the broker has no policy restriction but the EA still misbehaves on two different accounts. Fix yourself when: the issue is a settings configuration (SpreadFilter, time filter, lot size); the AutoTrading button was accidentally disabled; or the EA simply needs to be reattached to the chart after a platform restart.

Related Articles

Goldie Razor V2.8.4

M15 breakout + H4 EMA filter — built for XAUUSD on MT5

View Goldie Razor →