METATRADER · 9 MIN READ
Forex VPS for MT4 and MT5: what it solves and what it costs
An Expert Advisor only runs while MetaTrader is open and connected, which makes your computer part of the trading infrastructure whether you think of it that way or not. A VPS moves that job to a machine built for it.
The problem it solves
Close the laptop lid and trading stops. Lose the wifi and trading stops. Let Windows install an update overnight and trading stops — this last one is by far the most common, and it is silent.
A VPS is a rented always-on Windows machine in a data centre. It is on permanently, connected to a data-centre network, and unaffected by anything happening in your house.
That is the entire proposition, and it is a good one. The reason this page exists is that it is rarely the proposition being sold to you.
What it does not solve, measured
Almost every VPS provider advertises latency first: sub-millisecond routing, servers beside the broker, proximity to the exchange. For a high-frequency system that is a real advantage. For most retail Expert Advisors it is close to irrelevant, and our own data shows why.
Execution cost on gold is dominated by the spread, not by the milliseconds. Across 70,546 five-minute bars the median XAUUSD spread was $0.16 and it was the same figure in 23 of the 24 hours. A strategy entering on a confirmed M5 or M15 signal pays that spread whatever its latency is. Shaving 40 milliseconds off a round trip does not move a cost that is set by the quote itself.
It also cannot protect you from the gaps that actually hurt. We measured 52 weekend gaps on gold: median $7.60, and 48% of them larger than $10 — bigger than a sensible intraday stop. Those happen while the market is closed and every VPS on earth is idle. See the weekend gap study.
And it moves the Windows Update problem rather than removing it. A VPS that restarts overnight and does not relaunch MetaTrader is exactly as stopped as a closed laptop, with the added disadvantage that you are asleep and not watching. See MT5 disconnected on the VPS.
What a VPS genuinely buys is uptime and independence from your own hardware. That is worth paying for. It is simply not the thing on the sales page.
Specification that is actually needed
MetaTrader is a light application by modern standards and the specifications sold as "trading grade" are usually well beyond it. What actually matters:
- One MetaTrader terminal: roughly 2GB of RAM and a single core is adequate.
- Several terminals: budget proportionally more RAM. Charts and indicators are the memory cost, not the EA.
- Storage is almost irrelevant — MetaTrader plus a year of history fits comfortably in 30GB.
- It must be Windows. There is no Linux MT4 or MT5 desktop terminal, and running one under Wine on a VPS is a support problem you do not want at 3am.
- Configure active hours to prevent automatic restarts, and set MetaTrader to launch with Windows.
Test the failure rather than assuming it. Reboot the VPS deliberately once, then confirm MetaTrader relaunched, logged back in, and the EA reattached with its icon blue on the chart. Most people discover their VPS does not do this during the first unplanned restart, which is the worst possible time to find out.
MT4 and MT5 have slightly different needs
The two terminals are not interchangeable and the difference shows up on a small VPS.
- MT5 is multi-threaded and will use more than one core if you give it one, particularly during optimisation in the Strategy Tester. MT4 is single-threaded and will not.
- MT5 uses noticeably more memory per chart, so a box sized for four MT4 terminals will not comfortably hold four MT5 terminals.
- If you are running an EA on MT4 and backtesting on MT5, keep them on separate machines or accept that a heavy optimisation run will starve the live terminal.
- Both need the same thing from the host: it must stay on, and it must bring the terminal back after a restart.
For a single live EA on either platform, the smallest plan almost every provider sells is enough. Paying for more is usually paying for latency you will not use.
Choosing one without being sold to
We do not sell VPS hosting and have not benchmarked providers, so this page will not hand you a ranked list — anyone who publishes one without testing is guessing, and most of those lists are affiliate placements. What we can give you is the set of questions that actually separate a usable host from a bad one.
- Does it auto-restart MetaTrader after a reboot, or is that your job? This is the single most important question and it is rarely answered on the sales page.
- Is the CPU dedicated or shared? Shared cores are fine for one terminal and visibly not fine for four.
- Where is the data centre, and is that near your broker rather than near you? Your own location is irrelevant.
- What is the actual uptime record, not the guarantee? A guarantee is a refund policy, not a reliability figure.
- Can you get a Windows desktop session easily, or is it a locked-down panel? You will need one the first time something breaks.
- What does cancelling look like? Monthly is worth a small premium over annual until you have run it through a full month including a patch cycle.
Price is the least useful signal in this market. The cheap end and the expensive end both run MetaTrader adequately; what differs is whether anyone answers when it stops.
Free options, and when they are enough
Free is often genuinely sufficient for a single EA, and it is worth exhausting these before paying anyone.
- Many brokers provide a free VPS above a deposit or monthly volume threshold. If you were going to fund an account anyway, this is the cheapest path and the terms are usually published.
- MetaQuotes sells hosting from inside the terminal itself — Tools, then Virtual Hosting. It is simpler than a full VPS and migrates your charts and EAs automatically, at the cost of flexibility. It is a hosted terminal, not a machine you control.
- A spare computer left running works, and is what most people actually start with. It fails on the same three things every time: power cuts, household internet, and Windows Update.
Our Mobile + PC plan includes a VPS because the alternative is asking someone to leave a computer running permanently, and because the bot cannot run on a phone at all — see can I run a trading bot on my phone.
Common questions
Do I need a VPS to run an Expert Advisor?
Only if you cannot leave a computer on permanently, which for most people is the deciding factor. An EA runs only while MetaTrader is open and connected, so any interruption — a closed lid, a dropped connection, an overnight Windows update — stops trading and can leave positions open with nothing managing them. A VPS removes your own hardware from that equation. It is not required for the strategy to work; it is required for the strategy to keep running.
What are the minimum VPS specs for MT4 or MT5?
For a single terminal, roughly 2GB of RAM, one CPU core and 30GB of storage is adequate, on Windows. MT5 uses more memory per chart than MT4 and will use additional cores during Strategy Tester optimisation, so size up if you run several terminals or optimise frequently. The specification sold as trading-grade is usually well beyond what MetaTrader needs.
Does a forex VPS reduce slippage?
Marginally, and much less than the marketing implies for most retail strategies. Latency affects the time between your terminal sending an order and the server receiving it, which matters for high-frequency systems. It does not change the spread, which is the dominant execution cost — on gold we measured a median spread of $0.16 that was identical across 23 of the 24 hours. A strategy entering on confirmed M5 or M15 structure pays that spread regardless of where the server sits.
Is a free forex VPS good enough?
For one EA, usually yes. Many brokers provide one free above a deposit or volume threshold, and MetaQuotes offers hosting from inside the terminal under Tools, Virtual Hosting. The limitations tend to be flexibility rather than reliability: you get a hosted terminal rather than a machine you control, which is fine until you need to install something or debug a failure at the Windows level.
What is the difference between a forex VPS and normal web hosting?
A forex VPS is a Windows virtual machine you log into with a desktop session and run applications on. Ordinary web hosting runs a website and gives you no desktop. The other practical difference is location: forex hosts place their data centres near broker servers rather than near their customers, which is the one part of the latency argument that is real.
Will a VPS stop my EA from missing trades?
It stops the ones you miss because your computer was off, which is most of them. It does nothing about the market being closed. We measured 52 weekend gaps on gold with a median of $7.60 and 48% larger than $10, and every one of those happened while no platform anywhere was trading. A VPS is an uptime tool, not a coverage tool.
Can I run MetaTrader on a Linux VPS?
Not directly — there is no native Linux desktop terminal for MT4 or MT5. It can be run under Wine, and people do, but you are then supporting a compatibility layer as well as a trading system, and failures tend to appear at inconvenient times. For a live EA, use Windows.
Keep reading
- MT5 demo account: how to open one and what it can tell youHow to open a MetaTrader 5 demo account in minutes — through a broker or inside the terminal…
- How to install an expert advisor in MT5Installing an expert advisor in MetaTrader 5: where the file goes, how to attach it to a cha…
- Do I need a VPS?
- MT5 disconnected on the VPS
- Spread and volatility measured
Further reading
Educational information only, not financial advice. Trading leveraged products carries substantial risk of loss. Last updated 2026-09-09.