Do you need a VPS for an MT5 expert advisor?

An expert advisor trades only while MetaTrader 5 runs and is connected. You do not strictly need a VPS, but you do need a terminal that stays on day and night. For most people a VPS is the simplest way to get that. Here is how to choose between the options and what to check after you move.

1. Why the terminal must stay on

The program lives inside the terminal. If the computer sleeps, restarts for an update or loses its internet connection, the program stops watching the market. Orders already at the broker, such as a stop or a target, stay there. But nothing new happens: no new trades, no trade managed or closed by the program, not even before the daily break. A trade held overnight without a stop stays open until the program runs again.

2. Three ways to keep it running

  • The VPS built into MetaTrader 5. You rent it from inside the terminal and migrate the charts that run your programs to it. The terminal picks a hosting location close to your broker's server. At the time of writing it costs $15 a month, or $10 a month on a 12-month plan, plus VAT where it applies.
  • Your own Windows VPS. A server rented from a hosting company. You connect with Remote Desktop, install MetaTrader 5 and work on it as on your own computer. Prices and locations vary; choose one near your broker's server.
  • Your own computer. Free, if it really stays on: no sleep mode, no automatic restarts during trading hours, a stable connection and power. A laptop that you close in the evening does not qualify.

3. How much latency matters

Latency is the time an order needs to reach the broker. For a program that holds trades for minutes or hours, a few milliseconds more or less rarely change the result. For a program that scalps tiny moves, it matters much more. Either way, a server close to the broker is better than a home connection that drops at the wrong moment.

4. After you move: a checklist

  1. One terminal trades, not two. If the same program with algo trading on runs both on your computer and on the VPS, it can open every trade twice. When you migrate to the built-in VPS, MetaTrader 5 turns off algo trading in your own terminal. Leave it off, and keep the program on your local chart: the next migration copies your local charts, so a program you remove there disappears from the VPS too.
  2. Read the journal. On the built-in VPS, open the VPS journal after each migration (Toolbox, VPS, Journal) and check in its Experts log that the program started. On your own VPS, read the Journal and Experts tabs as on any computer.
  3. Migrate again after every change. On the built-in VPS, a new setting or a new chart on your computer reaches the server only after the next migration.
  4. Programs that check a licence online. Allow their address in Tools, Options, Experts (Expert Advisors in some versions), "Allow WebRequest for listed URL", before you migrate.
  5. Programs with DLLs. The built-in VPS cannot run programs that use DLLs. Your own VPS can.
  6. The clock. On your own VPS, set the correct time and time zone. Programs that trade at set hours depend on it.

If the program runs but opens nothing, go through our checklist for an EA that is not taking trades.

Running our program

Opening Bell Algo for MT5 needs a terminal that stays on, like any expert advisor. The budget page has the VPS cost next to the other monthly costs, and the installation page has every installation step. With the website edition on the built-in VPS, two steps come before you migrate. Allow WebRequest for https://api.openingbellalgo.com on your own terminal. Then paste your key into Licence key in the Inputs tab, even if the program already remembers it. The remembered key is saved only on your computer, so it does not reach the VPS. To try it first, start the free 14-day trial, which runs only on demo accounts and needs no card.

This guide is general information about MetaTrader 5, not investment advice. VPS prices were checked on the MQL5 website on 16 November 2026 and can change. Trading futures and CFDs with leverage carries a high risk of loss. See our risk disclosure. The free trial is not offered in the United States or its territories. MetaTrader is a trademark of its owner, used only to describe the platform.