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.
The checklist
- 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.
- 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.
- 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.
- 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.
- 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.
- 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.
- The chart uses the symbol name of this account. Some brokers add a suffix that differs between account types (for example
EURUSD.magainstEURUSD). 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. - 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 code | MT4 | MT5 | Cause | Fix |
|---|---|---|---|---|
| Trade is not allowed (enable "Allow live trading") | 4109 | The MQL4 reference points to the EA's own permission | Step 3, then step 2 | |
| Autotrading disabled by client terminal | 10027 | Automated trading is off in the terminal | Step 2, then step 3 | |
| Automated trading disabled by server | 4112 | 10026 | The account does not accept EA orders on the trade server | Ask the broker or prop firm; see MT5 Algo Trading disabled |
| Market is closed | 132 | 10018 | Outside the symbol's trading sessions | Step 6 |
| Trade is disabled | 133 | 10017 | Trading is off for that symbol or account | Check the symbol specification; ask the broker |
| Only position closing is allowed | 10044 | The symbol is set to close only | Ask the broker, or trade another symbol | |
| Unknown symbol | 4106 | 4301 | Wrong symbol name or suffix | Step 7 |
| DLL calls are not allowed | 4017 | The EA needs DLLs and the permission is off | Step 3 | |
| Not enough money | 134 | 10019 | The lot size needs more free margin than the account has | Lower the lot size in the EA inputs or add funds |
| trading has been disabled - investor mode | Journal line | Logged in with the investor password | Step 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.
