Skip to main content
ForexCopilotEA

MT5 EA not trading: AutoTrading disabled and error 4752, 10026, 10027

By Benjamin Lee · Published 2026-10-12 · Updated 2026-11-14 · 6 min read

An MT5 Expert Advisor that is attached but not trading is almost always blocked by a disabled Algo Trading switch, an EA permission, a read-only login, a closed market or one of its own input filters, and the Experts and Journal tabs usually name the exact cause. Work down the checklist in order, stop at the first item that fails, and decode any message with the return codes listed further down.

Check the three switches first

An MT5 EA trades only when three separate settings allow it. The Algo Trading button in the top toolbar must be green, Allow Algo Trading must be ticked in the EA's Common tab, and the EA's icon in the chart's top-right corner must show a smiley face. A frowning or crossed icon means the EA is attached but blocked.

The toolbar button turns every EA on or off for the whole terminal, while the Common tab setting is per chart, so one chart can be blocked while another works. To change the per-chart setting, press F7 on the chart or right-click it and open Expert Advisors > Properties, then tick Allow Algo Trading on the Common tab.

There is also a terminal-wide permission under Tools > Options > Expert Advisors called Allow Algorithmic Trading. The same page has options that switch the Algo Trading button off automatically when you change account, change the chart's symbol or period, or change profile. If the button keeps turning itself off, look at those options.

MT5 EA not trading checklist, in order

Work down this list and stop at the first item that fails. Each step is cheap to check and rules out a whole class of causes.

  • The Algo Trading button in the toolbar is green, not red.
  • The EA's icon in the chart's top-right corner is a smiley face, and Allow Algo Trading is ticked on the Common tab.
  • Allow Algorithmic Trading is ticked in Tools > Options > Expert Advisors.
  • You are logged in with the trading password, not the investor password.
  • The connection indicator at the bottom right of the terminal shows a live connection, not No connection.
  • The market for that symbol is open and the symbol's trade mode allows the order.
  • The symbol on the chart exactly matches the name your broker uses, including any suffix.
  • The Experts and Journal tabs show no rejection or error message.
  • The EA's own inputs, such as maximum spread, trading hours and allowed days, are not blocking entries.
  • If it runs on a VPS, the terminal is online, logged in and synchronised on that machine.

Read the Experts and Journal tabs

Press Ctrl+T to open the Toolbox and read the latest lines in the Experts tab. The EA writes its own reasons there, and the Journal tab shows what the platform and the server returned, often with the return code that names the cause.

Right-click inside either tab and choose Open to see older log files, which helps when the problem happened overnight. If the Experts tab is completely silent after you attach the EA, it may not have loaded at all, so check that the chart shows the EA's name in the top-left corner.

'AutoTrading disabled by client' (10027), 'by server' (10026), errors 4752 and 4756

Error 4752 means trading by Expert Advisors is prohibited. Check the toolbar button and the Allow Algo Trading setting in the EA's properties, and in Tools > Options > Expert Advisors confirm that Allow Algorithmic Trading is enabled.

Return code 10027 means AutoTrading is disabled by the client terminal, which points to the same switches on your side. Return code 10026 means AutoTrading is disabled by the server, so the broker or the account type does not allow it and you need to ask the broker.

Error 4756 means the EA tried to send a trade request and the request failed, which points away from the permissions. Read the Journal line next to it, which usually carries the real reason such as an invalid volume, invalid stops, market closed or not enough money.

  • 10027: disabled in your terminal. Turn on the toolbar button and the EA's setting.
  • 10026: disabled by the broker's server. Contact the broker about the account.
  • 4752: EA trading prohibited. Recheck the Options and the EA's Common tab.
  • 4756: the trade request could not be sent. Read the accompanying Journal message.
  • 10018: market closed. Wait for the session to open.
  • 10017: trading is disabled for the account or symbol, which is how a read-only login or a restricted symbol can appear.
  • 10030: unsupported filling mode. See the filling mode section below.
  • 10019: not enough money for the requested volume.

Investor password, market closed and symbol trade mode

An investor password gives view-only access: charts, history and indicators work, but orders are refused. If you are unsure which password you used, log out and log in again with the trading password from your broker. The terminal title bar and the Navigator account list show which account is connected.

Forex symbols are closed on weekends, and indices, metals and CFDs have their own sessions, so a quiet EA at 02:00 may simply face a closed market. In Market Watch, right-click the symbol, choose Specification, and read Trade mode. Full access allows everything. Close only, Long only, Short only or Disabled each restrict what an EA can open, and the EA's order will be rejected if it asks for something the mode does not allow.

Filling mode errors on MT5 (10030 Unsupported filling mode)

Each symbol supports certain order filling policies, such as Fill or Kill, Immediate or Cancel, and Return. If an EA requests a policy the symbol does not support, the server rejects the order with code 10030 and the EA never opens a trade, even though every switch is on.

Many EAs have an input for the filling type or detect it automatically. If yours has the input, try the other values. If it does not, the Specification window lists which modes the symbol allows, and the developer can tell you which the EA uses.

When the switches are on but there is still no trade

An EA with every switch on and no trades is often waiting on its own conditions. Most EAs only trade inside certain hours, with a maximum spread, or when their entry conditions are met, so no trade can simply mean no signal. Check the EA's manual for its trading hours, spread filter, symbol and timeframe, and confirm the chart matches them.

Typical input limits that block entries are a maximum spread (which many brokers exceed around rollover and news), a start and end time that use the broker's server time rather than your local time, allowed trading days, a maximum number of open trades, a minimum free margin, and a news filter. Temporarily loosening one on a demo account shows quickly whether it is the cause.

Also confirm the symbol name matches your broker's, since some brokers add a suffix to the symbol, and that the lot size input is within the symbol's minimum and maximum volume.

Connection and VPS problems

An EA cannot trade while the terminal is disconnected from the trade server. The bottom-right corner shows the connection state, and the Journal records login failures and reconnects. On a VPS, check that the terminal is still logged in after a restart, that you did not close the remote session in a way that stops the terminal, and that the Algo Trading button is still green, since a restart or an account change can leave it off.

Test safely before changing settings

Reproduce the problem on a demo account and read the Experts tab there first. Change one setting at a time so you know what fixed it, and keep a copy of the working settings in a setfile. If every item above passes and the EA still never trades, send the developer the last lines of the Experts and Journal tabs along with your account type, symbol and timeframe.

Frequently asked questions

Why does my EA show a smiley face but not trade?

The switches are fine, so the EA is likely waiting on its own conditions such as trading hours, a spread filter or a signal. Check the manual and the Experts tab.

Why does the Algo Trading button keep turning red in MT5?

Check Tools > Options > Expert Advisors. MT5 can disable algo trading automatically when you change account, profile, or the chart's symbol or period. Untick those options if you do not want that. A terminal restart or a disconnect can also leave it off.

What does error 4756 mean in MT5?

It means the EA's trade request failed to send, for a reason other than permissions. Read the Journal line beside it, which normally gives the reason, such as invalid volume, invalid stops, market closed or insufficient margin.

Why does my EA trade on demo but not on my live account?

Common causes are an investor password on the live login, a different symbol name or suffix, a filling mode the live symbol does not support, wider live spreads that exceed the EA's maximum spread input, or an account type that does not allow EA trading.

What is the difference between error 10026 and 10027?

10027 means AutoTrading is disabled in your own terminal. 10026 means it is disabled by the broker's server, so you need to ask the broker.

Does an investor password stop an EA trading?

Yes. An investor password gives read-only access, so no EA can place trades. Log in with the trading password.

Sources and further reading

Trading foreign exchange, gold and CFDs carries a high level of risk and may not be suitable for all investors. Past performance, backtests and live results do not guarantee future returns. This guide is general education, not financial advice.

More on installing and fixing MT5 Expert Advisors

More guides