How to Run Your MT5 EA 24/7
Contents
How to Run Your MT5 EA 24/7 (VPS vs Always-On PC)
One of the first questions new EA traders ask: do I need a VPS, or can I just leave my PC on?
The short answer: for serious EA trading, a VPS is strongly recommended. But the full picture is more nuanced. This guide breaks down both options so you can make the right call for your situation.
Why 24/7 Operation Matters
MT5 Expert Advisors only execute when:
- The MetaTrader 5 terminal is running
- The terminal is connected to your broker's server
- Auto-trading is enabled (the "Auto Trading" button is green)
If your PC sleeps, loses internet, or restarts during a Windows update, your EA goes offline. That means:
- Missed entries: The EA can't open a trade it would have taken
- Unmanaged exits: If you have an open position with a floating loss, the EA can't move the stop or close on signal
- Emergency situations: A major news spike while you're sleeping and your EA is offline can be costly
For XAUUSD H1 EAs, missing a single trade isn't catastrophic — but for higher-frequency or scalping EAs, even 30 minutes of downtime can meaningfully affect results.
📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators
Right after you sign up, you get a download link for a subscriber-only pack of our 13 MT5 indicators: compiled files (.ex5), source code and a setup guide. Then 8 emails on algo-trading essentials, reading backtests correctly and choosing a broker (one a day for the first 5 days, then 7, 14 and 30 days after signing up). You also get notified before each price rise of the versions sold on the MQL5 Market (launch pricing that steps up as copies sell). Our EAs are free on this site with a live account at a partner broker.
* Privacy strictly protected. You can unsubscribe at any time.
Option 1: Always-On Home PC
Pros
- Zero extra cost — you already own the hardware
- Easy setup — just install MT5 and let it run
- Full control — you can walk over and check it any time
Cons
- Power outages — any blackout takes you offline
- Internet outages — home ISPs are less reliable than data center connections
- Windows updates — automatic restarts are a serious problem for EA traders
- Electricity cost — running a desktop 24/7 costs $30–80/month in electricity
- Latency — your home connection to your broker's server may be 50–200ms; a co-located VPS is typically 1–10ms
How to minimize issues if you go this route
- Disable automatic Windows updates (or set them to install only during manual checks)
- Get a UPS (uninterruptible power supply) — $50–100, protects against short outages
- Use a wired ethernet connection, not WiFi
- Set MT5 to auto-start on Windows login
Verdict: Workable for casual EA traders with low-frequency strategies. Not recommended for EAs that trade multiple times per day.
Option 2: VPS (Virtual Private Server)
A VPS is a server in a data center that runs 24/7 with 99.9%+ uptime. You connect to it via Remote Desktop (RDP) and install MT5 on it just like a local PC.
Pros
- Guaranteed uptime — data centers have backup power, redundant internet
- Low latency — choose a VPS close to your broker's server (often under 5ms)
- No electricity cost on your end
- Multiple EAs — run many EAs on different accounts without taxing your home PC
Cons
- Monthly cost — $5–25/month depending on provider and specs
- Setup time — first-time setup takes 30–60 minutes
- Learning curve — RDP feels unfamiliar at first
What specs do you need?
For MT5 EA trading (1–5 EAs):
- CPU: 1–2 vCPUs (sufficient)
- RAM: 2GB minimum, 4GB recommended
- Storage: 30GB SSD
- OS: Windows Server 2019/2022 (MT5 runs on Windows natively)
- Network: 100Mbps+ with low ping to your broker
Recommended VPS providers for EA trading
| Provider | Monthly Cost | Best For |
|---|---|---|
| BeeksFX | $30–50 | Professional EA traders, broker co-location |
| Vultr (Windows) | $12–24 | Budget-conscious, technical users |
| Contabo | $8–15 | Low cost, Europe/Asia server locations |
| Broker-provided VPS | Free* | XM, Exness offer free VPS with volume |
*Broker VPS is free if your monthly trading volume meets their threshold (varies by broker).
Latency: Why It Matters for Gold EAs
For H1 trend-following EAs on XAUUSD, latency below 50ms is fine — you're not competing in a millisecond race.
For scalping EAs or EAs with tight MaxSpread filters, lower latency means:
- Orders fill closer to the intended price
- The spread check happens on more current data
- Less slippage on entry and exit
If you trade with XM: choose a VPS in a data center near New York (XM's main server region). If you trade with Exness: their servers are in London and Amsterdam.
Step-by-Step: Setting Up MT5 on a VPS
- Purchase a Windows VPS from any provider above
- Connect via Remote Desktop (built into Windows; Mac users: use Microsoft Remote Desktop app)
- Download MT5 from your broker's website on the VPS
- Log in to your trading account in MT5
- Copy your EA files to the VPS (use RDP file transfer or a shared folder)
- Compile the EA in MetaEditor if needed
- Attach the EA to the chart and enable Auto Trading
- Disconnect — the VPS keeps running
You don't need to stay connected. Log back in periodically to check performance.
Our Recommendation
For gold EA trading with any strategy on this site:
- Testing phase (demo/first 2 weeks live): your home PC is fine
- Ongoing live trading: use a VPS
The $10–20/month cost is small relative to the risk of losing a position because your PC restarted at 3am.
See our VPS guide for MT5 EA traders for detailed setup instructions and a comparison of broker-provided vs independent VPS options.
Download a Free EA to Test
Ready to run an EA 24/7? Start with DONCHIAN ENGINE — a free EA on this site (USDJPY H1, PF 1.50, max DD 10.8%, 631 trades over 9.4 years). Our gold EAs are also free with live-account registration; compare them on the EA rankings.
Related
📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators
Right after you sign up, you get a download link for a subscriber-only pack of our 13 MT5 indicators: compiled files (.ex5), source code and a setup guide. Then 8 emails on algo-trading essentials, reading backtests correctly and choosing a broker (one a day for the first 5 days, then 7, 14 and 30 days after signing up). You also get notified before each price rise of the versions sold on the MQL5 Market (launch pricing that steps up as copies sell). Our EAs are free on this site with a live account at a partner broker.
* Privacy strictly protected. You can unsubscribe at any time.
Have a question about EAs or FX?
You can post it on the Nattzy trading forum (free sign-up). Questions beyond this article are welcome too — EA settings, choosing a broker and more.
Ask on Nattzy ↗