You need a forex VPS if your Expert Advisor must run around the clock and your own computer cannot stay on, online and awake the whole time. For most retail traders running an EA on higher timeframes, the main benefit is uptime, not speed. Ultra-low latency matters far less than people think unless your strategy trades very short-term moves.
What is a forex VPS?
A VPS (virtual private server) is a remote computer, usually running Windows, that you rent from a hosting provider. You log in with Remote Desktop, install MetaTrader 5, attach your EA, and leave it running. You can then close your laptop, travel or lose power at home without stopping the EA.
An EA only works while the terminal that runs it is open and connected. If your PC sleeps, restarts for an update or loses internet, the EA stops managing trades. Open positions stay open at the broker, but the EA cannot trail stops, add positions or close trades by its own logic until it reconnects.
Do you need a VPS for EA trading?
Ask yourself three questions:
- Does the EA manage trades actively? If it moves stops to breakeven, adds positions or closes on a time exit, it needs to be running when those events happen.
- Can your computer stay on 24/5? Laptops sleep, Windows restarts for updates, and home internet drops.
- How often does the EA trade? A selective EA may wait days for a setup. Missing it because your PC was off is costly.
If the answers are "yes", "no" and "rarely", a VPS is worth considering. If you only run an EA while you are at your desk, you may not need one yet.
Latency vs uptime: what actually matters
Latency is the time it takes an order to travel from your terminal to the broker's server. MT5 shows your ping to the broker in the bottom-right corner of the terminal.
- For scalping EAs that target very small moves, lower latency can reduce slippage.
- For EAs that use limit orders at pre-planned levels, or trade on M15 and higher, a few extra milliseconds rarely change results.
Uptime is whether the terminal is running at all. For most strategies, one missed trade or one unmanaged position costs far more than any latency difference.
Our gold model, for example, places limit entries at fair value gaps or order blocks on M15, with stops at structure (median about $23 of gold price in our backtest). At that scale, milliseconds do not decide the outcome. Being online when the setup forms does.
MQL5 VPS vs a regular Windows VPS
There are two common options.
| Feature | MQL5 VPS (built into MT5) | Windows VPS (hosting provider) |
|---|---|---|
| Setup | Rent from inside the terminal; migrate charts and EAs | Log in via Remote Desktop and install MT5 yourself |
| Interface | No desktop; you manage it from your local terminal | Full Windows desktop |
| Flexibility | Runs MT5 only; some features are restricted | Run several terminals, tools or other software |
| Server location | Chosen close to your broker's server | You choose the data centre |
| Maintenance | Handled for you | You handle updates and security |
MQL5 VPS
In MT5, right-click your account in the Navigator and choose the option to register a virtual server. The terminal migrates your open charts, EAs and settings to the hosted server. After any change to inputs or charts, you must migrate again.
It is convenient and tied to your broker's location, but it is limited. You cannot log in to a desktop, and some functions (such as DLL calls) are restricted. Check the current MQL5 hosting documentation for what your EA needs, including WebRequest access.
Windows VPS
A general Windows VPS gives you a full remote desktop. You install MT5 exactly as on your own PC, including WebRequest URLs and any tools the EA needs. This suits traders running more than one terminal or wanting full control. The trade-off is that you are responsible for updates, backups and security.
What specs does a forex VPS need?
MT5 is light, but Windows is not. As a rough guide for one or two terminals:
- RAM: enough for Windows plus each terminal. Under-sized RAM is the most common cause of a slow VPS.
- CPU: one or two cores is usually enough for a few terminals on standard EAs. Strategy Tester optimisation needs much more.
- Storage: SSD, with room for tick history and logs.
- Location: the same region as your broker's trade server, if latency matters to your strategy.
- Operating system: a Windows version supported by current MT5 builds.
Start small and scale up if the terminal becomes slow. Close unused charts and reduce "max bars in chart" in MT5 options to save memory.
How much does a forex VPS cost?
Prices vary widely by provider, location and specs, so we will not quote figures. In general:
- The MQL5 VPS is a low-cost option for a single terminal.
- Basic Windows VPS plans cost more but run multiple terminals.
- Low-latency plans in data centres near major broker servers cost the most.
- Some brokers offer a free VPS if you meet trading-volume or balance conditions.
Weigh the cost against your account size. A VPS that costs a meaningful share of your expected monthly return is poor value, especially on a small account.
Security tips for running an EA on a VPS
A VPS holds your trading login, so treat it like a bank login.
- Use a strong, unique password for the VPS and change the default one immediately.
- Keep Windows updated, but schedule restarts outside market hours and check MT5 restarts afterwards.
- Set MT5 to start automatically after a reboot, and confirm Algo Trading is still on.
- Do not install unknown software. Only run EAs and tools from sources you trust.
- Limit WebRequest URLs to the ones your EA genuinely needs.
- Use the investor (read-only) password when sharing account access for monitoring.
- Check the terminal regularly: the Journal, Experts tab and open positions.
Setting up your EA on a VPS
The EA installation is the same as on your own PC. Follow our step-by-step guide to installing an EA in MT5, then run a short test on demo before connecting a live account. If you have not tested the EA yet, start with how to backtest an EA in MT5.
If you prefer not to manage a VPS at all, signals or copy trading can be simpler options; see copy trading vs signals vs EA. The Pulse EA can run on either a local PC or a VPS, and the FAQ covers setup questions.
FAQ
Do I need a VPS to run an EA on MT5?
Not strictly, but the EA only works while your terminal is open and connected. If your computer cannot stay on around the clock during market hours, a VPS is the reliable way to keep the EA running.
Is the MQL5 VPS good enough?
For a single terminal running standard EAs, it is convenient and inexpensive. It has no desktop and restricts some functions, such as DLL calls. If you need several terminals or full control, a Windows VPS is more flexible.
Does a VPS improve EA results?
A VPS mainly prevents missed trades and unmanaged positions caused by downtime. Lower latency can help very short-term strategies. It does not improve a strategy that has no edge.
What happens to my trades if the VPS goes offline?
Open positions and their stop loss and take profit orders remain at the broker. The EA cannot manage them, open new trades or apply its own exit rules until the terminal reconnects. Check your VPS regularly.
This article is educational and not financial advice. Trading gold and leveraged products carries a high risk of loss.
Trade the tested model
Live XAUUSD signals, an MT5 indicator and a fully automated MT5 EA, all from one tested rule set.
Trading involves substantial risk. This is educational content, not financial advice. See the risk disclosure.