XAUUSD symbol suffix: why a gold EA places no trades
Updated5 min read
TroubleshootingXAUUSDMetaTrader 5
A gold EA that places no trades is usually working as written: it does not recognise your broker’s symbol spelling, the session is shut, or its entry conditions have not been met.
- A silent Expert Advisor is usually an Expert Advisor behaving correctly: wrong symbol, closed session, or conditions not met.
- Your broker’s gold symbol is its own label. Read the Specification panel, not the string.
- The Journal names the cause. Learn the four return codes and you stop guessing.
The symptom
The smiley face is on the chart, the terminal is connected, the account is funded — and nothing opens. Most people go looking for the XAUUSD symbol suffix first, then start changing inputs at random.
Start somewhere else. An MT5 EA that is not trading is, most of the time, an EA working exactly as written. Three ordinary reasons: it is looking at a symbol whose name it does not recognise, gold’s session is shut, or its entry conditions have not been met. Only the first is a mismatch you can fix, and the phrase people search under — xauusd symbol suffix — is the right instinct at the wrong end of the problem.
This page runs symptom to cause rather than offering a fix. By the end you will know what the symbol string is, what MetaTrader 5 holds behind it, and what an ea wrong symbol mt5 case prints in the Journal.
Why your broker’s gold is not spelled the same as everyone’s
Gold on MetaTrader 5 is not exchange-listed the way a futures contract is. The symbol is your broker’s own label for its own product, and nobody standardises it.
This site publishes three spellings — XAUUSD, XAUUSD+ and XAUUSD.a. Beyond those, think in shapes rather than strings —
some accounts add a character to the plain name, some append a dot and a letter
— because what that shape implies varies by broker, and nothing in MetaQuotes’
documentation defines it.
Hence the narrower, more useful conclusion: the string does not tell you what the contract is. The Specification panel does.
How to find the exact spelling your account uses
This method is broker-neutral, so it does not go stale.
- Press Ctrl+M for Market Watch, or View → Market Watch.
- Right-click inside it and choose Symbols. The dialog lists every instrument the server offers, in folders — gold usually sits under Metals rather than Forex.
- Type
XAUinto the search box. What comes back is the exact set of spellings your account can trade. If nothing comes back, your account group does not carry gold: a question for your broker, not your EA. - Select one, click Show, then right-click it in Market Watch and choose Specification.
Copy the name character for character, dot and trailing letter included: that is the gold symbol name MetaTrader 5 expects. If you have been hunting xauusd not in market watch, step 3 is usually the whole answer — the symbol exists on the server but has not been shown in the window.
In the Strategy Tester the symbol drop-down is populated from the same list, so the spelling you pick there is the spelling your broker uses too.
What the terminal exposes per symbol, and why it matters
Behind each name MetaTrader 5 stores properties an Expert Advisor reads before
it sends anything. The ones that decide whether an order is valid at all are in
MQL5’s symbol properties reference:
SYMBOL_TRADE_CONTRACT_SIZE (“Trade contract size”), SYMBOL_VOLUME_MIN
(“Minimal volume for a deal”), SYMBOL_VOLUME_STEP (“Minimal volume change step
for deal execution”), SYMBOL_TRADE_TICK_VALUE and SYMBOL_TRADE_STOPS_LEVEL
(“Minimal indention in points from the current close price to place Stop
orders”).
This is the mechanism the suffix question is really about. Two symbols that both mean gold can carry a different contract size, minimum volume and step, and the name gives you none of it. An EA sized for one set of numbers sends requests the server rejects on the other.
Why XAUUSD for an Expert Advisor
makes the point from the results side: XAUUSD, XAUUSD+ and XAUUSD.a have
different spreads, different tick histories and sometimes different contract
sizes, so a result from one does not transfer to another.
What the Journal prints, and what you cannot change
Open the Journal tab at the bottom of the terminal and the Experts tab beside it. A rejected order arrives with a number, and MQL5’s trade return codes describe each one.
- 10014 — “Invalid volume in the request.” The lot size does not match the symbol’s minimum or its step.
- 10019 — “There is not enough money to complete the request.” Often the contract size is larger than the EA assumed.
- 10018 — “Market is closed.” The symbol is fine; the session is shut.
- 10006 — “Request rejected.” The server declined it.
Be plain about the last two: 10018 and 10006 are the server’s answer, and no setting in your terminal changes them.
If the Journal shows nothing at all, check the permission stack. The terminal’s
Algo Trading button has to be on — MetaQuotes notes that turning Expert
Advisors off in the platform settings
“only prohibits Expert Advisors from trading”
rather than unloading them — and the EA’s Common tab carries its own setting.
Behind both sit two account properties described in
MQL5’s trade permission page:
ACCOUNT_TRADE_EXPERT, which the trade server controls, and
ACCOUNT_TRADE_ALLOWED, which is false on an investor-password connection — the
Journal then says “trading has been disabled - investor mode”. The
install guide has the
attach sequence, and
how to backtest a gold EA in MT5
covers picking the symbol in the tester.
None of this is ever a licence problem: a XauStack build checks the account it starts on against the logins compiled into it, with no URL to allow and no licence to enter. We document no symbol-resolving behaviour in a build, so do not assume one. Check Market Watch, then run the free Backtest edition, which starts only inside the Strategy Tester, on your own broker’s symbol — a free way to find out whether a gold EA runs on your spelling at all (the Catalogue is here).
Before you act on any of this
Every figure XauStack publishes comes from the MetaTrader 5 Strategy Tester, never from live trading, and no result is promised anywhere on this site. A symbol that accepts your orders is not a symbol that makes them work out. Read the risk disclosure before attaching anything to a funded account.
Read next
How to install an Expert Advisor on MetaTrader 5
Where the .ex5 file goes, how to find the MT5 data folder, where presets live, and how to attach an Expert Advisor to an XAUUSD chart without guesswork.
How to backtest a gold EA in MT5 properly
Real ticks versus modelled ticks, what History Quality tells you, how spread and commission are handled, and the two ways a run flatters a strategy.