Forex VPS explained: what it is, latency, costs and when you need one
A forex VPS keeps your trading platform running around the clock on a remote server. Here is what it actually solves, what latency is worth, what it costs relative to your account, and how to set one up without new risks.
- A forex VPS is a rented remote computer that keeps your trading terminal running 24 hours a day, so Expert Advisors and terminal-side trailing stops keep working when your own computer is off.
- Stop-loss, take-profit and pending orders already sit on the broker server; a manual trader who only uses those usually does not need a VPS.
- Lower latency matters for strategies chasing a few pips; for trades held hours or days, a few tens of milliseconds make almost no difference.
- Treat the monthly fee as a hurdle the strategy must clear: on a small account it can be a large share of any realistic yearly result.
- A VPS adds its own failure points, such as restarts, duplicate EAs and weak passwords, so it needs monitoring.
A forex VPS (virtual private server) is a remote computer, usually in a data centre, that you rent to run your trading platform 24 hours a day. You need one if something on your platform has to keep working while your own computer is off, mainly an Expert Advisor or a trailing stop that runs inside the terminal. If you trade by hand and rely only on stop-loss, take-profit and pending orders, you usually do not.
The second selling point, lower latency to the broker's servers, matters for a small group of very short-term strategies and much less for everyone else. This guide covers both, what a VPS costs relative to a realistic account, and the new things that can go wrong once your trading runs on a machine you cannot see.
What a VPS actually is
A VPS is a slice of a physical server that behaves like your own computer. It has its own operating system (for forex this is usually Windows, because the desktop MetaTrader and cTrader terminals are Windows programs), its own memory and disk, and its own internet connection, which in a data centre is fast and rarely interrupted. You connect to it from your laptop or phone using a remote desktop app, see its screen, install your platform, log in to your trading account, attach your EAs and then disconnect. The VPS keeps running.
The glossary entry on VPS gives the short definition. The practical point is that the platform running on the VPS is a full copy of the one on your desk, with the same account, the same EAs and the same settings, but it does not go to sleep when you close your laptop.
What runs where: the question that decides whether you need one
The reason a VPS exists at all is that some things in a trading platform run on the broker's server and some run on your computer.
On the broker's server
- Open positions.
- Stop-loss and take-profit orders attached to positions.
- Pending orders, such as buy limits and sell stops (our order types guide covers each).
- Your account balance, margin and history.
These keep working whether your computer is on or off. If price reaches your stop at 3 a.m., the broker executes it.
On your computer (the terminal)
- Expert Advisors and scripts. In MetaTrader, the EA's code runs inside the terminal. If the terminal is closed, the EA stops reading prices and sending orders. Its stops already placed on the server remain, but any logic it applies later, such as a time-based exit or a scaling rule, does not happen.
- The built-in trailing stop in MT4 and MT5. It is managed by the terminal, so it stops moving when the terminal is closed, as our guide to trailing stops explains.
- Terminal-based alerts. Standard MetaTrader alerts are checked by the desktop terminal. Our guide to setting price alerts covers server-side alternatives.
- Copy-trading or signal software that runs in the terminal.
So the honest test is: does anything you depend on live in the second list? If not, a VPS solves a problem you do not have.
Platforms that run automation on the server
Not every platform works this way. cTrader runs some order management, including trailing stops, on the server, and TradingView alerts run on TradingView's servers. cTrader's cBots, like MetaTrader EAs, still need a running terminal or a hosted service. Check how your specific platform handles each feature before deciding. Our comparison of cTrader and TradingView covers those platforms in more depth.
Latency: what it is and when it matters
Latency is the time it takes for data to travel between two points. For a trader, the relevant round trip is from your terminal to the broker's trade server and back. From a home connection in another country this might be tens or hundreds of milliseconds, and it can spike when your connection is busy. From a VPS in the same data centre as the broker's server, it can be a millisecond or two.
Many brokers host their trade servers in large financial data centres, often in the London and New York areas, and some VPS providers advertise servers in the same buildings. MetaQuotes' own virtual hosting service lets you pick the server nearest to your broker for this reason.
Does lower latency improve your fills?
Sometimes, a little. Latency is only one part of execution. The rest is the broker's execution model, the liquidity available at that moment and how fast price is moving. A faster connection gets your order there sooner, so the price you see is less stale when it arrives. That reduces small amounts of slippage on market orders in moving markets. It does not remove slippage, does not change spreads, and does nothing during a gap.
Worked example: when milliseconds matter and when they do not
These figures are illustrative. Suppose that during a busy period EUR/USD moves on average 0.1 pip per 100 milliseconds against an order that has been sent but not yet filled.
- Strategy A, a scalping EA targeting 4 pips per trade with 1,000 trades a year. Cutting latency from 120 ms to 2 ms saves about 0.12 pip per trade on average in those conditions. Over 1,000 trades that is 120 pips, or 3% of its gross target per trade. Meaningful.
- Strategy B, a swing EA targeting 150 pips per trade with 40 trades a year. The same saving is 0.12 pip out of 150, under 0.1% per trade and about 5 pips a year in total. Irrelevant compared with the monthly fee.
The pattern holds in general: the smaller the target per trade and the more trades, the more latency matters. Our guide to scalping, day trading and swing trading covers why short-term strategies are so sensitive to every cost.
The kinds of forex VPS
Broker-provided VPS
Some brokers offer a VPS to clients, sometimes without a fee if the account meets a deposit or monthly trading-volume condition, and otherwise for a monthly charge. The server is usually close to that broker's trade servers. Read the conditions carefully: if your volume falls below the threshold in a quiet month, the fee may be charged to your account. A volume requirement should never be a reason to trade more than your plan says.
MetaTrader virtual hosting
MetaQuotes sells hosting that is built into MT4 and MT5. You rent it from inside the terminal, pay through an MQL5 account, and then migrate your charts, EAs and settings to it. It is the simplest option for MetaTrader users because there is no Windows server to manage. The trade-off is less control: it is designed to run your EAs and signal subscriptions, not to be a general-purpose computer, and the service has restrictions on what programs can do (for example around external libraries). Check the current terms and price in the terminal before relying on it.
Third-party Windows VPS
General hosting companies and specialist forex VPS providers rent full Windows servers. You get a complete remote desktop, can run several terminals for different brokers, and can install monitoring tools. You are also responsible for updates, security and keeping everything running.
What a VPS costs, and why it is a hurdle
Prices vary by provider, specification and location, and change over time, so compare current offers rather than relying on any figure here. What matters is the cost relative to your account and your realistic expectations.
Worked example: the fee as a percentage of the account
Illustrative numbers: a VPS costs the equivalent of £20 a month, or £240 a year.
- On a £2,000 account, £240 is 12% of the account each year. The strategy has to earn 12% a year after spreads, commissions and swaps just to cover the server.
- On a £10,000 account, it is 2.4%.
- On a £50,000 account, it is under 0.5%.
Put that against what is realistic. Our guide to realistic trading returns and compounding shows why sustained double-digit annual returns are rare even among professionals. For a small account, a paid VPS can quietly consume the whole edge of a strategy that was marginal to begin with. It belongs in the same list as the other costs in our hidden broker fees guide.
How much server do you need?
For one or two MetaTrader terminals running a handful of EAs, a modest specification is usually enough. Each terminal uses memory for its charts and history, so the requirement grows with the number of terminals, charts and symbols, and with EAs that load a lot of data. Signs the server is too small: the terminal freezes, the remote desktop is sluggish, or the EA logs show delays between ticks and actions. Closing unused charts and limiting the bars kept in history (in the terminal's chart options) often helps more than paying for a bigger server.
Setting up a VPS without creating new risks
A VPS removes one failure point (your home computer) and adds others. A sensible setup:
- Secure the remote access. Use a long, unique password, enable two-factor authentication on the provider account, and do not reuse the trading account password. A compromised VPS gives an attacker your live trading account.
- Install the platform from the broker's official site. Never use a pre-loaded image or a terminal supplied by a third party.
- Set the terminal to start automatically after a restart, with your charts and EAs reloading. Test this by restarting the VPS deliberately and checking that everything comes back with the right settings.
- Check Windows update settings. Unplanned restarts in the middle of the week are a common reason EAs stop running. Schedule updates for the weekend if the provider allows it.
- Confirm the time zone and server time your EA logic relies on. The VPS's local time may differ from your own and from the broker's server time.
- Run each EA once. If the same EA is running on your laptop and on the VPS against the same account, every trade is doubled. When you migrate, close the EA locally.
- Set up monitoring. Push notifications to your phone from the terminal for trades and errors, or a simple daily check, so you find out about problems within hours, not weeks.
Worked example: a restart that costs money
An EA manages a basket of positions and is designed to close them all if equity drops 3% below the day's starting balance (a rule coded in the EA, not a server order). The VPS restarts for an update at 2 a.m. and the terminal does not relaunch. During the Asian session the positions move against the account by 5%. Because the protective rule lived in the terminal, nothing closed them. Only the individual stop-losses on the server, set much wider, were still active. A working auto-start setting and a phone notification when the terminal disconnects would both have caught this.
When you probably need a VPS
- You run Expert Advisors or cBots that must react around the clock.
- You use MetaTrader's terminal-side trailing stop on trades held overnight.
- You run a short-term strategy where measured latency or slippage is a significant share of the target per trade.
- Your home connection or power is unreliable.
When you probably do not
- You trade by hand and place stop-loss, take-profit and pending orders on the server.
- You hold trades for days and your exits do not depend on terminal-side logic.
- Your account is small and the fee would be a large percentage of it.
- You are still testing an EA. A demo running on your own computer during the hours you are at your desk is enough to find out whether the code works; our Strategy Tester guide covers testing first.
Common mistakes
- Buying a VPS to fix a strategy. Latency is rarely what stands between a losing strategy and a winning one; costs, risk and rules usually are.
- Paying for speed you cannot use. A server in the wrong city, far from your broker's trade server, gives little latency benefit.
- Never testing a restart. The first unplanned restart is the wrong time to learn the EA does not reload.
- Running duplicate EAs on two machines against one account.
- Weak remote desktop security. Treat the VPS login like a bank login.
- Forgetting the VPS when changing broker or server. Old terminals left running can keep trading an account you thought was idle.
Frequently asked questions
Do I need a VPS to trade forex?
Not for manual trading with server-side stops and limits. A VPS is mainly for Expert Advisors, terminal-side trailing stops and other automation that must keep running when your own computer is off.
Does a VPS improve execution?
It reduces the time your order spends travelling to the broker, which can cut small amounts of slippage on market orders in moving markets. It does not change spreads, the broker's execution model or what happens in a gap.
Is a VPS safe?
It can be, if you secure it like any internet-facing computer: strong unique passwords, two-factor authentication on the provider account, official software only, and regular checks. A poorly secured VPS is a direct route into your trading account.
Can I run several MetaTrader terminals on one VPS?
Yes, a full Windows VPS can run several terminals, including for different brokers, as long as it has enough memory. MetaTrader's built-in virtual hosting is tied to a single trading account.
How do I choose a VPS location?
Choose the location closest to your broker's trade server, which you can often find in the broker's documentation or by measuring ping from the terminal. For strategies that hold trades for hours or days, location matters very little.
Will a VPS keep trading if the broker's server goes down?
No. A VPS keeps your side running; it cannot place orders on a server that is not accepting them. Gap and outage risk remains, which is one reason every position should be sized for the worst case, as our position sizing guide explains.
Not investment advice. This is general information and education, written without knowledge of your circumstances. It is not a recommendation to buy or sell any instrument. Past performance is not a reliable indicator of future results. Trading leveraged products carries a high risk of losing money. Risk warning