Practical guide

My Expert Advisor Is Not Trading in MetaTrader 5: 13 Causes and How to Fix Each One

Published November 15, 2026 · By the AUREUM team · 16 min read

If your Expert Advisor is on the MetaTrader 5 chart but isn’t opening trades, one of two things is going on: something is stopping it from trading (a permission that’s switched off, the account, the broker or the order itself) or it simply hasn’t had to yet. MT5 tells you which in a couple of tabs. Here you’ll find where to look, the 13 causes with their fixes and the error codes that explain them. It applies to any EA; if you haven’t installed yours yet, start with how to install an Expert Advisor in MetaTrader 5.

Where to look first when an Expert Advisor is not trading

Before you change anything, check five things in the desktop MT5 where the robot runs. It takes two minutes.

  1. The icon next to the EA’s name. At the top right of the chart you should see the EA’s name with a small icon: a graduation cap. According to the MetaQuotes help, it has two states: the EA is allowed to trade or it isn’t. In the second it looks switched off: gray or, depending on the version, crossed out. If there’s no name and no icon, the EA isn’t on the chart.
  2. The “Algo Trading” button. It’s on the toolbar (shortcut Ctrl+E). When it’s green, MT5 lets robots trade; when it’s red, none of them can.
  3. The “Experts” tab. It’s in the “Toolbox”, the strip of tabs along the bottom (View menu, or Ctrl+T). This is where the EA itself writes its messages and its errors.
  4. The “Journal” tab. This is where MT5 writes, always in English whatever language the platform is in: the connection, the robot loading (“expert … loaded successfully”) and the result of every order. A rejected order leaves a line with the word “failed” that ends with the reason in square brackets, such as “[Market closed]”.
  5. The connection. At the bottom right, the status bar shows the connection with numbers (the speed, for example “45.67 ms”). If there are no numbers, or it says “No connection”, MT5 isn’t connected to the broker.

Both tabs show only the latest lines: right-click → “Open” takes you to the logs from earlier days. On a Mac the shortcuts use Ctrl and, on a MacBook, the function keys need fn (F7 is fn+F7).

Quick diagnosis: from what you see to the cause

Find what you see in the first column and jump to the cause. The messages in quotation marks are the ones that show up in the “Journal” or in “Experts”.

Symptoms of an Expert Advisor that is not trading in MetaTrader 5 and their most likely cause
What you seeMost likely cause
The “Algo Trading” button is red, “automated trading is disabled” in the Journal or a “… disabled by client” message1. Algo Trading is disabled in MT5
The button is green, but the EA’s icon is crossed out or gray2. The EA doesn’t have its own permission
“[Trade disabled]” or code 100173. Investor password or 7. The broker doesn’t allow trading
No numbers at the bottom right, or “[No connection]”4. MT5 isn’t connected
“[Market closed]” or code 100185. The market is closed
The EA is active, with no errors, on a chart that isn’t the right one6. Wrong symbol or timeframe
“[No money]”, “Not enough money” or “[Invalid volume]”8. Not enough margin, or an invalid lot
“[Invalid stops]” or “[Unsupported filling mode]”9. The server rejects the order
“cannot load custom indicator”, or the EA’s name is no longer on the chart10. The EA hasn’t started
Messages about a DLL, a URL (error 4014) or the license11. A permission or the license is missing
It was working and stopped when you closed MT5, when the computer went to sleep or after you touched the VPS12. MT5 isn’t running where it should
Everything in order and not a single error line13. The EA is waiting

The 13 reasons an EA is not opening trades in MT5

They run from the first thing worth ruling out to the rarest, with the menu names of MT5 in English.

1. Algo Trading is disabled in MetaTrader 5

What you see. The “Algo Trading” button is red and the EA’s icon is crossed out or gray. In the “Journal”, “automated trading is disabled”.

Why. It’s the master switch: while it’s off, no EA trades. You can turn it off by hand, and MT5 can do it for you: in Tools → Options → “Expert Advisors”, the boxes “Disable algorithmic trading when the account has been changed” and “… when the profile has been changed” turn it off every time you do one of those things, and the “Journal” records it (“automated trading is disabled because the account has been changed”).

How to fix it. Click the button (or press Ctrl+E) until it’s green and, if it keeps turning itself off, uncheck those two boxes. One exception: when you move the robot to the MetaTrader VPS (the platform’s own rented server, which is always on), MT5 turns the button off on your computer so the robot doesn’t trade twice. There, that’s correct: don’t turn it on.

2. The EA doesn’t have its own permission: “Allow Algo Trading”

What you see. The button is green, but the EA’s icon is still crossed out or gray.

Why. Besides the master switch, each EA has its own, and it needs both. MT5 takes it away from that one EA if you change the symbol or the timeframe of its chart while the box “Disable algorithmic trading when the charts symbol or period has been changed” is checked (Tools → Options → “Expert Advisors”).

How to fix it. Press F7 on the chart → “Common” tab → check “Allow Algo Trading” → OK. You can also do it from the “Navigator”: the running EAs are listed under your account, and a right-click lets you allow or prohibit trading for each one.

3. You’ve logged in with the investor password

What you see. When MT5 connects, the “Journal” writes “trading has been disabled - investor mode”, and when the EA tries to trade, “[Trade disabled]” (code 10017).

Why. The main password (also called the master password) gives full access; the investor password is read-only: you can see the account, and even keep an EA on the chart, but you can’t trade (what the investor password is for).

How to fix it. File → “Login to Trade Account” and log in with the main password.

4. MT5 isn’t connected, or it’s connected to another account

What you see. There are no numbers at the bottom right and the price isn’t moving. If the EA tries to trade, “[No connection]” (code 10031).

Why. Usually it’s the wrong server (a broker has many), the password for the broker’s website instead of the trading one, or the internet is down. Other times MT5 does connect, but to another account: the demo instead of the live one.

How to fix it. File → “Login to Trade Account”, with the server exactly as your broker gives it. Once you’re in, the “Journal” writes “authorized on …” and the name of the server.

5. The market is closed

What you see. The price isn’t moving. If the EA tries to trade, “[Market closed]” (code 10018).

Why. Gold doesn’t trade from Friday’s close until it reopens on Sunday night, it pauses for around an hour every day, and holidays can shorten the session or keep it closed (gold trading hours and the daily pause).

How to fix it. There’s nothing to do: it comes back on its own. Your broker’s hours are in the symbol’s “Specification” (right-click the symbol in “Market Watch”), under “Sessions”.

6. The EA is on the wrong symbol or timeframe

What you see. The EA is active and shows no errors, but it does nothing.

Why. Many EAs are built for one instrument and one timeframe. And gold doesn’t have the same name at every broker: XAUUSD, GOLD or with a suffix, such as XAUUSD.m. Sometimes there are several “golds” and only one of them can be traded on your account type.

How to fix it. Put the EA on the symbol whose prices are moving and on the timeframe its developer specifies; if you’re not sure, ask your broker which one goes with your account. If the EA has an input for the symbol name, set it in F7 → “Inputs”.

7. The broker doesn’t allow trading on that symbol or that account

What you see. “[Trade disabled]” (10017) even though you logged in with the main password, or “trading has been disabled” followed by the reason. Also code 10026, if the server doesn’t accept robots on that account.

Why. These are the broker’s rules, not MT5’s: a symbol set to close-only or disabled, a blocked account (for example, a funded account that goes past a loss limit) or an account type without automated trading.

How to fix it. Look up the symbol’s trade mode in its “Specification” (full access, close only, disabled…) and ask your broker: you can’t change it from MT5.

8. There isn’t enough free margin, or the lot isn’t valid

What you see. “[No money]” in the “Journal” (code 10019), sometimes with a “Not enough money…” alert, or “[Invalid volume]” (10014).

Why. Every order needs free margin: if the lot is large for your capital, or other trades are tying the margin up, the server rejects it (what free margin is). And the volume can’t be below the symbol’s “Minimal volume” and has to be a multiple of its “Volume step”: 0.015 lots isn’t valid where the step is 0.01.

How to fix it. Lower the lot or the risk in the EA’s inputs. Both limits are in the symbol’s “Specification” (margin and the minimum lot on gold).

9. The server rejects the order: stops or filling mode

What you see. “[Invalid stops]” (10016), “[Invalid price]” (10015) or “[Unsupported filling mode]” (10030).

Why. A symbol can have a “Stops level”: a minimum distance, in points, between the price and a stop loss, a take profit or a pending order; any closer and the server won’t accept the order. The filling mode is a separate matter: each symbol accepts certain ways of filling an order (such as Fill or Kill, “all or nothing”) and, if the EA sends a different one, the order is rejected every time.

How to fix it. A one-off “[Invalid stops]” in a fast market doesn’t need fixing. If it shows up on every order for days, the stops the EA calculates are too close for your broker: send the developer a screenshot of the “Journal” before you touch its inputs, because changing the stops means changing the strategy. Only the developer can fix the filling mode.

10. The EA hasn’t started: files are missing, or it’s no longer on the chart

What you see. “cannot load custom indicator …” in “Experts”, with code 4802 in square brackets, an “initializing of … failed” line in the “Journal”, or the EA’s name has gone from the corner of the chart.

Why. If the EA uses its own indicators and one of them is missing from MQL5/Indicators, it normally won’t start. And a chart holds only one EA: put another one on and the first is removed. It also goes if you close the chart.

How to fix it. Copy all the developer’s files (where each one goes), restart MT5 and drag the EA onto the chart again. Right-click the chart → “Expert List” tells you which robot is on it.

11. The EA is missing a permission or its license: DLL, WebRequest or an expired trial

What you see. Messages in “Experts” about a DLL, about a URL (often with error 4014) or about the license.

Why. For security, MT5 asks for explicit permission for two things some EAs need: using DLL libraries and connecting to the internet with WebRequest, for example to check a license. And commercial EAs usually stop opening trades when their license or trial expires; demo versions from the MetaTrader Market only run in the Strategy Tester.

How to fix it. In Tools → Options → “Expert Advisors”, check “Allow WebRequest for listed URL” and add the address the developer gives you. “Allow DLL imports” is on that tab (it applies to the EAs you attach afterwards) and on the EA’s own “Dependencies” tab (F7). Check it only if you trust where the program comes from: MT5 describes it as potentially dangerous. For the license, talk to whoever sold you the EA.

12. MT5 is closed, the computer is asleep or the VPS isn’t synchronized

What you see. It was working and stopped trading; the “Journal” has hours without a single line.

Why. An EA only works while its MT5 stays open and connected: close the platform or let the computer go to sleep and it stops (sleep and updates on a Mac). On the MetaTrader VPS, what trades is the copy you sent: if you change something and don’t synchronize, it carries on with the old setup, and each synchronization sends only the charts that have an EA on them: if yours isn’t on its chart, it doesn’t go.

How to fix it. Keep the computer from going to sleep, or use a server that doesn’t switch off (what a trading VPS is). After every change, in the “Navigator”, right-click your VPS → “Synchronize experts, indicators”. And keep the robot active in one place only: in two, it duplicates the orders.

13. Nothing is wrong: the EA is waiting

What you see. The icon isn’t crossed out, the button is green, the connection shows numbers, the market is open and there isn’t a single error line.

Why. An EA only enters when the conditions of its strategy are met, and many have filters that skip trades on purpose: a maximum spread, trading hours, a maximum number of trades per day or an open trade that keeps it from opening another.

How to fix it. There’s nothing to fix, only something to check: we cover it in can’t trade, or just hasn’t had to yet?

MT5 error codes that explain why your EA is not trading

When the platform or the server rejects an order, it returns a five-digit code. In the “Journal”, MT5 writes the reason in square brackets; you’ll see the number in “Experts” if the EA prints it. The four-digit ones are errors from the program itself.

The MetaTrader 5 trade server return codes and runtime errors you’re most likely to see when an EA is not trading
CodeWhat it meansWhat to do
10014Invalid volume in the request (“Invalid volume”)Adjust the lot to the symbol’s minimum and step (cause 8)
10015Invalid price in the request (“Invalid price”)If it keeps happening, tell the developer (cause 9)
10016Invalid stops in the request (“Invalid stops”)Almost always, stops too close to the price (cause 9)
10017Trade is disabled (“Trade disabled”)Investor password or a broker rule (causes 3 and 7)
10018Market is closed (“Market closed”)Wait for it to open (cause 5)
10019There is not enough money to complete the request (“No money”)Lower the lot or free up margin (cause 8)
10026Autotrading disabled by server (“AutoTrading disabled by server”)Your account doesn’t accept robots: ask your broker (cause 7)
10027Autotrading disabled by client terminal (“AutoTrading disabled by client”)Turn on the button and the EA’s checkbox, unless you use the MetaTrader VPS (causes 1 and 2)
10030Invalid order filling type (“Unsupported filling mode”)Only the developer can fix it (cause 9)
10031No connection with the trade server (“No connection”)Check the connection and the account (cause 4)
10032Operation is allowed only for live accountsNot available on demo: ask your broker (cause 7)
10033
10034
10040
The number of pending orders, the volume of orders and positions for the symbol or the number of open positions has reached the limitBroker limits: close something or ask your broker (cause 7)
10044The “Only position closing is allowed” rule is set for the symbolYou can’t open trades on that symbol (cause 7)
4752Trading by Expert Advisors prohibitedThe button or the checkbox is off (causes 1 and 2)
4756Trade request sending failedIt’s generic: the reason is in the five-digit code or in the “Journal”
4802Indicator cannot be createdAn indicator is missing (cause 10)
4014Function is not allowed for callIn an EA that connects to the internet, its URL is usually missing from WebRequest (cause 11)

Source: MQL5 Reference, “Trade Server Return Codes” and “Runtime Errors”, accessed November 15, 2026. The texts in quotation marks are the ones MetaTrader 5 writes, in square brackets, in the “Journal” or in “Experts”. The terminal’s own wording for codes 10026 and 10027 is “Algo Trading disabled on the server side” and “Algo Trading disabled at the client terminal”.

Can’t trade, or just hasn’t had to yet?

Three checks settle it.

  1. Look for attempts. A line with “failed” in the “Journal” means the EA tried to trade and something stopped it: the reason is in square brackets. If there are no attempts and the five points in the first section are fine, the most likely explanation is that its conditions haven’t been met.
  2. Compare it with the Strategy Tester. Run the EA over those same dates, with the same symbol, the same timeframe and the same inputs (View → “Strategy Tester”, or Ctrl+R: how to backtest in MT5). If it didn’t trade on those days in the simulation either, nothing is broken; if it did trade there, go back to the table. The two won’t match exactly: spread and execution aren’t identical, and WebRequest doesn’t work inside the tester, so an EA that checks its license online may behave differently there: ask its developer.
  3. Try it on a demo account first. The permissions and the messages are the same as on a live account, and you see how it behaves without risking money (how to test a robot on demo).

A robot that trades a few times a month can go days without opening anything, and that isn’t a fault. What you shouldn’t do is change its inputs just to see it trade: you’d be testing a different strategy.

What to send support if your EA still isn’t trading

If it’s still not trading, write to the EA’s developer or to your broker, depending on which one the message points to, and include this:

Checklist before you ask for help
  • The lines from “Experts” and from the “Journal” since the EA started: right-click → “Copy”, or a screenshot.
  • Your MT5 version: the build number, in Help → “About”.
  • The broker, the server and the account type: demo or live, and hedging or netting (the “Journal” writes it when you log in: “hedging mode” or “netting mode”).
  • The exact symbol, with its suffix, and the chart’s timeframe.
  • Where it runs: Windows, Mac or a VPS.
  • What the icon and the button look like, how long it has gone without trading and what changed before that.
  • Never the account’s main password: no support team needs it.

If your EA is AUREUM: a guide organized by symptom

AUREUM is an Expert Advisor, software that runs two gold strategies (XAU/USD) in your own MetaTrader 5 account. Your money stays in your account, and an account running AUREUM can also lose money. Its installation guide has a section, “If something isn’t working”, organized by symptom: you find yours and open the solution. It has a group called “It’s on the chart but not trading” and a checker, a small program that tests your setup in 6 checks and tells you which one fails; it doesn’t trade and doesn’t change anything. And if it has gone hours or days without opening a single trade, the guide says that’s normal: it only enters when its conditions are met.

Frequently asked questions about an Expert Advisor that is not trading

Why is my EA not taking trades in MT5?

For one of two reasons: something is stopping it from trading, or the conditions of its strategy haven’t been met yet. The first is usually a permission that’s switched off (the Algo Trading button or the EA’s own Allow Algo Trading box), the investor password, a closed market, not enough margin or a broker rule. MetaTrader 5 tells you in the Experts and Journal tabs of the Toolbox: a rejected order leaves a line with the word “failed” that ends with the reason in square brackets.

How do I know if my EA is working in MT5?

Check three things. At the top right of the chart, the EA’s name should appear with its icon neither crossed out nor gray. The Algo Trading button on the toolbar should be green. And at the bottom right, the connection should show numbers. If the Experts and Journal tabs have no error lines either, the EA is running and waiting for its conditions.

What does “Algo Trading disabled” mean in MT5?

That the Expert Advisor tried to send an order and didn’t have permission. MT5 words it in more than one way. “Algo Trading disabled at the client terminal”, or “disabled by client” in the Journal and Experts tabs (code 10027), means the permission is missing in your MetaTrader 5: turn on the Algo Trading button and check Allow Algo Trading in the EA’s properties (F7, Common tab), unless the robot is on the MetaTrader VPS: in that case MT5 turns it off on your computer on purpose. “Algo Trading disabled on the server side”, or “disabled by server” (code 10026), means the broker has disabled it for your account, and you’ll have to ask them.

What is error 10027 in MT5?

It’s the code MetaTrader 5 uses to reject an order because algo trading is disabled in your platform (“disabled by client” in the logs): the order doesn’t even reach the broker. Either the Algo Trading button isn’t green (Ctrl+E) or the EA’s Allow Algo Trading box isn’t checked (F7, Common tab). One exception: if the robot is on the MetaTrader VPS, MT5 turns it off on your computer on purpose and you shouldn’t turn it on, because it would trade twice. Code 10026 (“disabled by server”) is the same block, set by the broker’s server.

Can an EA trade with the investor password?

No. The investor password is read-only: it lets you see the account and the prices, and even keep an EA on the chart, but not send orders. When you log in, the Journal writes “trading has been disabled - investor mode”, and every attempt by the EA ends in “[Trade disabled]”. For it to trade, log in with the main password from File → Login to Trade Account.

Why did my EA stop trading when I closed MT5 or my computer went to sleep?

Because an Expert Advisor only works while the desktop MetaTrader 5 it’s attached to stays open and connected: if you close the platform, or the computer shuts down or goes to sleep, it stops. Orders that are already at the broker, such as a stop loss or a pending order, stay there. To stop depending on your own computer you need a VPS, and the mobile app is for watching the account, not for running the robot.

How long can an EA take to open its first trade?

It depends on its strategy, and there’s no time frame that fits them all. An EA only enters when its conditions are met, and one that trades a few times a month can go days without opening anything. To find out whether that’s normal, run it through the Strategy Tester with the same dates, the same symbol and the same inputs: if it didn’t trade there either, nothing is broken.

Risk warning

The menus, messages and codes in this article were checked in November 2026 with MetaTrader 5 for desktop and with the MetaQuotes documentation; they can change with the platform version and with each broker. Getting an Expert Advisor to open trades says nothing about its results: a robot that trades can also lose. Leveraged gold trading, which on MetaTrader 5 brokers is usually done with CFDs, carries a high level of risk and you can lose some or all of your capital: most retail CFD accounts lose money (how many traders lose money). The AUREUM figures we quote come from a simulation (backtest), not from a live account. Past or simulated results do not guarantee future results. This content is educational and is not financial or investment advice.

AUREUM: automated rules on gold, with its backtest published

Software that runs two strategies on XAU/USD in your own MetaTrader 5 account, where every trade opens with its loss and profit limits already calculated. Its 2024–2026 backtest, with both strategies together, is published with its drawdowns: a maximum drawdown of 22.35% across 345 trades. It’s a simulation, not a live account, and trading leveraged CFDs can lose you money.

See the full report →