The EA is attached. The chart looks normal. The market is open and the setup the EA trades has clearly appeared. Yet nothing happens, or the Journal shows a line like “automated trading is disabled” and moves on.
MetaTrader has several separate switches that can stop an EA from trading, and they sit in different places: a toolbar button, the terminal options, the EA’s own properties, the account and the broker’s server. Any one of them is enough to block every trade. This post walks through all seven, how to spot each, and how to stop them catching you out again on a VPS.
First, Read the Message
Before changing anything, look at what MetaTrader is telling you:
- The face or icon in the top right corner of the chart. In MT4, a smiling face means the EA is allowed to trade, a sad face means it is not. In MT5, the EA icon in the corner turns blue when algo trading is allowed for it and grey when it is not.
- The Experts tab (MT4) or Experts tab in the Toolbox (MT5), which shows messages from the EA itself.
- The Journal tab, which shows messages from the terminal, including rejected trade requests.
In MT5, two trade return codes point straight at the cause: 10027 means “Autotrading disabled by client terminal” and 10026 means “Autotrading disabled by server”. The first is on your side. The second is on the broker’s.
📊 Key Stat: MT5 return code 10027 means your terminal blocked the trade. Code 10026 means the broker’s server did. Knowing which one you have cuts the search in half.
1. The AutoTrading Button Is Off
The most common cause. The toolbar button (AutoTrading in MT4, Algo Trading in recent MT5 builds) is a master switch for every EA in that terminal. When it is off, EAs keep running and can still print messages, but they cannot open, modify or close trades.
It gets switched off more often than you would think: a misclick, the keyboard shortcut Ctrl+E, or one of the automatic rules below.
Fix: click it so it turns green (MT4) or shows the active state (MT5).
2. The EA’s Own “Allow” Setting Is Unticked
Each EA has its own permission, separate from the toolbar button. Open the EA’s properties (press F7 on the chart, or double-click the face or icon) and look at the Common tab. MT4 calls it “Allow live trading”. MT5 calls it “Allow Algo Trading” or “Allow automated trading”, depending on the build.
If it is unticked, that one EA cannot trade even with the toolbar button on. This is the usual cause of a sad face in MT4 or a grey icon in MT5.
Fix: tick it and click OK.
3. The Terminal Turned It Off for You
MetaTrader’s options (Tools, Options, Expert Advisors) include rules that switch automated trading off automatically:
- When the account is changed. Log in to another account in the same terminal and automated trading is disabled.
- When the profile is changed. Switching chart profiles disables it.
- When the chart symbol or period is changed (MT5). Change the timeframe on an EA’s chart and the EA stops trading.
These are safety features, and they are on by default in many terminals. They catch traders out after a broker server change, an account switch or a quick look at a different timeframe. See what to do after a broker server change.
Fix: turn AutoTrading back on. Untick a rule only if you understand why it is there.

4. The Terminal Started Without AutoTrading
MetaTrader remembers the AutoTrading state when it closes normally. If it closed abnormally, or if the terminal was started with a configuration that disables experts, it can come back with AutoTrading off. On a VPS this usually shows up after a restart: the terminal opened automatically, the charts and EAs loaded, but nothing traded.
Fix: after any restart, check the button. Closing the terminal normally with File, Exit before planned restarts helps it save the right state. See what your EA remembers after a restart and MetaTrader automatic startup.
⚠️ Warning: An EA that is running with AutoTrading off looks almost exactly like an EA that is working and simply waiting for a signal. Check the button and the chart icon, not just whether the EA is on the chart.
5. You Logged In With the Investor Password
Every MetaTrader account has two passwords. The master (trading) password allows trading. The investor password is read-only: you see the account, positions and history, but cannot trade. If the terminal is logged in with the investor password, every trade request is rejected, and EAs fail with “trade is disabled” style messages.
This happens when someone saves the investor password in the terminal to share access, or copies the wrong password from an email. Check which password is saved in the terminal before anything else.
Fix: log in again with the master password.
6. Python API Trading Is Blocked (MT5)
If your strategy runs as a Python script using the MetaTrader 5 Python package, MT5 has a separate option to disable automated trading through the external Python API. MetaQuotes describes it as off by default for security, meaning Python trading is blocked until you untick it. Until you change it, your script can read prices but not trade. See Python trading bots on MT5 and a Windows VPS.
Fix: in Tools, Options, Expert Advisors, untick the Python API restriction, and make sure the toolbar button is on.
7. The Broker Has Disabled It
Sometimes the block is not in your terminal at all:
- The account does not allow EAs. Some account types or prop firm accounts restrict automated trading.
- The symbol is close-only or trading is disabled for it, which you can see in the symbol’s specification. See the symbol specification window.
- The account is read-only because of an expired demo, a margin issue or a compliance hold.
- The market is closed for that symbol.
In MT5 this shows as code 10026, “Autotrading disabled by server”, or a trade-disabled error. No setting on your side fixes it.
Fix: contact your broker or prop firm. Ask specifically whether automated trading is enabled for your account and symbol.
A Two-Minute Check for Every Terminal
Run this after every restart, broker server change, account switch or EA update:
- Is the toolbar AutoTrading or Algo Trading button on?
- Does every EA chart show a smiling face (MT4) or an active icon (MT5)?
- Is the terminal connected, with traffic in the bottom right corner?
- Is the account logged in with the master password?
- Does the Experts tab show the EA initialising without errors?
- Do the Journal and Experts tabs show any “disabled” messages since the last check?

💡 Tip: If you run several terminals, check each one. The AutoTrading button belongs to a single terminal, so turning it on in one does nothing for the others.
✅ Best Practice: Add the six-point check to your weekly trading VPS maintenance checklist, and set up push notifications so a stalled EA does not go unnoticed for days.
Recommended FXVPS Plan
Size the server for the number of terminals and EAs you run:
- Core ($29/mo, 2GB RAM, 1 vCPU): one or two terminals.
- Pro ($39/mo, 4GB RAM, 2 vCPU): several terminals or accounts.
- Scaling ($79/mo, 8GB RAM, 4 vCPU): many terminals, prop firm accounts and copiers.
See the pricing page, or try it with the $2.99 7-day trial.
Why FXVPS for EA Traders
- 24/7 Windows servers in London, New York, Tokyo, Hong Kong and over 15 locations.
- Connect from your phone to check the AutoTrading button in seconds.
- Your terminals keep running when you close Remote Desktop.
- Your own Windows desktop, with the Startup folder so terminals reopen after a restart.
Frequently Asked Questions
Why does my EA show a sad face in MT4?
The EA’s “Allow live trading” box is unticked in its properties, or the AutoTrading button is off. Press F7 on the chart, tick the box on the Common tab, and make sure the toolbar button is green.
What does “Autotrading disabled by client terminal” mean?
It is MT5 return code 10027. Your own terminal blocked the trade, usually because the Algo Trading button is off or the EA is not allowed to trade in its properties.
What does “Autotrading disabled by server” mean?
It is MT5 return code 10026. The broker’s server blocked automated trading for the account or symbol. Contact your broker.
Why does AutoTrading turn off by itself?
MetaTrader can disable it automatically when you change accounts, profiles, or (in MT5) an EA chart’s symbol or timeframe. It can also start with AutoTrading off after an abnormal shutdown.
Can I trade with the investor password?
No. The investor password gives read-only access. You need the master password to trade.