TroubleshootingUpdated 27 November 20267 min read

A ten-minute checklist for an EA that sits on a VPS chart and places no trades: switches, chart icon, Experts and Journal errors, market, symbol, account.

In short
  • Check in this order: the terminal is running and connected, the algo trading button is on, the EA is allowed to trade in its own properties, the chart shows the EA's icon in the active state, then read the Experts and Journal tabs.
  • The Experts and Journal tabs usually name the cause: trading disabled by the terminal or by the server, market closed, unknown symbol, not enough money, investor mode.
  • Three causes come with the move to a VPS itself: a fresh account login that switched automated trading off, a symbol with a different suffix on the new account, and time filters that read the VPS clock instead of the broker's.
  • If every switch is on and the logs show no failed order, the EA has not tried to trade: check its own entry conditions and inputs. A different VPS will not change that.

When an Expert Advisor is on a chart on your VPS but places no trades, look for the cause in this short list: automated trading is switched off in the terminal or in the EA, the EA did not start, the market or symbol does not accept orders, or the account cannot trade. Run the checks below in order; the first five take a few minutes, and the Experts and Journal tabs usually name the answer outright. Everything applies to MT4 and MT5, with the label differences noted.

Six checks in order: terminal running, algo trading button, EA allowed to trade, icon on the chart, Experts and Journal tabs, then market, symbol and account
The order of the checks: switches first, then the logs, then the market and the account.

The checklist

  1. The terminal is running and connected. Connect to the VPS and look at the bottom-right corner of MetaTrader. A connection error there is a different problem: see MT4 Invalid account or No connection. If MetaTrader is not open at all after the VPS restarted, set it to start by itself after a reboot.
  2. The algo trading button is on. The toolbar button is called AutoTrading in MT4 and Algo Trading in current MT5 builds (AutoTrading in older ones). When it is off, no Expert Advisor in that terminal can trade, whatever its own settings say. If it keeps switching itself off, read MT5 Algo Trading disabled.
  3. The EA is allowed to trade in its own properties. Open the properties of the EA on that chart from the chart's right-click menu and look at the Common tab. The box is "Allow live trading" in MT4 and "Allow Algo Trading" in current MT5 builds. If the EA uses DLL files, "Allow DLL imports" must be ticked: in MT4 it is in the same Common tab, in MT5 in the Dependencies tab, which appears only for EAs that import functions from DLL or other EX5 files. Only enable it for an EA from a source you trust.
  4. The chart shows the EA in the active state. In MT4 the EA's name and a smiley sit in the upper right corner; a different sign appears when live trading is off in the EA or all experts are disabled. In MT5 the name and an icon appear there, and the icon changes when the EA is not allowed to trade. No name at all means the EA did not start: look at the Experts tab for the reason. Each chart takes one Expert Advisor at a time; attaching a second one replaces the first.
  5. Read the Experts and Journal tabs. Both are in the Terminal window (MT4) or the Toolbox (MT5). The Experts tab shows what the EA prints and its errors; the Journal shows logins, connection events and order attempts. Look at the lines from the time the EA should have traded, and match them to the table below.
  6. The market is open for that symbol. Right-click the symbol in Market Watch and open its specification: it shows the symbol's trading mode and its quoting and trading sessions. Outside the sessions no order is accepted, and an EA that works on ticks does nothing until prices move again.
  7. The chart uses the symbol name of this account. Some brokers add a suffix that differs between account types (for example EURUSD.m against EURUSD). An EA set to trade a fixed symbol name, or attached to a chart from another account's symbol list, fails with "unknown symbol". In Market Watch, right-click and show all symbols to see the exact names, then attach the EA to the right chart and check any symbol input of the EA.
  8. The account is not in investor mode. The investor password gives read-only access: the terminal connects and shows prices but no order goes through. In MT5 the Journal records "trading has been disabled - investor mode". Log in again from the File menu with the master (trading) password.

What the Experts and Journal messages mean

The text after a failed order names the reason. The codes below come from the MQL4 and MQL5 references; an EA may print the code, the text, or both.

Message or codeMT4MT5CauseFix
Trade is not allowed (enable "Allow live trading")4109The MQL4 reference points to the EA's own permissionStep 3, then step 2
Autotrading disabled by client terminal10027Automated trading is off in the terminalStep 2, then step 3
Automated trading disabled by server411210026The account does not accept EA orders on the trade serverAsk the broker or prop firm; see MT5 Algo Trading disabled
Market is closed13210018Outside the symbol's trading sessionsStep 6
Trade is disabled13310017Trading is off for that symbol or accountCheck the symbol specification; ask the broker
Only position closing is allowed10044The symbol is set to close onlyAsk the broker, or trade another symbol
Unknown symbol41064301Wrong symbol name or suffixStep 7
DLL calls are not allowed4017The EA needs DLLs and the permission is offStep 3
Not enough money13410019The lot size needs more free margin than the account hasLower the lot size in the EA inputs or add funds
trading has been disabled - investor modeJournal lineLogged in with the investor passwordStep 8

Causes that appear after moving the EA to a VPS

  • The account login switched automated trading off. MetaTrader has an option to disable automated trading when the account is changed, meant for the move from a demo to a real account. With that option ticked, if you first opened a demo account in the new terminal and then logged in to your real one, the EAs stop trading. Switch automated trading back on after the login, and check the option in the Expert Advisors tab of the terminal options.
  • DLL permission is set per terminal and per EA. The terminal on the VPS has its own options, not those of your PC. Its "Allow DLL imports" option is only the default for EAs attached from then on; an EA already on a chart keeps its own setting: open its properties and check.
  • Time filters read the wrong clock. An EA that limits trading to certain hours may use the VPS clock (TimeLocal, the time of the computer the terminal runs on) or the broker's clock (TimeCurrent, the last known server time). If the VPS is in another time zone than your PC, an EA using the computer clock trades at different hours, or never. Check how the EA's time inputs are meant to be set.
  • The EA was set up on the PC, not on the VPS. Templates, set files and inputs stay on the computer where you saved them. Copy them as described in moving an MT4 EA from a PC to a VPS.
  • Remote Desktop was closed with Sign out. Closing the Remote Desktop window keeps MetaTrader running; signing out of Windows closes it. See keeping MT4 running after closing Remote Desktop.

If the EA stopped on a Monday after trading the week before, start from EA stopped after the weekend.

When the VPS is not the cause

If every switch is on, the icon shows the EA active and the logs show no failed orders, the EA has not tried to trade. It is waiting for its own entry conditions: a filter on spread, time, news or trend, or a signal that has not come. Check its inputs against the vendor's instructions, and run it in the strategy tester on the same symbol and recent dates to see when it would have traded. A server-side block (4112, 10026) comes from the broker's settings, and a closed or close-only symbol from the broker's trading conditions: neither changes with a different VPS, a bigger plan or a reinstall. If the same EA does not trade on your PC either, the VPS is not what to fix.

How this works on Dipgate

On a Trading VPS you connect with Remote Desktop, and closing the connection leaves the terminals and their EAs running. Dipgate sets up autologin; put each platform's shortcut in the "My Platforms Autostart" folder so the terminal opens again after a reboot, as the knowledge base explains. After any restart, look at the algo trading button and the chart icon once the terminal is back. If the checks above point to the VPS itself (a terminal that freezes or a VPS that does not respond), the stuck VPS article lists the first steps (see also VPS stuck or not responding), then open a support ticket with the times from your Journal.

FAQ

The EA trades on my home PC but not on the VPS. Where do I start?

Compare the two terminals: same account and server, same symbol name on the chart, same EA inputs and the same Allow DLL imports setting. Check these before suspecting the VPS itself.

Can I run the EA on my PC and on the VPS at the same time?

On the same account, avoid it: both copies act on the same signals, so orders can be doubled. Remove the EA from the PC chart or close that terminal once the VPS copy is running.

Do I have to keep Remote Desktop open for the EA to trade?

No. Closing the Remote Desktop window leaves MetaTrader running. Signing out of Windows closes it, and with it the EA.

I changed the EA inputs and now it does nothing. Why?

When you press OK in the properties window the EA is re-initialized with the new inputs and runs again when the next tick arrives. If the market is quiet or closed, wait for a tick before you judge it, then check the Experts tab for errors.

Does the chart with the EA have to stay open?

Yes. An Expert Advisor runs attached to a chart: closing the chart removes the EA. Minimising the terminal or the chart window is fine.

Will a larger VPS plan make the EA trade?

Not when the cause is a switch, a log error, the market or the account. More memory matters when the terminal is short of it and freezes, which shows as a frozen window and gaps in the logs.