Automated trading disabled: MT4 error 4112 and MT5 10026, fixed
Your Expert Advisor or copier places an order and MetaTrader refuses it: automated trading is disabled. Some of these errors you can fix in the terminal in a minute. Others only your broker can fix.
By the Algo Trader Tools team · Updated · 5 min read
The short answer
- MT4 4109 and MT5 10027 come from your own terminal: switch on AutoTrading (MT4) or Algo Trading (MT5), and allow live trading in the Expert Advisor's settings.
- MT4 4112 and MT5 10026 come from the broker's server: it has switched off automated trading for your account. Only the broker can switch it back on.
- MT4 133 and MT5 10017 mean trading itself is off, for the account or the symbol. Ask the broker.
What each error means
MetaTrader names the errors in its own documentation. The last column is what matters: who can fix it.
| Code | Platform | MetaTrader's message | Who can fix it |
|---|---|---|---|
| 4109 | MT4 | Trade is not allowed. Enable checkbox “Allow live trading” in the Expert Advisor properties | You, in the terminal |
| 4112 | MT4 | Automated trading by Expert Advisors/Scripts disabled by trade server | The broker |
| 133 | MT4 | Trade is disabled | The broker |
| 10027 | MT5 | Autotrading disabled by client terminal | You, in the terminal |
| 10026 | MT5 | Autotrading disabled by server | The broker |
| 10017 | MT5 | Trade is disabled | The broker |
Errors you can fix: 4109 and 10027
The terminal has two switches, and both must be on for an Expert Advisor to trade: one for the whole terminal, one for each Expert Advisor.
In MetaTrader 4
- Click AutoTrading in the toolbar, so its icon turns green. Under Tools, Options, Expert Advisors, Allow automated trading does the same and stays on after a restart.
- Open the Expert Advisor's properties on the chart, and on the Common tab tick Allow live trading.
In MetaTrader 5
- Click Algo Trading in the toolbar. Under Tools, Options, Expert Advisors, Allow algorithmic trading keeps it on.
- In the Expert Advisor's properties, on the Common tab, tick Allow Algo Trading.
The icon beside the Expert Advisor's name in the top right of the chart shows whether it may trade: in MT4, a smiling face means yes. If orders still fail, read the Experts and Journal tabs for the exact code.
Errors only your broker can fix: 4112 and 10026
These come from the broker's trade server, not your terminal. The broker has switched off automated trading for your account, and no setting in MetaTrader changes that. Brokers do it for some account types, some promotions and some prop firm accounts, or after a review of the account.
Don't try to work around it. The broker switched it off on purpose, and its terms usually say why. Write to its support instead:
“My MetaTrader account [number] on [server] refuses orders from Expert Advisors with error [4112 or 10026], automated trading disabled by the trade server. Please enable automated trading for this account, or tell me which account type allows it.”
Codes 133 on MT4 and 10017 on MT5 go a step further: trading itself is off, for the whole account or for one symbol. That can mean the account is read-only, expired or under review, or that the symbol is close-only. Again, only the broker can tell you.
One more cause: the investor password
An account you logged into with its investor password is read-only. It shows balance, equity and trades, but no order goes through, from an Expert Advisor or by hand. Log in with the master (trading) password to trade. A copier can read a master account through its investor password, but every account that receives copies needs the master password.
How a cloud copier handles it
With a cloud copier there's no terminal of yours, so the AutoTrading and Algo Trading switches don't apply: the hosted terminal has them on. Only the broker's side can stop a copy.
Our copier reads that broker-side setting when you add a follower. If the broker has switched off trading or automated trading on the account, the follower is refused with the reason, instead of failing every copy with 4112 or 10026 later. Master accounts are still allowed, since nothing is traded on them. See the MT4 and MT5 trade copier pages for what else a follower needs.