Forex

How to Run an EA on a Forex VPS (MT4/MT5): Beginner Guide 2026

Updated 2026-07-07~8 min read

Want your EA (Expert Advisor) to trade for you 24/7 without leaving a computer running at home? The answer is running your EA on a Forex VPS. But for beginners, steps like remoting into the machine, installing MT4/MT5, or adding the EA file can look intimidating — when in reality they're easy to follow.

This article teaches you how to run an EA on a VPS in detail, step by step — from what to prepare before you get a VPS, to remoting in via Remote Desktop (RDP), installing and logging into MT4/MT5, adding the EA and enabling AutoTrading, and confirming it runs a full 24/7, plus fixes for the problems beginners hit most. Finish reading and you can follow along right away.

Before you start: what to prepare

Before running an EA on a VPS, check that you have these 4 things. Once you do, the rest takes under 15 minutes and goes smoothly.

  • A Forex VPS you've already got, with remote details — IP address, username, and password (usually emailed after activation)
  • The EA file you'll run — typically a .ex4 file (for MT4) or .ex5 (for MT5); some come with a .set file for settings
  • A live or demo trading account from your broker, with login, password, and the broker's server name
  • The MT4 or MT5 program from your broker (you can download it while on the VPS — no need to prepare it in advance)
💡 It's a good idea to test your EA on a demo account for at least 1–2 weeks first, to confirm it runs normally and behaves as expected before moving to a live account.

Remote into the VPS via Remote Desktop (RDP)

Most Forex VPS machines run Windows Server, which we control via Remote Desktop (RDP) — already built into Windows. The VPS screen appears on your machine as if you'd opened a second computer.

  1. 1On Windows: press Start and type "Remote Desktop Connection" (or mstsc), then open the program
  2. 2In the Computer field, enter the VPS IP address you received and click Connect
  3. 3Enter the VPS username and password when prompted, then click OK
  4. 4If a certificate warning appears, click Yes to continue; the VPS Windows screen will then appear
  5. 5On Mac: install the "Windows App" (formerly Microsoft Remote Desktop) from the App Store and add the machine with the same IP/username/password · on Android/iOS you can also use the "Windows App"
💡 If RDP won't connect, check that you typed the IP correctly and that the VPS is active. If it still won't connect, contact your provider's support to confirm the machine status and login details.

Install MetaTrader 4 / MT5 on the VPS

Once you're on the VPS Windows screen, install your broker's MetaTrader. Download the installer directly from the broker's official website so their server appears automatically in the list.

  1. 1Open a browser on the VPS (e.g. Microsoft Edge) and go to your broker's official website
  2. 2Download the broker's MT4 or MT5 installer (.exe file)
  3. 3Double-click the downloaded file, click Next / accept the terms, and let it finish installing
  4. 4Open MT4/MT5 — if you'll run multiple accounts at once, install in separate folders (Portable) or make additional copies of the program one set at a time

Log in to your broker trading account

After opening MT4/MT5, log in with the trading account details from your broker. If login succeeds, a connection-speed figure (e.g. 24/56 kb) appears in the bottom-right corner, showing you're connected to the server.

  1. 1Go to the menu File > Login to Trade Account
  2. 2Enter your login (account number), password, and select the server exactly as your broker provided
  3. 3Click OK and wait to connect — if successful, the Terminal window (Trade tab) shows your account balance and the bottom-right no longer shows "No connection"
💡 If login fails, it's usually a mistyped server or the wrong server for your account type (e.g. a live account but you picked a demo server). Recheck the server name in your broker's account-opening email.

Add the EA file to the Experts folder

This step is the heart of running an EA — you place the EA file into a folder MT4/MT5 can see. The easiest way is the Open Data Folder menu in the program, then drop the file in the right place.

  1. 1Copy the EA file (.ex4/.ex5) from your computer and paste it onto the VPS via the RDP clipboard (Ctrl+C on your machine, Ctrl+V on the VPS), or upload it via a link
  2. 2In MT, go to the menu File > Open Data Folder
  3. 3Open the MQL4 > Experts folder (for MT4) or MQL5 > Experts (for MT5)
  4. 4Drop the EA file into this Experts folder · if there are accompanying indicator files, place them in the Indicators folder next to it
  5. 5Back in MT, right-click the Navigator window > Refresh and the EA name will appear under Expert Advisors

Enable AutoTrading and drag the EA onto the chart

Once the EA appears in the Navigator, drag it onto the currency pair chart you want, and flip on the AutoTrading switch so the EA can actually place trades.

  1. 1Open the currency pair and timeframe chart the EA is meant to use (check the EA's manual)
  2. 2Drag the EA name from the Navigator onto that chart
  3. 3In the settings window that pops up, on the Common tab tick "Allow Algo Trading" (or Allow live trading), adjust the parameters on the Inputs tab as needed, then click OK
  4. 4Click the AutoTrading (or Algo Trading) button in the top toolbar so it turns green
  5. 5If everything is correct, the EA name appears in the top-right of the chart with a smiley 🙂 — meaning the EA is running (a frowny face or a cross means it's not ready to trade yet)
💡 The single most common beginner mistake is forgetting to click the AutoTrading button green — if it's still red, the EA will analyze but will never place a real order.

Confirm the EA runs a full 24/7

The beauty of a VPS is that once it's set up, you can "just close the RDP window" — the VPS stays on in the data center and the EA keeps running 24/7 without a PC at home. But check these 3 points before you rest easy.

  • The smiley 🙂 in the top-right of the chart and a green AutoTrading button — confirming the EA is ready to trade
  • The bottom-right of MT must not show "No connection" — it stays connected to the broker server
  • Close the RDP window with the X button (do not Sign out / Log off) so the session stays alive and the EA keeps running
Status you seeMeaningWhat to do
Smiley 🙂 + green AutoTradingEA running normally, ready to tradeLeave it, close RDP
Frowny ☹ / crossAutoTrading is off, or EA not readyClick AutoTrading green
No connection (bottom-right)Dropped from the broker serverCheck internet / log in again
No EA name on the chartEA not yet dragged onto the chartDrag the EA from Navigator onto the chart
💡 Very important: when leaving the VPS, close the RDP window with the "X" only. Never click Sign out or Log off, because that closes MT and stops the EA.

Fixing common beginner problems

EA won't trade / connection drops / market closed

If everything is set up but the EA still won't place orders, it's usually not a broken EA — it's a small setting you overlooked. Work through these checks.

  • EA won't trade — check that the AutoTrading button is green, "Allow Algo Trading" is ticked in the EA settings, and the top-right shows a smiley
  • Frowny/cross showing — usually AutoTrading is off, or the EA is set to trade only at certain times; check the EA's manual
  • No connection / frequent drops — check that you logged in to the right server and the VPS internet is normal; frequent drops may signal an unstable VPS, so consider a provider with higher uptime
  • Market closed / no orders on weekends — the Forex market is closed Saturday–Sunday, so it's normal for the EA not to trade then; nothing to fix
  • EA trading the wrong pair/timeframe — open the chart to match what the EA was designed for and drag the EA onto the correct chart
  • Not enough specs, MT freezes — if the machine lags when running multiple accounts, RAM/CPU is insufficient; upgrade your VPS plan
💡 Tip: set MT4/MT5 to open automatically when Windows starts (put a shortcut in the Startup folder), so if the VPS restarts for an update, the program and EA come back on their own without you logging in.

Best practices for a stable, long-running EA

Once your EA is running, use these approaches to keep the system stable and secure for the long term.

  • Always test on demo first, then start live with a small lot size
  • Choose VPS specs with headroom — each MT window uses ~300–500 MB of RAM, so don't max out the machine
  • Set MT4/MT5 to open automatically when the VPS restarts and keep AutoTrading on
  • Check the VPS at least once a day — confirm MT is still connected and the EA still shows a smiley
  • Choose a VPS with 99.9%+ uptime and low latency to your broker, to reduce slippage and mid-session drops
  • Set a strong VPS password and never share it, because your trading account lives on this machine

Ready to run your EA 24/7 on a Plusweb Forex VPS

Forex VPS built for MT4/MT5 · Windows Server · run your EA 24/7 · low latency · 99.9% uptime · from ฿250/mo, auto-provisioned in minutes

Frequently Asked Questions

Do I need technical knowledge to run an EA on a VPS?

No. If you can remote into Windows via RDP and use the File > Open Data Folder menu, you can follow the steps in this article. It's all clicking and dragging files — no coding required.

Can I run multiple EAs or accounts on one VPS?

Yes. Just install MT4/MT5 as multiple copies (Portable or in separate folders), log each into a different account, then drag an EA onto a chart in each program. Just confirm your VPS RAM/CPU is enough for the number of accounts you run at once.

If I turn off my home computer, will the EA stop?

No, because the EA runs on the VPS in the data center, not on your home PC. Once set up, close the RDP window with the X button (don't Sign out) and the VPS stays on with the EA running 24/7.

Why won't my EA place orders even after AutoTrading is green?

Usually "Allow Algo Trading" isn't ticked in the EA settings, the chart is on the wrong pair/timeframe, or the EA's conditions haven't been met (some EAs trade only at certain times). Check that the top-right shows a smiley and read the EA's manual.

What VPS specs do I need to run a single EA?

For a beginner running just 1 MT4/MT5 account with a light EA, about 1 vCPU / 3 GB RAM is enough. To run multiple accounts, step up to 2 vCPU / 4 GB RAM or more.