Windows licence included · MT4, MT5 and cTrader VPS in London, New York, Frankfurt and Tokyo · Pay in BTC, USDT, USDC, ETH, SOL, LTC, XMR
Language: English
Configure a trading VPS

Guide · Expert Advisors · checked 16 November 2026

How do I run an Expert Advisor 24/7?

Last updated: · 4 min read

Quick answer

How do I run an Expert Advisor 24/7?

Here is how to run an Expert Advisor 24/7: install the terminal on an always-on Windows VPS, attach the EA to its chart, turn on AutoTrading, make the terminal start with Windows and keep restarts outside trading hours. CandleVPS servers start at 4 GB of RAM, enough for one MT4 or MT5 terminal running an EA.

In brief
  • An EA trades only while its terminal runs, so the machine must stay on.
  • AutoTrading must be on in the toolbar and allowed in the EA settings.
  • Restarts are the main gap: plan them and auto-start the terminal.
  • Watch the journal daily for errors.

How do I run an Expert Advisor 24/7, step by step?

  1. Get an always-on Windows server

    Rent a Windows VPS in the broker's metro and sign in over Remote Desktop.

  2. Install the terminal

    Download MT4 or MT5 from the broker and log in to the trading account.

  3. Copy the EA

    Use File > Open Data Folder, then paste the EA into MQL4\Experts or MQL5\Experts and refresh the Navigator.

  4. Allow automated trading

    In Tools > Options > Expert Advisors, tick Allow Auto Trading; leave DLL imports off unless the EA requires them.

  5. Attach and switch on

    Drag the EA onto its chart, confirm its inputs, then press the AutoTrading button in the toolbar.

  6. Make it survive restarts

    Place a shortcut to the terminal in the Startup folder and set Windows Update active hours.

  7. Disconnect

    Close the Remote Desktop window instead of signing out.

What stops an EA, and what keeps it running?

Common causes of an Expert Advisor stopping and the fix on a VPS
CauseWhat happensFix
Home PC sleeps or loses powerTerminal stops, EA stopsRun the terminal on a VPS
Signing out of WindowsTerminal closesClose the window, do not sign out
Windows Update restartTerminal closed until reopenedActive hours plus Startup shortcut
AutoTrading button offEA loaded but places no tradesTurn the button on
RAM fullTerminal slows or crashesFewer charts or a bigger plan

Why does an Expert Advisor need a VPS to run 24/7?

An EA is code inside the terminal; when the terminal closes, the EA stops. MetaQuotes' help says an expert starts on each new tick once attached to a chart and stops when removed. A laptop that sleeps or a router that reboots ends that loop. A data-centre server avoids those home causes; the wider case is on the Expert Advisor VPS page.

What is the best way to handle Windows restarts?

Choose when they happen, then make the terminal come back by itself. Set active hours to cover the sessions the EA trades and leave the weekend for restarts. Then follow how to auto start MT4 after a VPS restart and how to stop Windows Update restarting MT4. Check the terminal after each update window.

Which plan runs an Expert Advisor 24/7?

Wick for one terminal, Taper or Pillar for two or more. CandleVPS's check of 16 November 2026 lists Wick at 2 vCPU / 4 GB / 40 GB for $6.75 a month on 12 months, and Pillar at 4 vCPU / 8 GB / 80 GB for $11.25. Platform notes are on the MT4 VPS page and the MT5 VPS page.

How do I check that the EA is really trading?

Look for the smiling face and read two tabs. In MT4, an EA that is allowed to trade shows a smiling face in the top-right corner of its chart; a sad face means AutoTrading or the EA's own live-trading option is off. The Experts tab logs what the EA does, and the Journal tab logs connection events and order results. Read both once a day, and after every restart.

Does running an EA around the clock make it profitable?

No. Uptime removes one source of missed trades; it changes nothing in the strategy's logic. Trading foreign exchange and CFDs on margin carries a high risk of losing money. A VPS keeps a terminal online; it does not make a strategy profitable, and CandleVPS gives no investment advice. Read the risk notice before going live.

Verdict
  • That is how to run an Expert Advisor 24/7: an always-on server plus a plan for the rare restart.
  • Server always on, AutoTrading on, terminal in the Startup folder, restarts at the weekend.
  • Read the Experts and Journal tabs once a day.

Running an EA 24/7: common questions

Can I run an Expert Advisor 24/7 without a VPS?

Only if the home PC never sleeps, loses power or restarts. A VPS removes those causes.

Does the EA keep running when I close Remote Desktop?

Yes, as long as the window is closed and the session is not signed out.

How many EAs can run at the same time?

Several per terminal, one per chart; the limit is RAM. Measure it in Task Manager.

Does MT5 call the button AutoTrading?

Recent MT5 builds label it Algo Trading; it does the same job.

Which is the best metro to run an EA in?

The metro of the broker's trade server: London, New York, Frankfurt or Tokyo on CandleVPS.

Sources (4)
  1. MetaTrader 4 Help: Expert Advisors metatrader4.com/en/trading-platform/help/autotrading/experts — MetaQuotes (read 2026-11-16)
  2. MetaTrader 4 Help: Expert Advisors settings metatrader4.com/en/trading-platform/help/setup/setup_experts — MetaQuotes (read 2026-11-16)
  3. Manage device restarts after updates learn.microsoft.com/en-us/windows/deployment/update/waas-restart — Microsoft Learn (read 2026-11-16)
  4. Add an app to run automatically at startup in Windows support.microsoft.com/en-us/windows/add-an-app-to-run-automatically-at-startup-in-windows-150da165-dcd9-7230-517b-cf3c295d89dd — Microsoft Support (read 2026-11-16)

Keep the EA online

Wick runs one terminal with an EA: $6.75 a month on 12 months.

From $6.75/mo on 12 months, licence included

Configure