VPS for Trading Robots: Why You Need One and How to Set It Up
A robot only runs while MetaTrader is open. Shut down your computer and the robot stops. A VPS solves that, and here is how to choose and set one up.

Contents
You installed your robot, everything works, and in the evening you shut down your computer. In the morning you realise the robot missed a trade because MetaTrader was off. Or worse: the power goes out while a position is open, and the robot can't manage it.
That is exactly what a Forex VPS is for. It is a computer in a data centre that runs 24 hours a day with stable power and internet, and your MetaTrader 5 and robot run on it.
In this article you will learn what a VPS is, whether you really need one, the difference between MT5's built-in hosting and a regular Windows VPS, and how to set it up step by step without the common mistakes.
What a VPS is and why your robot needs one
A VPS (Virtual Private Server) is a virtual computer you rent in a data centre. You access it over the internet, and it keeps running whether your own computer is on or not.
For a trading robot, that solves three problems:
- The robot runs non-stop. It doesn't depend on your computer, your power supply or your home internet.
- Lower latency. If the VPS is close to your broker's servers, orders arrive faster, which reduces slippage (getting filled at a worse price than expected).
- It frees up your computer. You can switch it off, travel or do something else.
Boris FX robots for MT5 are free with an account opened through Boris's link, and a VPS is what keeps them running without interruption.
Do you really need a Forex VPS?
Not always. It depends on the robot and on how you live.
| Situation | Do you need a VPS? |
|---|---|
| Testing a robot on demo for a few days | not required, a home computer is fine |
| The robot trades at night or early in the morning | yes |
| Your computer shuts down, sleeps or restarts for updates | yes |
| Your internet or power is unreliable | yes |
| The robot holds positions overnight | recommended |
For example, Gold Trimmer measures the gold range between 23:00 and 01:00 GMT, and its trades come after that. If your computer is off in the evening, the robot won't even measure the range. For a robot like that, a VPS is not an option, it is a requirement.
Two kinds of VPS for MetaTrader 5
1. MT5's built-in virtual hosting
MetaTrader 5 has a built-in virtual hosting service (MQL5 Virtual Hosting). You rent it straight from the platform, and it runs a copy of your terminal on a server close to your broker's servers.
- Pros: the easiest setup, the platform suggests the server with the lowest ping, no Windows to maintain.
- Cons: you don't see the server's "screen"; every change (a new robot, new settings) has to be migrated again; one hosting subscription works for one trading account.
2. A regular Windows VPS
You rent a whole Windows server from a provider and connect to it with Remote Desktop. There you install MetaTrader just like on your own computer.
- Pros: full control, you can run several terminals and accounts, and you see everything that happens.
- Cons: you maintain the system yourself (updates, restarts), a bit more technical work.
For most beginners with one account and one or two robots, the built-in hosting is plenty. If you have several accounts or want to see the screen, go with a Windows VPS.
How powerful does your VPS need to be?
MetaTrader 5 with one or two robots doesn't need much. For a Windows VPS a modest plan with a little CPU power and memory is enough; you only need more when you run several terminals at once. Three things matter more than raw power: a location close to the broker's servers, stability (how often the server has outages) and support that answers when something breaks. A more expensive plan doesn't mean better execution if the server is on another continent.
Learn and trade with THE ONE FX
Everything you need after this article, in one place.
How to set up MT5's built-in hosting
- First install the robot on your own computer and set everything up: chart, timeframe, inputs, Algo Trading and the WebRequest address. The process is in how to install an EA on MT5.
- In the Navigator window, right-click your trading account and choose Register a Virtual Server.
- The platform suggests the server with the lowest delay to your broker. Choose a plan and complete payment through your MQL5 account.
- Start the migration: the platform moves your open charts, robots and their settings to the server.
- Check the hosting log: it should confirm that the charts and robots were transferred successfully.
The robot now runs on the server. Your local MetaTrader is only for watching what happens. You can also follow the trades in the MetaTrader 5 mobile app, logged in to the same account, because the app only shows the account and doesn't run the robot.
How to set up a Windows VPS
- Rent a Windows VPS from a provider, ideally in the same city or region as your broker's servers.
- Connect with Remote Desktop using the details from the provider (IP address, username, password).
- On the server, download and install MetaTrader 5 from your broker's website.
- Log in to your trading account and install the robot with the same steps as on your computer, including the WebRequest address from the PDF guide.
- Turn on Algo Trading and check the Experts tab.
- When you're done, close the Remote Desktop window with the X, don't choose Sign out. Closing the window only disconnects you, and programs keep running. Signing out closes MetaTrader too.
Once a week, connect and check that the terminal is connected, the robot is running and Windows hasn't restarted for an update. After a restart MetaTrader does not start by itself, unless you set it to launch when the system starts.
The most common VPS mistakes
- Running the robot twice: at home and on the server. Result: double the trades.
- Forgetting to migrate: you change settings locally but don't push them to the hosting, so the server keeps the old ones.
- Signing out instead of closing the window on a Windows VPS.
- A server far from the broker: high ping and worse execution.
- Nobody checking: a VPS isn't "set and forget". Look at it at least once a week.
- The same account on two servers: if you use both MT5 hosting and a Windows VPS, the robot may run on only one of them.
In short: what to do
If your robot needs to run at night or around the clock, a VPS is not a luxury, it is part of the equipment. For one account, start with MT5's built-in hosting; for several accounts, get a Windows VPS. After the switch, turn the robot off at home and check the server regularly.
Our robots (free with an XM, Vantage or PU Prime account opened under my partner code) come with a PDF guide that covers both installation and VPS setup. You can see the details on the robots page. If automated trading is new to you, start with what is a trading robot, and before you go live, read how to read a backtest report.
A VPS makes your robot run reliably. It doesn't make it more profitable: results still depend on the strategy and the market, and automation does not guarantee profit.
Frequently asked questions
What is a Forex VPS?
A Forex VPS is a virtual server in a data centre that runs MetaTrader with your robot 24 hours a day. It doesn't depend on your computer, power or internet, and it is usually close to your broker's servers, so execution is faster.
Does my EA keep running if I turn off my computer?
Not if the robot runs on your computer. A robot only works while MetaTrader is open and connected. If the robot runs on a VPS or MT5 virtual hosting, you can switch your computer off.
What is the best VPS for MetaTrader 5?
For one account, the easiest is MT5's built-in virtual hosting, because the platform places it close to your broker's servers. For several accounts or terminals, a Windows VPS is better. A low ping to your broker's server matters more than the brand.
Why is my EA opening duplicate trades after moving to a VPS?
Most likely the robot is still running on your own computer as well. Switch off Algo Trading or remove the robot from the chart on your home computer so it only runs on the server.
Do I need to migrate again after changing the robot's settings?
Yes. With MT5's built-in hosting, every change (a new robot, different inputs, a new chart) has to be migrated again. Otherwise the server keeps running with the old settings.
Risk warning: trading Forex, gold and CFDs carries a high risk of losing capital and is not suitable for everyone. This article is educational and is not investment advice or a recommendation to buy or sell. Examples are illustrative, and past results do not guarantee future results. Some links are affiliate links: more information.


