You built your bot, tested it, and it works. Now the question: where will it run? If the answer is "on my PC", you have a problem. A bot that depends on your machine being on is a bot that stops when the power goes out, when your internet flickers, or when you simply shut the computer down to go to sleep — possibly with an open position and nobody managing it. A VPS solves that. Let us get to what matters.
01Why a bot needs a VPS
A VPS (Virtual Private Server) is a computer in the cloud, on 24 hours a day, where your platform (MT5, or your Python script) runs without interruption. The three reasons it stops being a luxury and becomes a necessity:
- 24/5 availability (or 24/7 in crypto). The forex market runs 24 hours on weekdays; crypto, all the time. Your bot needs to be up at all times, not only when you are awake.
- Low latency. A VPS close to the broker's server executes orders in milliseconds. For scalping and HFT, that is the difference between profit and a loss to slippage.
- Independence from your machine. You can shut the PC down, travel, or have a power cut at home — the bot on the VPS keeps trading.
Who can skip the VPS: if you only trade during business hours, watch the screen, and use long timeframes (H1+), you can start without a VPS. But for serious automated 24/5 trading, it is practically mandatory.
02The criterion that matters: latency, not price
The beginner's mistake is choosing a VPS by price. What really matters is latency — the time it takes for your order to reach the broker's server. And latency is, above all, a function of physical distance.
The big financial data centers are concentrated in a handful of places: LD4/LD5 in London and NY4 in New York hold most of the forex brokers' servers. If the broker hosts in London and your VPS is in London, latency is minimal. If your VPS is in Brazil and the broker is in London, you add tens of milliseconds — irrelevant for swing trading, fatal for scalping.
How to find out: ask your broker where its execution servers are (usually London or NY). Pick a VPS in the same region. For Brazil's B3 exchange, look for a VPS in Brazil (São Paulo), close to B3's servers.
03Broker's free VPS vs. a paid one
Broker's free VPS
- Zero cost (with a minimum volume or balance)
- Latency optimized for the broker's own servers
- Simplified, integrated setup
- Ideal to start with
Limitation: tied to that broker; specs are sometimes modest.
Paid VPS (dedicated to trading)
- Independent of the broker
- Bigger specs (runs several MT5 instances/bots)
- Precise choice of location
- From a few dollars a month
Providers specialized in "forex VPS" guarantee proximity to LD4/NY4.
Straight recommendation: start with the broker's free VPS if you only trade with that broker and it offers one. Move to a paid VPS when you want to run multiple bots, trade at several brokers, or need specific specs/locations.
04Minimum specs for a bot
A trading bot is not demanding on hardware — what matters is stability and uptime, not raw power. For reference:
| Resource | Minimum (1 bot) | Comfortable (several) |
|---|---|---|
| CPU | 1 vCore | 2-4 vCores |
| RAM | 1-2 GB | 4 GB+ |
| Disk | 20-30 GB SSD | 50 GB+ SSD |
| Uptime | 99,9% | 99,9%+ |
| OS | Windows (for MT5) | Windows or Linux |
For MT5 you need a Windows VPS (MT5 runs natively on Windows). For a Python bot, Linux works and tends to be cheaper and more stable.
05How to set it up (step by step)
Choose the location (close to the broker's server) and the specs. You receive an IP, a username and a password.
On Windows, use "Remote Desktop Connection" (RDP) with the IP and credentials. You "step into" the VPS as if it were another PC.
Download your broker's MT5 inside the VPS and log in to your account. (For a Python bot, install Python and upload your code.)
Install the EA following our MT5 installation tutorial. Confirm that Auto Trading is on.
Close the RDP window. The VPS keeps running in the cloud with the bot active. Reconnect whenever you want to monitor it.
06Frequently asked questions
Why not run the bot on my PC?
Because it only works while the PC is on, with internet and the platform open. A power cut, unstable internet or shutting down to sleep stops the bot — perhaps with an open position. A VPS runs 24/7 in the cloud.
Is the broker's free VPS reliable?
Yes, for most people. It has latency optimized for the broker's servers and an integrated setup. The limitation is being tied to that broker, plus sometimes modest specs. Great to start with.
Where should the VPS be located?
As close as possible to the broker's execution server — usually London (LD4/LD5) or New York (NY4) for forex, São Paulo for B3. Shorter distance = lower latency, which matters a lot for scalping.
How much does a trading VPS cost?
A broker's free VPS: zero (with a minimum volume/balance). A specialized paid VPS: from a few dollars a month for basic specs. You do not need a powerful machine — stability and location matter more than CPU.
Do I need Windows or Linux?
For MT5, Windows (the platform runs natively on it). For a Python bot, Linux works and tends to be cheaper and more stable. Choose according to what you are going to run.