MT5 expert advisor auto trading disabled: how to fix permissions from the Algo Trading button to the chart
MT5 says auto trading is disabled? Check each permission layer in order: the Algo Trading button, platform options, the EA's chart settings and the broker account.

Why MT5 says auto trading is disabled for your expert advisor
When MT5 reports that auto trading is disabled for an expert advisor, at least one permission layer is switched off. The usual suspects are the Algo Trading button on the toolbar, the "Allow algorithmic trading" option in Tools > Options > Expert Advisors, and the "Allow Algo Trading" checkbox in the EA's own properties on that chart. Every layer inside the terminal must be on, and the broker's server must also allow automated trading on your account. The fastest fix is to check the layers in order, from platform-wide controls down to the single chart.
This guide covers only that permission chain. If every permission is on and the EA still does not open positions, the cause is usually broker limits or the EA's own entry conditions. That case is covered in the diagnostic checklist linked further down.
Automate this on MetaTrader 5
A MetaTrader 5 expert advisor with documented inputs, full backtest settings and clear risk limits.
The permission layers, from widest to narrowest
MT5 checks permissions at several levels. A higher layer switched off overrides everything below it.
| Layer | Where it lives | What it controls | Typical symptom when off |
|---|---|---|---|
| Broker server | Account and symbol settings on the broker side | Whether automated trading is allowed at all | Trade requests rejected with a server message |
| Terminal button | Algo Trading button on the main toolbar | All EAs in this terminal | Every chart's EA stops sending orders |
| Platform settings | Tools > Options > Expert Advisors | Global permission and auto-disable rules | Button turns itself off after certain actions |
| Chart level | EA properties, Common tab | One EA on one chart | One chart idle while others trade |
Layer 1: the Algo Trading button
The Algo Trading button sits on the standard toolbar. Older builds labeled it AutoTrading, so older guides and forum posts use that name. When it is off, the EA can stay attached and keep calculating, but any trade request it sends is refused by the terminal.
Check its state visually: the icon changes color between enabled and disabled, and hovering over it shows a tooltip. On many builds Ctrl+E toggles it, which is also an easy way to switch it off by accident. If you use keyboard shortcuts heavily while scalping manually in the same terminal, keep that in mind.
Layer 2: platform settings in Tools > Options > Expert Advisors
Open Tools > Options and select the Expert Advisors tab. The exact wording can change slightly between builds, so read the labels on your own screen, but you should find options along these lines:
- Allow algorithmic trading: the global master switch. It is linked to the toolbar button.
- Disable algorithmic trading when the account has been changed: logging into another account turns the button off.
- Disable algorithmic trading when the profile has been changed: loading another chart profile turns it off.
- Disable algorithmic trading when the chart symbol or period has been changed: switching a chart from EURUSD H1 to M15, for example, turns it off.
- Options for DLL imports and allowed WebRequest URLs. These are not trading permissions, but an EA that needs them can fail to initialize, and that failure can look like a permission problem.
The three auto-disable options explain most cases where the button "turns itself off". They are safety features, so they are worth keeping on rather than disabling to save a click. MetaQuotes describes these settings on the MT5 platform settings help page.
Layer 3: chart-level EA properties
Each attached EA has its own permission. On the chart, press F7 or right-click and open the EA's properties, then go to the Common tab. Make sure "Allow Algo Trading" is checked and confirm with OK.
This layer is independent per chart. You might run one EA on a EURUSD chart and another on a second chart; one can be enabled while the other is not. The EA status icon in the top-right corner of each chart shows whether that EA is allowed to trade. Hover over it to read the status rather than relying on color alone.
Layer 4: the account and the broker server
Even with all three terminal layers on, the broker can still block trading:
- Investor password login: a read-only login. The account shows balances and charts but cannot trade, manually or automatically.
- Account type restrictions: some account types do not allow automated trading. The terminal then returns a server-side refusal.
- Symbol trade mode: right-click the symbol in Market Watch, open Specification and look at the trade mode. Values such as close-only or disabled stop new positions regardless of your settings.
This last check matters for futures-style symbols. If your broker offers ES, NQ or CL contracts or CFDs in MT5, symbol names, sessions and trade modes are defined by the broker, so verify the specification of the exact symbol your EA trades.
A five-minute check, in order
- Look at the Algo Trading button and make sure it is enabled.
- Open Tools > Options > Expert Advisors and confirm "Allow algorithmic trading" is checked. Note which auto-disable options are active.
- On the EA's chart, press F7, open the Common tab and confirm "Allow Algo Trading" is checked.
- Check the chart's EA status icon in the top-right corner.
- Confirm you are logged in with the trading password, not the investor password.
- Open the symbol Specification in Market Watch and check the trade mode.
- Read the Experts and Journal tabs for the most recent trade attempt.
If step 7 shows nothing at all, the EA may not have tried to trade yet, which points to its conditions rather than permissions.
Reading the messages that tell you which layer is off
The log tells you whether the block comes from your terminal or from the broker. Trade server return codes in MQL5 distinguish the two:
- 10027, autotrading disabled by client terminal: a terminal-side layer is off. Recheck the button, the Options tab and the chart's Common tab.
- 10026, autotrading disabled by server: the broker side refuses automated trading. No terminal setting fixes this; contact the broker or check the account type.
When you report a problem to an EA vendor or a broker, copy the exact line from the Experts or Journal tab rather than paraphrasing it. For a broader walkthrough of where these messages appear and how to read them, see the guide on MT5 expert advisor log errors in the Experts and Journal tabs. The official MT5 help on algorithmic trading also covers how the terminal handles trade permissions for EAs.
Situations that quietly switch permissions off
A few routine actions are responsible for most "it was working yesterday" cases:
- Switching accounts: moving from a demo to a live login, or between two live accounts, triggers the account-change rule.
- Loading a different profile: a profile with the EA attached can arrive with the button off.
- Changing the chart timeframe or symbol: a quick look at M5 on the EA's H1 chart can disable trading.
- Moving to a VPS or a new terminal: the button state, Options settings and chart permissions all need to be rechecked on the new machine. The article on MT5 expert advisor VPS setup basics lists what to verify after a move.
- Reattaching the EA: removing and reattaching opens the properties dialog again. Check the Common tab every time instead of assuming the old state carried over.
A simple habit helps: after any of these actions, look at the button and the chart icon before walking away from the screen.
When every permission is on and nothing trades
If the button, the Options tab and the chart checkbox are all on, the account can trade and the logs show no permission error, the issue is no longer "auto trading disabled". Common causes then include spread filters, trading hours inputs, minimum lot or margin limits, or entry conditions that simply have not occurred. Work through the diagnostic checklist for an MT5 expert advisor not placing trades for that part.
This is where documentation matters. An EA whose inputs and set files are clearly described lets you tell a filter that is doing its job from a setting that is blocking it. If you want a starting point with that documentation already written, an MT5 expert advisor with documented inputs and set files avoids guessing what each parameter does. Permissions and inputs only control whether and how the EA can act; they say nothing about whether a strategy will be profitable, so test on a demo account first. The CFTC's investor education resources are a sensible read before running any automated system on a live account.
Conclusion
An MT5 expert advisor showing auto trading disabled is almost always a permission chain problem. Check the Algo Trading button, then Tools > Options > Expert Advisors, then the EA's Common tab on its chart, then the account and symbol settings on the broker side. Use the Experts and Journal tabs to see whether the refusal came from the terminal (10027) or the server (10026), and recheck everything after switching accounts, profiles, timeframes or machines. If you want an EA that comes with clear documentation of its inputs and set files, take a look at the MT5 expert advisor from SierraOnShop.
FAQ
Does the Strategy Tester need the Algo Trading button enabled?
No. The Strategy Tester runs the EA in its own testing environment, so the toolbar button does not control backtests. It only governs live and demo trading on attached charts.
Can an expert advisor turn Algo Trading back on by itself?
No. An MQL5 program can read whether trading is allowed at the terminal and program level, but it cannot enable the permission. Only you can switch it back on.
Why does only one of my charts stop trading?
The chart-level permission is set per EA. Open that chart's EA properties with F7 and check the Common tab, and confirm the timeframe or symbol was not changed on that chart.
Do I need to re-enable Algo Trading after restarting MT5?
The terminal normally remembers the button state between sessions, but do not rely on it. Check the button and each chart's EA icon after every restart, especially on a VPS.
Run it in MetaTrader 5
Written by
Clement
Futures trader for more than seven years, specialized in order book and order flow scalping on US index futures, now building automated strategies. Founder of SierraOnShop.
More about the authorReady to run an expert advisor?
A MetaTrader 5 expert advisor with documented inputs, full backtest settings and clear risk limits.