An Expert Advisor can only trade while MetaTrader is open, connected and running on a computer. If the laptop is closed, the power fails or Windows restarts for an update, the EA stops. If it had open trades, nothing is managing them anymore. A VPS is designed to solve this problem.
What Is a VPS?
A VPS, or virtual private server, is a computer running in a data centre that you control remotely. It stays on 24/7 with backup power and a fast, stable internet connection. You install MetaTrader on it, attach your EA, disconnect, and the EA keeps running whether your own computer is on or not.
Do You Actually Need One?
You probably need a VPS if:
- Your EA trades around the clock or holds positions overnight that it manages (trailing stops, partial closes, basket exits).
- You trade synthetic indices, which run 24/7 including weekends.
- Your home internet or power is unreliable.
- Your EA is a scalper where execution speed matters.
You may not need one if:
- You trade manually.
- Your EA only trades a specific session and you are reliably at your computer then.
- Your trades always have a stop loss and take profit set on the broker’s server, and the EA does nothing else after entry. (Server-side stops still work when MT5 is closed; EA-managed trailing stops and virtual stops do not.)
- You are still testing on demo, where interruptions do not cost money.
Option 1: MetaTrader’s Built-In VPS
Both MT4 and MT5 offer a VPS service from MetaQuotes. In the Navigator, right-click your trading account and choose Register a Virtual Server. You then migrate your charts, EAs and settings to it with a couple of clicks.
Pros:
- Very easy to set up, with no Windows administration.
- The server is chosen automatically near your broker’s trade server for low latency.
- Monthly cost is usually modest, often in the region of $10–15 a month (check the current price in the platform).
Cons:
- It runs one trading account per subscription.
- You cannot log in and look at the charts. You manage it from your local terminal, and you need to migrate again whenever you change EAs or settings.
- Some EAs are not allowed, such as those using DLLs.
Option 2: A Windows VPS From a Hosting Provider
This is a full Windows computer in the cloud that you log into with Remote Desktop. You install whatever you want, including several MetaTrader terminals for different accounts.
Pros:
- Run multiple terminals and accounts on one server.
- See your charts, logs and EAs live, just like at home.
- Use DLLs, custom tools and other software.
Cons:
- More setup and maintenance: Windows updates, security and backups are your job.
- Usually costs more than the built-in VPS.
What Specs Do You Need?
- RAM: 2 GB is enough for one or two lightly loaded terminals; 4 GB or more if you run several terminals or many charts.
- CPU: 1–2 cores is fine for running EAs. Optimising EAs on a VPS needs much more, so do that on your own computer.
- Storage: SSD storage keeps the platform responsive; tick data can take several gigabytes over time.
- Location: as close as possible to your broker’s server. Many brokers host in London, New York or Amsterdam. Lower latency, measured in milliseconds, means faster execution.
You can check latency in MetaTrader: the connection indicator in the bottom-right corner shows the ping to your broker’s server. Under 10 ms is excellent; under 50 ms is fine for most EAs. Hundreds of milliseconds can hurt a scalper.
Setting Up a Windows VPS: Checklist
- Connect with Remote Desktop using the details from your provider.
- Change the default password to a strong, unique one.
- Install MetaTrader from your broker’s website, not from a third-party download.
- Log in to your trading account and install your EAs and indicators.
- Enable algo trading and attach your EA with the correct settings.
- Set Windows to schedule updates outside trading hours, so an automatic restart does not stop your EA mid-trade.
- Add MetaTrader to Windows Startup so it relaunches after a restart, and use a profile that reopens your EA charts.
- When you disconnect, close the Remote Desktop window rather than logging off. Logging off closes MetaTrader.
Keep Monitoring Your EA
A VPS keeps the EA running. It does not make it profitable or safe. Check in daily at first, then at least a few times a week:
- Are trades opening as expected? Check the Experts and Journal tabs.
- Is drawdown within what you planned for?
- Do live results still match your backtest and demo?
- Has the broker changed anything, such as symbol names, spreads or trading hours?
Turn on MetaTrader push notifications to your phone, and many EAs can send alerts too. Keep a short journal of the EA’s weekly results and every settings change.
Frequently Asked Questions
Do I need to keep my own computer on if I use a VPS?
No. That is the point of a VPS. Once MetaTrader is running on the VPS with your EA attached, you can switch off your own computer. Avoid running the same EA on the same account from both your home terminal and the VPS, or they may open duplicate trades.
Can I use a free VPS?
Some brokers offer a free VPS if you keep a minimum balance or trade a minimum volume each month. That can be a good deal, but check the conditions, the specs and what happens if you fall below the requirement. Be very cautious with unknown “free VPS” offers from third parties, because whoever controls the server can see your trading login.
Does a VPS make my EA more profitable?
Only indirectly. It reduces missed trades, disconnections and slow execution. If the strategy itself has no edge, a VPS just lets it lose money more reliably. Prove the EA on demo first.
Can I use a Linux VPS?
MetaTrader is a Windows program. It can run on Linux through compatibility layers such as Wine, and some traders do this successfully, but setup is more involved and some EAs or DLLs may not work. For most traders a Windows VPS is the simpler choice.
How do I know if my VPS is too slow?
Watch the ping in MetaTrader’s bottom-right corner and check CPU and memory use in Task Manager on the VPS. If memory is nearly full or the CPU is constantly maxed out, close unused charts or upgrade the plan.
Summary
If your EA manages trades or runs outside the hours you are at your computer, a VPS is not a luxury. It is what makes automated trading actually automated. Start with MetaTrader’s built-in VPS for a single account; move to a Windows VPS when you need several terminals or full control.
Trading carries a high level of risk. This article is educational and is not financial advice. See our risk disclaimer.
