You attached an Expert Advisor to a gold chart, everything looks fine, and nothing happens for hours or days. Sometimes that is normal: the EA is waiting for its setup. Often it is not. This guide gives a fixed order of checks for an MT5 EA that is not trading, from the two-second checks to the silent filters that block every trade without an error, with XAUUSD numbers for the lot, margin and spread cases.
Step 1: read the Experts and Journal tabs
Open the Toolbox with Ctrl+T. The Experts tab shows what the EA itself prints; the Journal tab shows what the terminal and the broker server said. Almost every cause in this guide leaves a line in one of them. Right-click the log and choose Open to see older days. Three patterns tell you where to look:
- An error with a code (for example "failed market buy ... [Invalid volume]"). The EA tried to trade and the order was refused. Go to the error table below.
- A message from the EA such as "spread too high" or "outside session". A filter blocked the trade on purpose.
- Nothing at all. Either the EA is not running, or it is running and has not seen a valid signal. Steps 2 to 5 separate the two.
Step 2: is the EA actually running?
Look at the top-right corner of the chart. The EA name with an active (blue) icon means it is running; a grey icon means algorithmic trading is off somewhere. There are three switches and all three must be on:
- The Algo Trading button on the main toolbar is green.
- In the EA properties (F7 on the chart), the Common tab has Allow Algo Trading ticked.
- In Tools → Options → Expert Advisors, algorithmic trading is allowed. The same page has three options that switch it off automatically when the account, the profile, or the chart symbol or period changes. If you logged in to another account, Algo Trading may have turned itself off.
Two more basics: the EA runs only in the desktop terminal (not on the mobile app or web terminal), and only while that terminal is open and connected. The connection status in the bottom-right corner should show a ping, not "No connection". If the EA itself was never installed correctly, start with how to install an EA in MT5.
Step 3: can this account trade this symbol right now?
- Investor password. Logging in with the investor (read-only) password lets you watch an account but not trade it. Orders fail with "trade disabled". Log in again with the master password.
- Market closed. Gold does not trade at the weekend and on some holidays, and most brokers have a short daily break. Right-click XAUUSD in Market Watch, choose Specification, and read the trading sessions. Error 10018 "market closed" means nothing is broken.
- Close-only or disabled symbol. The same Specification window shows the trade mode. "Close only" allows you to close but not open positions.
- Expired demo. Demo accounts often expire after 30 to 90 days of inactivity. The terminal shows an authorization error in the Journal.
Step 4: the symbol name and the chart
Brokers name gold differently: XAUUSD, XAUUSDm, XAUUSD.r, XAUUSD+ or GOLD. An EA attached to the chart trades the chart's symbol, but some EAs have a "Symbol" input or a hard-coded list and will do nothing on "XAUUSDm". Check the inputs and the manual. Also check the timeframe: an EA designed for H1 behaves differently on M1 and may never see its pattern on the wrong one. Finally, check that the symbol you trade shows a moving price in Market Watch; a symbol with no quotes produces no ticks and an EA without ticks does nothing.
Step 5: lot size, lot step and margin
Gold is a 100-ounce contract on most MT5 accounts, so a 1 USD move is worth 100 USD per 1.00 lot and 1 USD per 0.01 lot. Most volume problems come from small accounts.
Lot step matters too: if the step is 0.01, a lot of 0.013 is invalid even though it is above the minimum. The Specification window lists minimum volume, maximum volume and volume step.
Step 6: filters that block trades without an error
This is the most common reason an EA "does nothing" while everything looks switched on. Good EAs have filters, and a filter set for one broker can block every trade on another.
Spread filter and digits. A max-spread input is usually in points, and a point depends on how many decimals your broker quotes for gold. On a 2-digit quote (3,600.25) one point is 0.01 USD; on a 3-digit quote (3,600.253) one point is 0.001 USD.
| Quote | 1 point | Spread of 0.25 USD | Max spread input 50 points |
|---|---|---|---|
| 2 digits | 0.01 USD | 25 points | Trades allowed |
| 3 digits | 0.001 USD | 250 points | Every trade blocked |
The same spread is ten times more points on a 3-digit symbol. If the EA does not adjust for digits, raise the input to match, but only after checking the spread in money terms (see XAUUSD spread explained). Spreads also widen around rollover and news, so a filter that blocks trades at those times is doing its job.
Session hours in server time. Time inputs in MT5 normally use the broker's server time, shown in Market Watch, not your local clock. The London Breakout EA, for example, builds its range from 00:00 to 07:00 server time and opens new trades only between 07:00 and 12:00; the NY Opening Range EA waits for the New York open. If your broker's server clock is 3 hours away from what the settings assume, the EA watches the wrong 5 hours. Daylight saving changes can shift this by an hour twice a year.
Trade limits. "One trade per day", "max open trades", a daily loss limit that has been hit, or an existing position with the same magic number can all stop new entries until the next day. If another EA uses the same magic number on the same symbol, the EA may think it already has a trade (see running multiple EAs on one MT5 account).
News or volatility filters. An ATR or volume filter can keep a breakout EA out on quiet days. That is a design choice, not a fault.
Step 7: order errors and what they mean
When the EA did try to trade, the Journal shows the broker's answer. The common MT5 return codes:
| Code | Message | Usual cause on gold |
|---|---|---|
| 10014 | Invalid volume | Lot below minimum, above maximum, or not a multiple of the lot step |
| 10016 | Invalid stops | Stop loss or take profit closer than the broker's stops level |
| 10017 | Trade disabled | Investor password, close-only symbol or account restriction |
| 10018 | Market closed | Weekend, holiday or daily break |
| 10019 | Not enough money | Free margin too low for the lot |
| 10027 | Autotrading disabled by client | Algo Trading button or EA permission off |
| 10030 | Unsupported filling mode | EA sends a fill type (FOK, IOC) the broker does not accept for this symbol |
10030 is a coding issue rather than a setting; tell the EA's author which filling modes your broker shows in the Specification window.
It works in the Strategy Tester but not live
The tester skips several live checks: it does not need the Algo Trading button, it can use a fixed or historical spread, and it never hits weekend gaps or an investor-password login. If a backtest trades and the live chart does not, compare the symbol name, the digits, the spread on the live account and the server-time sessions with the tester settings. Run the tester with the same symbol and spread as your live account to close the gap, as described in how to backtest an EA in MT5. An EA that must run around the clock also needs the terminal running around the clock; see do you need a VPS for an MT5 EA.
The quick checklist, in order
- Experts and Journal tabs: error, EA message, or nothing?
- Blue EA icon, green Algo Trading button, Allow Algo Trading ticked.
- Master password, market open, symbol not close-only.
- Exact broker symbol and the documented timeframe.
- Lot at or above the minimum and on the lot step; enough free margin.
- Spread filter matched to the broker's digits; session hours in server time.
- Trade limits, daily loss limit and magic number conflicts.
- If all of this is fine, wait: the setup may simply not have appeared yet.
Key takeaways
- Start with the Experts and Journal tabs; they usually name the cause.
- Three switches must be on: toolbar Algo Trading, the EA's Common tab, and Tools → Options.
- Small accounts on gold often hit the 0.01 minimum lot or "not enough money"; both protect you.
- A spread filter written for 2-digit gold blocks every trade on a 3-digit quote, and session hours run on server time.
FAQ
Why is my EA not opening trades in MT5?
The usual causes are Algo Trading switched off, a symbol suffix the EA does not recognise, a lot below the broker's minimum, not enough free margin, or a filter such as spread or session hours blocking entries. The Experts and Journal tabs in the Toolbox normally show which one.
What does a grey EA icon on the chart mean?
It means algorithmic trading is disabled for that EA. Turn on the Algo Trading button on the toolbar, tick Allow Algo Trading in the EA's Common tab, and check Tools → Options → Expert Advisors.
Why does my EA work in the Strategy Tester but not on a live account?
The tester skips live checks such as the Algo Trading button, uses its own spread setting and has no weekend or login issues. Compare the live symbol name, quote digits, spread and server-time sessions with the tester settings.
Why does my gold EA say "invalid volume"?
The lot it calculated is below the minimum (often 0.01), above the maximum, or not a multiple of the lot step. On a small account with a wide stop, a 1% risk lot can work out below 0.01, so the trade should be skipped.
Is it normal for an EA to not trade for several days?
Yes, for many strategies. A breakout EA may trade once a day or not at all on quiet days, and a trend system can wait days for a setup. If the logs show no errors and the EA icon is active, it is usually waiting for its conditions.
For education only, not investment advice. Trading gold and CFDs is high risk and you can lose your capital.