BZ Trading Bots logoBZ Trading Bots العربية
How to Set Up a VPS for MT5 to Run Your Trading Bot 24/5
BZ Trading Bots

How to Set Up a VPS for MT5 to Run Your Trading Bot 24/5

By the BZ Trading Bots team · 20 November 2026 · Updated 22 November 2026 · 3 min read

A VPS (virtual private server) is a computer in a data centre that stays on 24 hours a day. Running MetaTrader 5 on a VPS means your trading bot keeps working when your own computer is off, asleep or offline. For anyone running an Expert Advisor on gold, it is the most reliable setup. This guide explains what to choose and how to set it up.

Why a trading bot needs a VPS

An Expert Advisor only works while MT5 is open and connected. On a home computer, that breaks easily: Windows updates, power cuts, internet drops, a laptop going to sleep. Each break can leave a trade unmanaged. A VPS removes most of those problems:

  • Always on: it runs 24/5 without your computer.
  • Stable connection: data centres have backup power and fast internet.
  • Lower delay: a VPS close to your broker's server fills orders faster.
  • Access from anywhere: you can check it from your phone or another computer.

What to look for in a VPS

  1. Windows. MT5 Expert Advisors need Windows (Windows Server is fine).
  2. Location near your broker's server. Many broker servers are in London, Amsterdam, New York or Singapore. Ask your broker which one, and choose a VPS in the same city if you can.
  3. Enough memory. 2 GB of RAM is usually enough for one or two MT5 terminals; more terminals need more.
  4. Reliability. Look for providers with a high uptime promise and support you can reach.
  5. Broker or MetaQuotes VPS. Some brokers offer a free VPS if you trade a certain amount, and MetaQuotes offers a virtual hosting service inside MT5. Both are worth checking.

Step-by-step setup

  1. Rent the VPS and receive its address, username and password.
  2. Connect using Remote Desktop on Windows (or the Microsoft Remote Desktop app on a Mac or phone).
  3. Install MT5 from your broker's website on the VPS, and log in to your trading account.
  4. Install your Expert Advisor. Follow our guide on how to install an Expert Advisor on MT5.
  5. Turn on Algo Trading and check the Experts tab for the "loaded successfully" message.
  6. Disconnect, do not log off. Close the Remote Desktop window with the X. If you choose "Sign out", MT5 closes too.

Keeping it healthy

  • Check once a day that MT5 is connected (bottom-right corner shows the connection).
  • Restart the VPS during the weekend, not during market hours.
  • Keep Windows updates scheduled for the weekend.
  • Do not install other heavy software on the trading VPS.

Do you need a VPS for BZ Trading Bots?

Not strictly. Both bots can run on your own computer while MT5 is open. But for gold, which trades through the night in many time zones, we recommend a VPS. When you start with BZ Dollar Machine or BZ Cent Machine, our team sets up MT5, the bot and the VPS for you by AnyDesk.

Related reading: Run a Gold Trading Bot From Your Phone and XAUUSD EA for MT5: Setup and Settings Explained.

Frequently asked questions

Can I run MT5 bots on my phone?

No. The MT5 mobile app can show trades and let you trade by hand, but Expert Advisors only run on the Windows terminal, at home or on a VPS.

Does a VPS make a bot more profitable?

Not by itself. It makes the bot more reliable and execution a little faster. The strategy still decides the results.

Choosing a gold bot? Read how to choose the best gold trading bot for the six bot types, 11 checks and red flags, and how to verify a trading bot's live results before you trust any account a seller shows you.

BZ Trading Bots
BZ Trading Bots
We build and test gold (XAUUSD) trading bots for MetaTrader 5. Every figure in our articles comes from our own MT5 Strategy Tester reports, shown in full on our Results page.

Risk warning: trading gold (XAUUSD) on margin is high risk and you can lose some or all of your deposit. Backtest results are not live results, and past performance does not guarantee future results. This article is general information, not investment advice.

More from the Blog