Skip to main content
QuantsDepot
EAs How we measure FAQ
Log in Sign up Log out Account

VPS for MT5 EAs: Do You Need One?

An Expert Advisor only trades while the MetaTrader 5 terminal it is attached to is running and online. A VPS (virtual private server) is a computer in a data centre that stays on, so the terminal keeps running when your own computer is off. This guide explains when that matters and how to set it up safely.

Do you need one? · The two options · Choosing a provider · Setup checklist · Common mistakes

Do you need a VPS?

You need the terminal to be running whenever the EA should be able to trade. Ask these questions:

  • Is your computer on and online all the time the market is open? Forex runs from Monday to Friday. A laptop that sleeps, a Windows restart after an update, or a dropped connection all stop the EA until the terminal is back.
  • Does the EA need a licence check? QuantsDepot EAs check their licence with our server at start and about once an hour. If a check cannot be completed, the EA keeps its last result for up to 24 hours and then stops opening new trades until a check succeeds (see the FAQ). A long outage is therefore a reason to use a VPS.
  • How fast must it react? An EA that decides on closed H1 candles, like the ones in this store, is not sensitive to a few milliseconds of delay. Scalping EAs, which trade for a few pips, are. A VPS near your broker's server mainly helps the second kind.

If your PC stays on and connected, you may not need a VPS. If you need to leave it, a VPS is the usual answer.

The two main options

1. MetaTrader Virtual Hosting (from MetaQuotes)

MT5 has a built-in service that copies your terminal setup to a hosted virtual platform. What the MetaTrader 5 help says about it:

  • Migration goes in one direction only: from your local terminal to the virtual one, never back.
  • Charts that have no EA on them are ignored, even if indicators run on them. Scripts are not migrated.
  • DLL calls are forbidden on the virtual platform.
  • WebRequest is allowed only for URLs you enable and list on the Expert Advisors tab. Our EAs need https://quantsdepot.com there, so add it before you migrate.
  • Keep only the symbols the EA needs in Market Watch before migrating, to reduce tick traffic.
  • Accounts that need a one-time password cannot be used.

After a migration, open the Experts tab of the virtual platform's log and check that the EA starts without a WebRequest or licence message.

2. A Windows VPS from a hosting provider

You rent a Windows machine, connect to it with Remote Desktop, install MetaTrader 5 from your broker on it and set up the EA there exactly as on your PC (see How to install an EA). You control the whole machine, so you can run several terminals, but you also look after Windows updates and restarts.

Choosing a provider

  • Location. The shorter the network path to your broker's trade server, the lower the delay. MetaTrader's registration offers the virtual server with the lowest ping to your broker's server. For an ordinary VPS, ask the broker where its server is and test the ping from a trial machine over several days.
  • Windows. MetaTrader 5 runs on Windows. Check that the plan includes it.
  • Memory. One terminal does not need much, but each extra terminal adds to it. Leave room for Windows itself.
  • Uptime and restarts. Look for a provider that publishes its uptime commitment, and set Windows not to restart without you noticing.
  • Treat marketing numbers as claims. Latency figures on provider websites are self-reported.

Setup checklist for a Windows VPS

  1. Install MT5 from your broker's website and log in to the same MT5 account number your licence is for (how to find it).
  2. Copy the .ex5 file into MQL5/Experts of that terminal's data folder (File → Open Data Folder) and refresh the Navigator.
  3. In Tools → Options → Experts, tick Allow WebRequest for listed URL and add https://quantsdepot.com.
  4. Turn on Algo Trading and attach the EA to the chart written on its page, with Allow Algo Trading ticked.
  5. Confirm the blue cap icon (running) and read the Experts tab for errors.
  6. Stop the EA on your PC (see below).
  7. Close the Remote Desktop window with the X or Disconnect, not Sign out. Signing out closes the programs, including MT5.

Common mistakes

  • The same EA running on the PC and the VPS with the same account. Both terminals can place trades, so you can get double orders. Remove the EA from the old chart before you start the new one. The licence is for one MT5 account; see switching MT5 account if you want a different one.
  • Forgetting the WebRequest address on the new machine. It is a setting of each terminal, not of the account.
  • A different broker server. If the VPS terminal is logged in to another account, the licence check fails. Use the account number the licence was bought for.
  • Never looking at it. Look at the terminal now and then. A VPS keeps the EA running; it does not make the trading safe. See the Risk Disclosure.

If the EA does not trade on the VPS, go through Troubleshooting.

Next: How to install an EA · MT5 EA not working · All guides

QuantsDepot

Measured MT5 Expert Advisors.

Shop

  • All EAs
  • Free with partner account

About

  • About
  • How we measure
  • FAQ
  • Guides
  • Free tools
  • How to install
  • Troubleshooting
  • Contact
  • List your EA

Legal

  • Terms of Service
  • Privacy Policy
  • Refund Policy
  • Risk Disclosure
  • Affiliate Disclosure
  • Restricted Jurisdictions

Operated by Attempia Ltd.

Trading involves risk. Past and tested results do not guarantee future results. Nothing here is investment advice. We may earn a commission from partner brokers.

MetaTrader 5 is a trademark of MetaQuotes Ltd. QuantsDepot is not affiliated with MetaQuotes.

We use cookies to enhance your experience and analyse site traffic. Read our Cookie Policy.