Forex VPS: Run MT4 and MT5 on a Cheap VPS
An Expert Advisor only trades while the machine running it stays awake. Here is what actually matters when you pick a Forex VPS, what it really costs, and how to run MT4 or MT5 around the clock on a server you already pay for.
01Why Traders Run MT4 and MT5 on a VPS
An Expert Advisor has one hard requirement: the machine running it must be awake. If MetaTrader closes, your EA stops. It does not matter how good the logic is.
Your home computer fails that requirement constantly. It sleeps when you leave it. Your Wi-Fi drops. Your power flickers. Windows decides to install updates and restarts itself at 3am. Every one of those is a stretch of time where your EA is not watching the market — and if you are holding an open position, it is exactly the moment you cannot manage it.
A VPS moves the problem somewhere else. It is a computer in a datacentre with redundant power, redundant network and a team whose job is keeping it up. You connect to it over Remote Desktop when you want to look. The rest of the time it simply keeps running.
Physical distance to your broker’s server adds delay to every order. If your strategy reacts to individual ticks, that distance matters. If your EA opens trades on candle closes, it barely does. Section 06 covers how to tell which one you are.
02What Actually Matters (and What Is Just Marketing)
The Forex VPS market has a lot of vocabulary designed to make a standard Windows server sound specialised. Here is what genuinely affects whether your EA trades correctly.
| What | Does it matter? | Why |
|---|---|---|
| Uptime | Critical | A reboot stops your EA. Look for a real track record, not just a 99.9% claim. |
| RAM | Critical | Windows itself needs 2GB before MetaTrader starts. Most cheap plans get this wrong. |
| Disk | Critical | Broker history grows with every symbol and timeframe you open. |
| Latency to your broker | Depends | Only for tick-level strategies. See section 06 before paying a premium for it. |
| CPU | Depends | Live trading is light. Backtesting and the optimiser are what hammer it. |
| “Forex-optimised servers” | Marketing | A standard Windows server with a trading label on the price tag. |
| “Dedicated trading IP” | Marketing | Every VPS already has its own IP address. This is not a feature. |
Notice that uptime is top of the list and also the one thing no provider can sell you with a badge. And notice a detail almost nobody mentions: when a VPS reboots, MT4 and MT5 do not start themselves again. A provider with perfect uptime still stops your trading after a reboot unless you configure autostart. Section 07 shows how.
03How Much RAM and Disk Do You Actually Need?
A single MT4 terminal sitting idle uses somewhere between 150MB and 300MB of memory. That number is almost irrelevant, because the terminal is the smallest thing on the machine. Windows is the biggest.
| What you are running | RAM | Disk |
|---|---|---|
| Windows on its own | 2GB minimum | 30GB |
| 1 MT4 terminal + a few charts | 4GB | 30–40GB |
| 2–3 MT4 terminals, or one MT5 | 4GB | 40GB |
| MT5 plus backtesting or optimisation | 4–8GB | 40–60GB |
| Several MT5 instances in parallel | 8GB+ | 60GB+ |
You will see plans advertised as Forex VPS with 1GB of RAM. Windows alone consumes most of it before MetaTrader opens a single chart. Treat a 1GB plan as a Linux plan, not a Windows one. 4GB is the realistic floor.
On disk, be generous. MetaTrader downloads history for every symbol and timeframe you open, and it keeps every tick. A trader running a handful of pairs will pass 10GB in history and logs sooner than they expect, and Windows wants room to update itself on top of that.
04What a Forex VPS Really Costs
MetaTrader serves something over 80% of the retail forex market, and that has created a cottage industry of providers who take ordinary Windows hosting, add the word “Forex”, and multiply the price. That is not a cynical reading — it is what the price list shows.
Specialised Forex VPS plans commonly run $10 to $30 per month, every month, and the low-latency ones go higher. Meanwhile a perfectly capable cloud VPS with 4GB of RAM costs somewhere between $5 and $12.
The difference buys you two things. Decide honestly whether you need either:
- Proximity to your broker’s datacentre — real, and worth paying for if your strategy is latency sensitive.
- A support desk that understands MetaTrader — real, and worth something if you would rather not manage a server yourself.
If you trade on higher timeframes and you are comfortable running your own machine, you are paying the Forex tax for nothing. The alternative is to take a cheap VPS from any cloud provider and put Windows on it yourself.
Specialised Forex VPS
- $12–$30 every month, forever
- Windows included and licensed
- Close to brokers in their datacentres
- Support that knows MetaTrader
- You rent the setup, you never own it
Cheap VPS + OS Installer
- $6 a month, and that is the server
- You install Windows yourself in ~45 minutes
- Pick any provider and any region
- The server stays yours after the install
- No monthly subscription to us at all
The right-hand column is honest about the trade-off: you do the setup once, and in exchange you stop paying a monthly premium for something that is Windows with a label on it.
05How to Put Windows on a Cheap VPS
Here is the part nobody explains: most cheap providers do not sell Windows at all. DigitalOcean, Linode, Hetzner and Contabo all hand you Linux. The ones that do offer Windows, such as Vultr, charge a licence on top and often restrict you to Server editions.
The old workaround was to boot into rescue mode, mount an ISO and fight the console until Windows finally came up — an afternoon of work that usually ended in failure. That is what OS Installer replaces.
Create a VPS with Ubuntu 24.04
Any provider, any region. 4GB of RAM and 30GB of disk is the comfortable starting point. If you are going to run Windows 11, allow more disk — the installer needs the original image and the rebuilt one to exist at the same time.
~2 minutesRun the installer
Enter the server IP, SSH port and root password on the install page and choose Windows 10 Pro, 11 Pro, Server 2022 or Server 2025. Everything after that happens on the server itself, over SSH — no rescue mode, no ISO upload, no console access.
~1 minuteWatch it in the browser
The page streams the live install log and opens a browser view of the machine while Windows is being set up, so you can watch the desktop come up. Roughly 45 minutes on a reasonable VPS.
~45 minutesConnect over RDP and install MetaTrader
You get Windows credentials when the install finishes. Log in with Remote Desktop, install MT4 or MT5, sign into your broker account, and your EA starts working the way it was designed to.
~5 minutesInstalling Windows replaces the whole operating system. Anything already on that VPS is gone. Use a fresh server, or take a snapshot first if there is something you need to keep.
06Choosing a Location Close to Your Broker
This is the one decision a specialised provider makes for you, and the one you have to make yourself if you go the cheap route. It is also where most traders overspend.
Does latency matter for your strategy?
Be honest with yourself. If your EA acts on candle closes, on H1 or H4 signals, or on end-of-day levels, then a 2ms connection and a 40ms connection produce the same trades. You are not competing on speed.
It matters if you scalp, if you react to individual ticks, or if your broker’s spreads widen fast enough that a few milliseconds changes your fill. In that case proximity is worth real money, and a specialised provider near your broker is the right answer.
Finding where your broker actually is
The broker’s server location is not always on their website. Check the server name shown in your MetaTrader login window, then look at the broker’s own documentation — most publish which facility they run from. The common ones are London (LD4), New York (NY4), Frankfurt (FR2) and Tokyo (TY3).
Test before you buy
Once you have a server, measure instead of assuming. From the VPS, ping your broker’s trade server and run a traceroute to see the path. Every cloud provider publishes test IPs and speed-test files per region, so you can check the distance from a candidate region before you commit to it.
A $6 server in the right city beats a $30 server in the wrong one. Latency is about distance to your broker, and every major cloud provider lets you choose the region.
07After the Install: The Settings That Actually Matter
You have Windows running and RDP working. These are the changes that separate a VPS that trades while you sleep from one that quietly stopped three weeks ago.
Stop Windows from sleeping
This is the single most important setting, and it is easy to miss because servers do not ship with a desktop power plan. Set the power plan to High performance and set “Put the computer to sleep” to Never. A Windows machine that sleeps is a machine where your EA is not trading.
Stop Windows Update from restarting at random
Windows will restart itself for updates when it decides to. Set active hours generously, or schedule updates for a window you choose. A reboot is survivable — if you have done the next step.
Make MetaTrader start itself after a reboot
MT4 and MT5 do not relaunch on their own. Put a shortcut to your terminal in the Windows startup folder, or create a scheduled task that runs at logon. This is what turns “the server came back up” into “the EA came back up”.
Turn on automated trading and leave it alone
In MetaTrader, enable Allow automated trading and confirm your EA is attached to the right chart with the smiley face in the corner. Closing the RDP window does not stop the terminal — it keeps running on the server. Only a logoff or a shutdown would.
Add Defender exclusions
Windows Defender scanning MetaTrader’s history files costs you performance for no benefit. Add the MT4 and MT5 data folders to the exclusion list.
Close what you do not need
Change the root password on the server — a fresh install prints it in the terminal, and it is worth rotating. Keep RDP behind a strong password, and if your provider offers a firewall, only leave the ports you actually use open.
Take a snapshot once it works
When everything is configured and your EA is running, snapshot the server. That snapshot is your fallback, and it is the difference between a five-minute recovery and rebuilding from scratch at the worst possible moment.
08Frequently Asked Questions
Can I run MT4 or MT5 on a $5 VPS?
Yes, with one condition: it needs 4GB of RAM. A $5 plan with 1GB or 2GB cannot run Windows and MetaTrader together comfortably. The cheapest servers that genuinely work are the 4GB tiers, which typically land between $5 and $12 a month depending on the provider.
Does a Forex VPS have to be near my broker?
Only if your strategy is latency sensitive. Strategies that act on candle closes, higher-timeframe signals or end-of-day levels produce the same trades whether you are 2ms or 40ms away. Scalping and tick-level strategies are the ones that genuinely gain from proximity, and for those a specialised provider near your broker is worth the money.
Will my EA keep running when I close Remote Desktop?
Yes. Closing the RDP window disconnects your session but does not stop the programs running on the server, so MetaTrader and your EA keep working. What does stop them is a logoff, a shutdown, or a reboot that nothing restarts afterwards — which is exactly why setting up autostart matters.
Can I run several MetaTrader accounts on one VPS?
Yes. Install separate MT4 or MT5 instances in different folders and log each one into its own account. Budget the RAM accordingly — each terminal adds a few hundred megabytes, and each EA adds more on top. Two or three terminals on 4GB is comfortable; beyond that you want 8GB.
My VPS has no KVM. Can I still install Windows?
Yes, and that is exactly what OS Installer is for. Most budget VPS plans give you no console, no ISO mount and no rescue system access. The installer runs over SSH on an Ubuntu 24.04 server and sets Windows up from there, so none of those things are needed. If the server does have KVM acceleration the install runs faster, but it is not required.
Does the Windows licence come with it?
No. OS Installer is a deployment tool — it puts Windows onto your server and it does not include or resell any Microsoft licence. If you need licensed Windows, buy it through your provider or directly from Microsoft. The same question applies to the specialised Forex VPS providers: check whether their price includes a licence or not.
Ready to Run Your EA Around the Clock?
Pick a cheap VPS, point OS Installer at it, and you will have Windows, RDP and MetaTrader running the same afternoon — for the price of the server.
