Skip to content
All articles

How-to guides

VPS for Forex EAs: Do You Need One for MT5?

SmartEA Research, 2026-10-23, updated 2026-11-12, 6 min read

VPS for Forex EAs: Do You Need One for MT5?

Short answer: you need a VPS for a forex EA if the EA has to manage trades while you are away from your computer, which is true for most EAs. An Expert Advisor runs inside MetaTrader 5, so it stops working whenever the terminal is closed, the computer sleeps or the Internet drops. A Windows VPS (virtual private server) keeps MT5 running and connected 24 hours a day, five days a week, usually close to your broker's servers.

Why an EA stops when your computer does

An EA is not a service running at your broker. It is a program running in your copy of MetaTrader 5. The broker only stores what has already been sent to it: open positions, pending orders, and stop loss and take profit levels. Everything else happens in the terminal:

  • opening new trades when a signal appears;
  • adding grid levels and closing a basket at its target;
  • break-even, trailing stops and early exits;
  • drawdown protection and other safety checks.

If the terminal is offline when one of these should happen, it does not happen. For a breakout EA that places every stop on the server, an outage mostly means missed trades and missed trailing. For a grid EA without a per-trade stop loss, an outage can mean a basket that keeps running without its target or its drawdown protection being checked. That is a much bigger risk.

Do you really need one?

You probably do not need a VPS if you only backtest, if you run the EA on a demo account to watch it during the day, or if your home computer is genuinely on and online 24/5 with a stable connection and automatic Windows updates under control.

You probably do need one if you trade a real account with an EA that holds positions overnight or over several days, if the EA manages baskets or trailing stops, or if you travel, use a laptop or have an unreliable connection.

What to look for in a forex VPS

Location and latency

Latency is the time a request takes to reach your broker's trade server. A VPS in the same data-centre region as the broker (commonly London, New York or other financial hubs) typically has much lower latency than a home connection. For most EAs that trade on H1 bars or hold positions for hours, a few milliseconds do not change much. For scalpers and very short-term strategies latency matters more. MT5 shows the ping to your server in the bottom-right corner of the terminal.

Operating system

Choose Windows. MetaTrader 5 is a Windows application, and running it natively avoids compatibility layers.

Memory and CPU

MT5 itself is light, but each terminal, chart and history download uses memory. As a rough guide, 2 GB of RAM and one or two vCPUs comfortably run a terminal or two with a few EAs. Add resources if you run several terminals, use many charts or let the terminal download a lot of tick history. Watch Task Manager for the first days and upgrade if memory stays near the limit.

Reliability and support

Look for a provider with stable uptime, automatic restarts after maintenance and support that responds when the server is unreachable. A cheap VPS that reboots for updates in the middle of the week costs more than it saves.

Your main options

1. Your own Windows VPS

You rent a Windows server from a hosting provider, connect with Remote Desktop and install MT5 yourself. Full control, any number of terminals and EAs, and you can see exactly what is happening. You are responsible for setup, Windows updates and monitoring.

2. MetaQuotes built-in virtual hosting

MetaTrader 5 offers a hosting service rented from inside the terminal. You "migrate" your charts and EAs to a server near your broker, and they run there without a separate Windows desktop. It is quick to start. You do not get a desktop to log in to, and you should check that the EA works there (for example, any WebRequest URLs it needs and how settings are migrated).

3. A broker-provided VPS

Some brokers offer a free or discounted VPS when your account meets certain deposit or volume conditions. Read the conditions: the VPS may be withdrawn if you no longer meet them.

Setting up an EA on a VPS: checklist

  1. Connect to the VPS with Remote Desktop and install MetaTrader 5 from your broker's website.
  2. Log in to your trading account and make sure the symbol you need is in Market Watch.
  3. Copy the EA and presets into the terminal's data folder (File > Open Data Folder > MQL5\Experts and MQL5\Presets).
  4. Allow WebRequest for any URL the EA needs (Tools > Options > Expert Advisors).
  5. Attach the EA to the correct chart, load a preset and switch on Algo Trading.
  6. Check the Experts tab in the Toolbox for errors.
  7. Close the Remote Desktop window with the X instead of logging off, so the session and MT5 keep running.
  8. Set Windows updates to install outside trading hours, and make sure MT5 starts automatically after a reboot.
  9. Run the EA on only one machine per account. Two terminals running the same EA on the same account will both trade.

Our guide on how to install and use an Expert Advisor in MT5 covers the terminal steps in detail.

VPS options for our EAs

All three of our gold EAs (Smart Rider Gold, Smart Striker Gold and Smart Archer Gold) only trade while MetaTrader 5 is running: all of them manage open positions around the clock. We recommend a VPS for every real account. You can set it up yourself, or choose one of our services at checkout:

  • Installation on your own VPS: $29 one-time. In a remote session with you we install MetaTrader 5 and the EA, set up WebRequest and check that the EA starts. You log in to your trading account yourself; we never receive your trading password.
  • Dedicated VPS set up just for you: $49 per month. You get your own RDP login and full control.

Current prices are always shown at checkout. See the FAQ for more details.

Frequently asked questions

Does a VPS make an EA more profitable?

No. A VPS keeps the EA running and can reduce latency, but it does not change the strategy. It removes one source of avoidable problems: a terminal that is offline when it should be managing trades.

Can I run several EAs on one VPS?

Yes, as long as the VPS has enough memory. Use one chart per EA, or separate terminals for separate accounts.

Can I use a Linux VPS?

It is possible with compatibility layers, but a Windows VPS is simpler and avoids problems that are hard to diagnose.

What happens if the VPS restarts?

MT5 has to start again and reconnect. Configure it to start automatically and check the Experts tab after any restart. Server-side stops and take profits stay active while the terminal is offline.

Is my home computer good enough?

For testing and demo trading, yes. For a real account that holds trades overnight, a VPS is more reliable than a home PC that may sleep, update or lose its connection.

A VPS keeps your EA online; it does not reduce trading risk. Leveraged trading can lose money quickly. Only trade money you can afford to lose.

Follow SmartEA Insider on Telegram

SmartEA Insider: results of our own live accounts, new versions and release notes. No trade signals.

Join the channel

Put it into practice

Backtest one of our Expert Advisors for free in the Strategy Tester.

Browse Expert Advisors