“AutoTrading Disabled” and Other MT5 EA Errors Fixed

MT5 Troubleshooting

"AutoTrading Disabled"and Other MT5 EA Errors Fixed

Your Expert Advisor is on the chart but not trading? In most cases it's one of a handful of MT5 errors. This guide shows you where to find the error, what it means, and exactly how to fix it, from "Autotrading disabled by client terminal" to Not enough money, Invalid volume and Invalid stops.

By Maaz Bashir, Aura Trade FX 10 min read
Start here

The 60-Second EA Checklist

Most "my EA isn't working" problems are fixed by one of these. Tick them off as you go.

Is your EA ready to trade?
0/8
✓ All set. If your EA still isn't trading, check the Experts tab and use the error finder below.
Step 1

Where to Find MT5 EA Error Messages

MT5 always tells you why a trade failed. Open the Toolbox with Ctrl + T and check these two tabs:

Experts tab

Messages from your EA itself: when it loads, when it opens or closes trades, and the reason a trade failed, for example failed market buy … [Not enough money]. This is the first place to look.

Journal tab

Messages from the MT5 platform: logins, connection drops, "algorithmic trading disabled", and EAs that failed to load. Check it if the Experts tab is empty.

Error messages often include a return code such as 10027 or 10019. Type the code or the message into the error finder below to jump straight to the fix.

The #1 EA error

How to Fix "AutoTrading Disabled" in MT5

You'll see it as Autotrading disabled by client terminal (return code 10027), or "algorithmic trading is disabled" in the Journal. It means MT5 itself is blocking your EA. In newer MT5 versions the AutoTrading button is called Algo Trading. There are three switches, and all three must be on:

1

The Algo Trading button

Top toolbar → Algo Trading

This is the master switch for every EA in the terminal. Click it so the icon turns from a red square to a green triangle.

Algo Trading →Algo Trading
2

The platform option

Tools → Options → Expert Advisors

Tick Allow algorithmic trading. Then untick the "Disable algorithmic trading when the account / profile / chart symbol or period has been changed" boxes so MT5 doesn't switch your EA off by itself.

✓Allow algorithmic trading
3

The EA's own setting

Right-click chart → Expert list → Properties → Common

Tick Allow Algo Trading for this EA and click OK. You can also open it by double-clicking the EA's name in the top-right corner of the chart.

✓Allow Algo Trading
Keeps turning off? MT5 switches Algo Trading off when you change account, profile or chart symbol if those "Disable algorithmic trading when…" boxes are ticked. Untick them in Tools → Options → Expert Advisors. If you see Autotrading disabled by server (10026) instead, the block is on your broker's side, so contact your broker.
Error finder

MT5 EA Errors and How to Fix Them

Search by error code or message, or filter by type.

Showing 14 errors
10027

Autotrading disabled by client terminal

Also: "algorithmic trading is disabled"
Settings
Why: automated trading is switched off in your MT5 terminal.
  1. Turn on the Algo Trading button (green triangle).
  2. Tick Allow algorithmic trading in Tools → Options → Expert Advisors.
  3. Tick Allow Algo Trading on the EA's Common tab. Full guide ↑
10026

Autotrading disabled by server

Broker-side block
Account
Why: your broker has disabled automated trading for this account or account type.
  1. Check that you're on a live or demo account that allows EAs.
  2. Contact your broker's support and ask them to enable algorithmic trading.
  3. If it can't be enabled, open a different account type with the same broker.
10019

Not enough money

"There is not enough money to complete the request"
Account
Why: your free margin is too low for the lot size the EA is trying to open.
  1. Lower the EA's lot size or risk setting.
  2. Reduce the maximum number of grid levels or trades.
  3. On a small balance, use a cent account so each trade is 100× smaller.
10014

Invalid volume

"Invalid volume in the request"
Orders
Why: the lot size is below the symbol's minimum, above its maximum, or not a valid step (e.g. 0.015).
  1. Right-click the symbol in Market Watch → Specification and check minimal volume, maximal volume and volume step.
  2. Set the EA's lot size within those limits.
  3. Check the multiplier for grid EAs: later levels can go over the maximum lot.
10016

Invalid stops

"Invalid stops in the request"
Orders
Why: the stop loss or take profit is too close to the current price, inside the broker's stops level.
  1. Check the stops level in the symbol's Specification.
  2. Increase the EA's SL/TP distance beyond that level.
  3. Avoid news spikes, when spreads widen and push stops inside the limit.
10018

Market is closed

"Market is closed"
Orders
Why: the symbol isn't trading right now: weekend, holiday, daily break, or outside its session.
  1. Check the trading sessions in the symbol's Specification.
  2. Wait for the market to open. Gold also has a short daily break.
  3. Make sure the EA is on a symbol your account can trade (e.g. XAUUSDc on a cent account).
10017

Trade is disabled

Also 10044: "Only position closing is allowed"
Account
Why: trading is blocked for this symbol or account. You may be logged in with the read-only investor password, or the symbol is set to close-only.
  1. Log in again with your master (trading) password.
  2. Check the symbol's trade mode in its Specification.
  3. Move the EA to a tradable symbol or ask your broker.
10030

Invalid order filling type

"Unsupported filling mode"
Orders
Why: the EA is sending orders with a filling mode (FOK, IOC or Return) that your broker's symbol doesn't accept.
  1. Check the filling modes in the symbol's Specification.
  2. If the EA has a "filling mode" input, change it to match.
  3. Otherwise the fix is in the EA's code, so send the error to the EA developer.
10004

Requote, off quotes or rejected

Also 10006 "Request rejected", 10021 "No quotes"
Connection
Why: the price moved before your order was filled, usually during news or low liquidity.
  1. Increase the EA's slippage or deviation setting if it has one.
  2. Use a news filter to pause trading around high-impact events.
  3. Run MT5 on a VPS close to your broker's server.
10031

No connection with the trade server

"No connection" in the status bar
Connection
Why: MT5 can't reach your broker's server.
  1. Check the connection status in the bottom-right corner of MT5.
  2. File → Login to Trade Account and pick the correct server.
  3. Click the status bar and choose Rescan servers, or check your internet or VPS.
10040

Positions or orders limit reached

Also 10033: "pending orders limit reached"
Account
Why: your account hit the broker's maximum number of open positions or pending orders, which is common with grid EAs.
  1. Lower the EA's maximum trades or grid levels.
  2. Check your account type's limits on the broker's website.
  3. Switch to an account type with a higher limit.
LOAD

EA won't load or is missing in Navigator

"cannot load…" in the Journal
Settings
Why: the file is in the wrong folder, is an MT4 .ex4 file, or needs a newer MT5 build.
  1. File → Open Data Folder → MQL5 → Experts, and paste the .ex5 file there.
  2. Right-click Navigator → Refresh, or restart MT5.
  3. Update MT5 to the latest build. MT4 EAs (.ex4) won't run in MT5, as explained in MT5 vs MT4.
INIT

EA removed or "initialization failed"

Often a license or input problem
Settings
Why: the EA stopped itself on start-up, often because the license doesn't match your account number, has expired, or an input value is invalid.
  1. Read the exact message in the Experts tab.
  2. Check that your license is for this account number and still active.
  3. Reset the inputs to their defaults and attach again.
4014

WebRequest or DLL not allowed

"DLL imports are not allowed" / WebRequest error 4014
Settings
Why: the EA needs internet access (e.g. for a news filter or license check) or a DLL, and MT5 is blocking it.
  1. Tools → Options → Expert Advisors → tick Allow WebRequest for listed URL.
  2. Add the URL(s) your EA developer gives you.
  3. Only tick Allow DLL imports for EAs you trust.
No match. Try a code like 10019 or a word like "stops", or ask our team.
No error at all?

EA Running but Not Opening Trades

If Algo Trading is on, the EA is attached and there's no error in the Experts tab, the EA is usually waiting on purpose. Check these:

  • Filters are active. News filters, max spread filters and trading-hours filters pause the EA. That's normal behaviour, so check the EA's on-chart dashboard or its inputs.
  • Wrong symbol or timeframe. Attach the EA to the symbol and timeframe it was designed for. On cent accounts, gold is usually XAUUSDc.
  • Netting account. Grid and hedging EAs need to hold buy and sell positions together. On a netting account they can't, so open a hedging account.
  • Waiting for a signal. Some EAs only enter when their conditions are met. Give it time during active market hours.
  • MT5 isn't running. If your PC sleeps or MT5 closes, the EA stops. Run it on a VPS for 24/5 trading.
Prevention

How to Avoid MT5 EA Errors

Use a VPS

Keeps MT5 online 24/5 with a stable, low-latency connection to your broker.

Test on a cent account

Run a new EA or new settings on a small cent account before you go bigger.

Untick auto-disable

Stop MT5 turning Algo Trading off when you switch account, profile or symbol.

Read the Specification

Check min lot, volume step, stops level and sessions before setting EA inputs.

Keep MT5 updated

New EAs may need the latest build. Restart MT5 after updates.

Send screenshots

When you ask for help, include the Experts and Journal tabs, your broker and symbol.

FAQ

MT5 EA Errors: FAQ

Click the Algo Trading button on the top toolbar so it shows a green triangle, tick "Allow algorithmic trading" in Tools → Options → Expert Advisors, and tick "Allow Algo Trading" on the EA's Common tab. All three must be on for an EA to trade.

MT5 can switch algorithmic trading off automatically when you change account, profile or chart symbol or period. Untick the "Disable algorithmic trading when…" options in Tools → Options → Expert Advisors to stop it.

Error 10027 means "Autotrading disabled by client terminal". Your MT5 terminal is blocking the EA, so turn on the Algo Trading button and the two "allow" settings.

Check the Experts tab for an error first. If there's none, the EA is usually waiting because of a news, spread or time filter, it's on the wrong symbol, or it's on a netting account when it needs a hedging account.

No. The investor password is read-only, so neither you nor your EA can open or close trades. Log in with your master (trading) password.

No. An EA only runs while MT5 is open and connected. Use a VPS to keep it running 24 hours a day, five days a week.

Still stuck?

Send Us Your Error. We'll Help.

Aura EA users get setup help from our team. Send a screenshot of your Experts and Journal tabs, your broker and the symbol you're trading.


Note: Menu names and error messages are based on current MetaTrader 5 builds and may differ slightly between versions and brokers.

Risk disclaimer: Trading forex, gold and CFDs on margin carries a high level of risk and may not be suitable for all investors. You could lose all of your deposit. Automated trading does not remove this risk, and past performance does not guarantee future results. This article is for educational purposes only and is not financial advice.

Leave a Comment