You built your bot, tested it, 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, the internet wobbles, or you simply turn the computer off to sleep — possibly with an open position and no management. A VPS solves this. Let's 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 uninterrupted. The three reasons it stops being a luxury and becomes a necessity:
- 24/5 (or 24/7 in crypto) availability. The Forex market runs 24h on weekdays; crypto, all the time. Your bot needs to be up always, not just when you're awake.
- Low latency. A VPS near the broker's server executes orders in milliseconds. For scalping and HFT, that's the difference between profit and loss from slippage.
- Independence from your machine. You can turn off the PC, travel, 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, keep an eye on the screen, and use long timeframes (H1+), you can start without a VPS. But for serious 24/5 automated trading, it's 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, mainly, a function of physical distance.
The big financial data centers are concentrated in a few 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 far away and the broker is in London, you add tens of milliseconds — irrelevant for swing, fatal for scalping.
How to find out: ask your broker where the execution servers are (usually London or NY). Choose the VPS in the same region. For CME-listed futures, a VPS near the US data centers (e.g. NY/Chicago) minimizes latency.
03The broker's free VPS vs. a paid one
Broker's free VPS
- Zero cost (with a minimum volume or balance)
- Latency optimized for its own servers
- Simplified, integrated setup
- Ideal to start
Limitation: tied to that broker; specs sometimes modest.
Paid VPS (dedicated to trading)
- Independent of the broker
- Bigger specs (runs several MT5/bots)
- Precise choice of location
- From a few dollars/month
Providers specialized in "forex VPS" guarantee proximity to LD4/NY4.
Direct recommendation: start with the broker's free VPS if you only trade with it and it offers one. Move to a paid one when you want to run multiple bots, trade at several brokers, or need specific specs/location.
04Minimum specs for a bot
A trading bot isn't demanding on hardware — what matters is stability and uptime, not raw power. A 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 configure it (step by step)
Choose the location (near the broker's server) and specs. You receive an IP, a username and an access password.
On Windows, use "Remote Desktop Connection" (RDP) with the IP and credentials. You "enter" the VPS as if it were another PC.
Download your broker's MT5 inside the VPS and log into your account. (For a Python bot, install Python and upload your code.)
Install the EA following our MT5 installation tutorial. Confirm Auto Trading is active.
Close the RDP window. The VPS keeps running in the cloud with the bot active. Reconnect whenever you want to monitor.
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 turning it off to sleep stops the bot — maybe with an open position. A VPS runs 24/7 in the cloud.
Is the broker's free VPS reliable?
Yes, for most. It has latency optimized for the broker's servers and an integrated setup. The limitation is being tied to that broker and sometimes modest specs. Great to start.
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. The shorter the distance, the lower the latency, which matters a lot for scalping.
How much does a trading VPS cost?
A broker's free VPS: zero (with minimum volume/balance). A specialized paid VPS: from a few dollars a month for basic specs. You don't need a powerful machine — stability and location matter more than CPU.
Do you need Windows or Linux?
For MT5, Windows (the platform runs natively on it). For a Python bot, Linux works, tends to be cheaper and more stable. Choose based on what you'll run.