# How do I run an Expert Advisor 24/7?

> How to run an Expert Advisor 24/7: put MT4 or MT5 on a Windows VPS, enable AutoTrading, auto-start it and plan restarts. 7 steps.

- URL: https://candlevps.com/guides/how-to-run-an-expert-advisor-24-7/
- Last updated: 2026-11-16
- Publisher: CandleVPS (https://candlevps.com)

**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*

| Cause | What happens | Fix |
| --- | --- | --- |
| Home PC sleeps or loses power | Terminal stops, EA stops | Run the terminal on a VPS |
| Signing out of Windows | Terminal closes | Close the window, do not sign out |
| Windows Update restart | Terminal closed until reopened | Active hours plus Startup shortcut |
| AutoTrading button off | EA loaded but places no trades | Turn the button on |
| RAM full | Terminal slows or crashes | Fewer 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](https://candlevps.com/expert-advisor-vps/ "Does an Expert Advisor need a VPS to keep trading?").

## 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](https://candlevps.com/guides/how-to-auto-start-mt4-after-a-vps-restart/ "How do I auto start MT4 after a VPS restart?") and [how to stop Windows Update restarting MT4](https://candlevps.com/guides/how-to-stop-windows-update-restarting-mt4/ "How do I 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](https://candlevps.com/mt4-vps/ "Which VPS keeps MetaTrader 4 running around the clock?") and [the MT5 VPS page](https://candlevps.com/mt5-vps/ "What is the right VPS for MetaTrader 5?").

## 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](https://candlevps.com/risk-notice/ "Does a forex VPS reduce trading risk?") 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

1. [MetaTrader 4 Help: Expert Advisors](https://www.metatrader4.com/en/trading-platform/help/autotrading/experts) — MetaQuotes (read 2026-11-16)
2. [MetaTrader 4 Help: Expert Advisors settings](https://www.metatrader4.com/en/trading-platform/help/setup/setup_experts) — MetaQuotes (read 2026-11-16)
3. [Manage device restarts after updates](https://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](https://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. [Order Wick for 12 months](https://candlevps.com/app/checkout/?plan=wick&term=12m&from=guide-how-to-run-an-expert-advisor-24-7&lang=en) · [Order Pillar for 12 months](https://candlevps.com/app/checkout/?plan=pillar&term=12m&from=guide-how-to-run-an-expert-advisor-24-7&lang=en)

---

CandleVPS: CandleVPS sells Windows Server VPS for MetaTrader 4, MetaTrader 5 and cTrader in London, New York, Frankfurt and Tokyo, paid in crypto with no ID document. Five plans from 4 to 16 GB of RAM include the Windows licence, cost the same in all four cities, and on the 12-month term each is priced at least 25% under a named comparable Windows plan of a no-KYC crypto host, read on 16 November 2026. The operator is DomaineGoat LLC, Panama.
