Your EA can't find XAUUSD — broker symbol suffixes, and the fix
There is no global rule that says gold must be called XAUUSD. Every broker names its own instruments, so the same metal turns up as XAUUSD, GOLD, XAUUSD.m, XAUUSD.raw, GOLD.pro or XAUUSDmicro depending on where you opened the account. An EA attached to the wrong symbol — or to a chart that isn't gold at all — will usually just sit there doing nothing. This is how to find the exact name your broker uses, prove it's the right instrument, and attach correctly.
How to check in 30 seconds
- In MetaTrader 5, look at the Market Watch panel (Ctrl+M if it's hidden).
- Right-click anywhere inside it and choose Symbols (Ctrl+U).
- In the search box, type XAU. If nothing appears, clear it and type GOLD.
- Note the exact name of every match, including punctuation and case — XAUUSD.m is not the same string as XAUUSD.
- Click the one that looks like spot gold, then check the Specification tab on the right.
- Double-click it (or press the Show Symbol button) so it appears in Market Watch, then close the dialog.
- Drag that symbol onto a fresh chart, set the timeframe to M5, and attach the EA there.
That covers the common case. The rest of this page is for when it doesn't.
Why the names differ at all
Two separate things are going on, and it helps to keep them apart.
First, the base ticker is a house style. XAUUSD is the interbank convention — XAU is the ISO currency code for one troy ounce of gold, quoted against USD. Plenty of brokers instead label the same contract GOLD, GOLDUSD, XAU/USD or Gold Spot because retail clients recognise the word. All of these can be the identical instrument underneath.
Second, the suffix encodes the account type or the pricing model. Most brokers run several books off one server, and each book needs its own symbol so the platform can apply different spreads, commissions, contract sizes and swap rates. That is where you get names like:
- .m or micro — a mini/micro contract, often a smaller contract size or a smaller minimum lot.
- .r, .raw, .ecn — raw-spread books that charge a separate commission per lot.
- .pro, .std, .s, .c, .a, _z, or a plain trailing digit — pure account-tier tags whose meaning is defined only by that broker.
- Cent-account variants, which often carry their own suffix again because balances are denominated in account cents rather than dollars.
There is no cross-broker meaning to any of these letters. .s at one broker may be the standard book; at another it may be a swap-free book. Never assume — read the specification.
The practical consequence: your account can only trade the symbols your account group is allowed to see. If your login is on the raw book, XAUUSD with no suffix may not exist for you at all, and an EA told to trade "XAUUSD" has nothing to work with.
Seeing every symbol your broker offers
Market Watch shows a short default list, not the full catalogue. The complete list lives in the Symbols dialog: right-click in Market Watch → Symbols, or View → Symbols, or Ctrl+U. You can also right-click and choose Show All to dump everything into Market Watch, though on a broker with hundreds of instruments that turns the panel into a wall of text — the dialog is easier.
Inside the dialog you get a folder tree grouped by asset class. Gold is almost always under a group named Metals, Spot Metals, Commodities or something similar; on some servers it sits inside a per-account-type folder such as Metals.raw. Expand those folders rather than only searching, because a broker that writes the name as Gold Spot / U.S. Dollar will not match a search for "XAU".
If the tree is genuinely empty of metals, that is a real answer and not a bug — see the section on account types below.
Confirming you have the right instrument
Finding a name that contains "gold" is not the same as finding spot gold against the US dollar. Select the symbol in the Symbols dialog (or right-click it in Market Watch and choose Specification) and read these fields:
- Contract size. Spot gold is conventionally 100 troy ounces per lot, and mini/micro variants are typically a tenth or a hundredth of that. Whatever it says, note it — it determines what one lot actually risks.
- Digits. Gold is usually quoted to two or three decimals. A symbol quoted to five decimals with a price near 1.xxxx is a currency pair, not gold.
- Profit currency / quote currency. This must be USD. XAUEUR, XAUAUD and XAUGBP all exist at some brokers and are different markets.
- Minimum volume and volume step. Tells you the smallest position that book allows.
- Spread. Whether it is floating or fixed, and roughly what it sits at during your trading hours. Compare the suffixed variants against each other here — this is usually where the difference between books shows up.
- Commission / swap. Raw books charge commission. The EA is designed for a non-commission account type, so this field matters.
- Trading sessions / trading hours. Metals do not trade round the clock; there is a daily break and a weekend close.
- Expiration. Spot gold has none. If a symbol has an expiry date, it is a futures-based contract.
That last point deserves its own paragraph. A CFD on gold futures is not spot gold. Names like XAUUSD-DEC26, GC, GOLD.fut or GOLDmar reference an exchange futures contract: it has an expiry, its own contract size, a different tick value, its own trading calendar, and a price that can sit meaningfully away from spot. It also rolls, which means your chart history has discontinuities in it. Any EA tuned to spot gold behaviour will misprice everything on that symbol even though the chart looks superficially similar. Pick the non-expiring spot symbol.
One more sanity check that costs nothing: open the symbol's chart and compare the current price against a public spot gold quote. If they agree to within a normal spread, you have spot gold. If they are tens of dollars apart, you are looking at futures, a different quote currency, or a synthetic.
The symbol must be visible before you can chart it
This is the step that traps most people. In MT5, a symbol that exists on the server but is not shown in Market Watch cannot be opened as a chart, and functions that ask for its data may return nothing. So:
- In the Symbols dialog, select the gold symbol and press Show Symbol (or double-click it). Its icon turns from grey to coloured.
- Close the dialog and confirm the symbol is now listed in Market Watch with a live bid and ask that tick.
- If the row appears but the prices never move, the market is closed or your account has no quote feed for that symbol yet — leave it a minute during an open session before concluding anything.
Also worth knowing: if you have Hide unused symbols behaviour on, MT5 will quietly drop symbols you have no positions or charts on when you restart. If gold vanishes from Market Watch after a platform restart, that is why — show it again and keep a chart open.
Opening the chart and attaching the EA
With the symbol visible, drag it from Market Watch onto the chart area, or right-click it and choose Chart Window. Then:
- Set the timeframe to M5 on the toolbar. MT5 Gold EA is built for the M5 gold chart; the market-filter calculations read the timeframe of the chart they are attached to, so a different timeframe changes their behaviour.
- Check the chart's title bar shows the exact symbol you intended, suffix included.
- Drag the EA from the Navigator onto that chart, allow algorithmic trading in the dialog, and confirm the Algo Trading button in the toolbar is green.
- Attach one instance only. Two copies of a grid EA on the same symbol will fight each other over the same positions.
The basics of installing, allowing WebRequest for the licence check and running on a VPS are covered step-by-step in the setup guide. If the EA is attached and the smiley face is showing but no trades ever appear, work through why your MT5 EA isn't trading — symbol naming is only one of several reasons an EA stands still, and several of the others are deliberate.
"Symbol not available" and "market closed"
These two messages get confused constantly, and they mean different things:
- Market closed. The symbol is fine; the session isn't open. Metals have a daily maintenance break and are shut over the weekend, and exact session times vary by broker and shift with daylight saving. Check the Specification's trading-sessions tab for your server's hours. Nothing is broken — the EA simply cannot place an order until the session reopens.
- Trade disabled / symbol not available. The instrument exists but your account group is not permitted to trade it, or the broker has set it to close-only, or your terminal is not logged in to the trading account at all. That is an account-permissions matter, not a settings matter, and the broker has to change it.
A related case: some brokers place newly-listed or restricted instruments in a state where you can see quotes but not open positions. The Specification will show trade mode as disabled or close-only. Again, only the broker can lift that.
When your account type simply has no gold
Some account types are FX-only, some regional entities restrict metals, and some swap-free or promotional accounts exclude commodities. If the metals folder is empty, do these in order:
- Confirm you are logged into the right account — a demo on a different server may carry a different symbol set than your live account.
- Ask the broker, in writing, which of your account types offers spot XAUUSD with a non-commission pricing model, and what the exact symbol name is on that server.
- If yours doesn't offer it, open the correct account type rather than trying to make the EA trade something else. Gold is the instrument the strategy is built around; substituting silver or a gold futures CFD is not a workaround.
Our partner brokers — Vantage, RoboForex, IC Markets and PlexyTrade — all offer suitable gold accounts, and the onboarding page walks through which account type to open, including the cent-account route.
What MT5 Gold EA expects, precisely
- The spot XAUUSD-equivalent symbol on the M5 timeframe. A suffixed name is completely fine — XAUUSD.m, XAUUSD.r, GOLD, XAUUSD.s all work, provided the instrument underneath is spot gold quoted in USD. The EA reads the symbol from the chart it is attached to, so attaching it to the correct chart is the configuration.
- A symbol name the EA recognises as gold. It checks the chart symbol's name for XAUUSD or GOLD (prefixes and suffixes around those are allowed) and stops with a wrong trading pair alert on anything else. If your broker writes gold in a form that contains neither string, ask them whether a conventionally-named gold symbol exists on your server.
- Not a futures-based gold CFD, and not gold against a currency other than USD.
- The account the licence is bound to. The licence is tied to one specific MT5 account number. Attaching the EA on a different login — even at the same broker, even to a correctly-named gold chart — shows LOCKED - LICENSE on the chart status line, and the EA will not trade.
- An account that meets the minimums. CENT accounts need USC 100,000 (about USD 1,000) at 1:2000; STANDARD accounts need USD 50,000 at 1:500, on a non-commission account type. Below those the status line reads LOCKED - BALANCE or LOCKED - LEVERAGE, by design.
Read the status line before you change anything. It distinguishes a symbol problem (no line at all, or a chart that never updates) from a deliberate stand-aside such as WAITING - SPREAD or PAUSED - NEWS. The settings reference explains what each input does, and the free Telegram bot @MT5GoldEABOT reports the same state remotely once you send /link YOUR-LICENSE-KEY.
Get set up on the right symbol
Free MT5 gold EA, a broker account type that actually offers spot XAUUSD, and a setup guide that names every step.
Get MT5 Gold EA — free →Risk disclosure. Trading foreign exchange, gold and CFDs on margin carries a high level of risk and may not be suitable for all investors. Grid and recovery strategies can accumulate exposure and incur significant drawdown. You may lose some or all of your capital. Nothing here is financial advice. Please read our full Risk Disclosure.