METATRADER · 9 MIN READ

Forex VPS for MT4 and MT5: what it solves and what it costs

A forex VPS is a rented Windows machine in a data centre that keeps MetaTrader running while your own computer is off. An Expert Advisor only trades while MetaTrader is open and connected, so without a VPS your laptop is part of your trading setup.

The problem a forex VPS solves

Trading stops when you close the laptop lid, when the wifi drops, and when Windows installs an update overnight. The update is by far the most common of the three, and nothing tells you it happened.

A VPS is a rented Windows machine in a data centre. It stays on, it sits on a data-centre network, and nothing that happens in your house can touch it.

That is the whole offer, and it is a good one. The trouble is that sales pages rarely lead with it.

What a VPS does not fix, measured

Almost every VPS provider advertises latency first: sub-millisecond routing, servers beside the broker, closeness to the exchange. For a high-frequency system that is a real advantage. For most retail Expert Advisors it barely matters, and our own data shows why.

On gold, the spread sets the cost of a trade, and the milliseconds hardly move it. 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. Cutting 40 milliseconds off a round trip does nothing to a cost set by the quote itself.

A VPS also cannot protect you from the gaps that hurt. We measured 52 weekend gaps on gold: median $7.60, and 48% of them larger than $10, which is bigger than a sensible intraday stop. They 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 instead of removing it. A VPS that restarts overnight and does not relaunch MetaTrader is as stopped as a closed laptop, and you are asleep while it happens. See MT5 disconnected on the VPS.

What a VPS buys is uptime and independence from your own hardware. That is worth paying for, and it is rarely what the sales page is selling.

The VPS specification MetaTrader needs

MetaTrader is a light program, and the specs sold as "trading grade" are usually far beyond what it uses. What counts:

  • One MetaTrader terminal: about 2GB of RAM and a single core is enough.
  • Several terminals: add RAM in proportion. Charts and indicators use the memory; the EA itself uses little. If a terminal still freezes, MT5 not responding ranks the causes.
  • Storage barely matters. MetaTrader plus a year of history fits in 30GB with room to spare.
  • It must be Windows. There is no Linux desktop terminal for MT4 or MT5, and running one under Wine on a VPS is a support problem you do not want at 3am.
  • Set active hours so Windows does not restart on its own, and set MetaTrader to launch when Windows starts.

Test the failure instead of assuming it. Reboot the VPS once on purpose, then check that MetaTrader relaunched, logged back in, and the EA reattached with its icon blue on the chart. Most people find out their VPS does not do this at the first unplanned restart, which is the worst time to learn it.

MT4 and MT5 have slightly different needs

The two terminals use a machine differently, and it shows on a small VPS.

  • MT5 is multi-threaded and will use more than one core if it has one, especially when optimising 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 struggle with four MT5 terminals.
  • If you run an EA live on MT4 and backtest on MT5, keep them on separate machines, or accept that a heavy optimisation run will starve the live terminal.
  • Both need the same two things from the host: it stays on, and it brings the terminal back after a restart.

For one live EA on either platform, the smallest plan almost every provider sells is enough. Paying for more usually buys latency you will not use.

Choosing a VPS provider without a ranked list

We do not sell VPS hosting and have not benchmarked providers, so you will not find a ranked list here. Anyone who publishes one without testing is guessing, and most of those lists are affiliate placements. These questions separate a usable host from a bad one.

  • Does it restart MetaTrader after a reboot, or is that your job? This matters most, and the sales page rarely answers it.
  • Is the CPU dedicated or shared? Shared cores are fine for one terminal and clearly not fine for four.
  • Where is the data centre? It should be near your broker. Your own location does not matter.
  • What is the real uptime record? A guarantee only tells you the refund policy.
  • Can you get a Windows desktop session easily, or only a locked-down panel? You will need the desktop the first time something breaks.
  • What does cancelling look like? Pay monthly, even at a small premium over annual, until you have run it through a full month that includes a patch cycle.

Price tells you the least in this market. Cheap and expensive hosts both run MetaTrader well enough; the difference is whether anyone answers when it stops.

Free forex VPS options, and when they are enough

For a single EA a free option is often enough, so try these before paying anyone.

  • Many brokers give a free VPS above a deposit or monthly volume threshold. If you were funding an account anyway, this is the cheapest route, and the terms are usually published.
  • MetaQuotes sells hosting from inside the terminal: Tools, then Virtual Hosting. It is simpler than a full VPS and moves your charts and EAs across automatically, but you give up flexibility. You get a hosted terminal, not a machine you control.
  • A spare computer left running works, and it is what most people start with. It fails on the same three things every time: power cuts, home internet and Windows Update.

Our Mobile + PC plan includes a VPS, because the alternative is asking you 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 all the time, and for most people that decides it. An EA runs only while MetaTrader is open and connected, so a closed lid, a dropped connection or an overnight Windows update stops trading and can leave positions open with nothing managing them. A VPS takes your own hardware out of that chain. The strategy works the same without one; a VPS is what keeps it running.

What are the minimum VPS specs for MT4 or MT5?

For one terminal on Windows, about 2GB of RAM, one CPU core and 30GB of storage is enough. MT5 uses more memory per chart than MT4 and uses extra cores during Strategy Tester optimisation, so size up if you run several terminals or optimise often. The plans sold as trading-grade are usually well beyond what MetaTrader needs.

Does a forex VPS reduce slippage?

A little, and much less than the marketing implies for most retail strategies. Latency is 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, and the spread is the main cost: on gold we measured a median spread of $0.16 that was the same in 23 of the 24 hours. A strategy entering on confirmed M5 or M15 structure pays that spread wherever the server sits.

Is a free forex VPS good enough?

For one EA, usually yes. Many brokers give one free above a deposit or volume threshold, and MetaQuotes offers hosting inside the terminal under Tools, Virtual Hosting. The limits are usually flexibility, and reliability is rarely the issue: you get a hosted terminal instead of 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 programs on. Ordinary web hosting runs a website and gives you no desktop. The other difference is location: forex hosts put their data centres near broker servers instead of near their customers, and that is the one part of the latency argument that holds.

Will a VPS stop my EA from missing trades?

It stops the misses caused by your computer being 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, 48% of them larger than $10, and every one happened while no platform anywhere was trading. A VPS gives you uptime; it cannot trade a closed market.

Can I run MetaTrader on a Linux VPS?

Not directly. There is no native Linux desktop terminal for MT4 or MT5. People run it under Wine, but then you are supporting a compatibility layer as well as a trading system, and its failures tend to turn up at bad times. For a live EA, use Windows.

Keep reading

Further reading

See the gold bot →Free tools

Educational information only, not financial advice. Trading leveraged products carries substantial risk of loss. Last updated 2026-11-11.