Skip to content
Wallet live · USDT TRC20 · USDT BEP20 · BTC · ETH · SOL · XMR Free SSL · Malware scan · Instant image 24/7 desk · @rexahost
RexaHostRexaHost

Forex VPS

How to Set Up MT5 on a Windows VPS: Step-by-Step Guide

· 5 min read

How to Set Up MT5 on a Windows VPS: Step-by-Step Guide

From first login to an EA trading around the clock: a complete, click-by-click walkthrough for installing and hardening MetaTrader 5 on a Windows VPS.

Key takeaways

  • Connect with Remote Desktop using the IP, username and password from your client area.
  • Install MT5 from your broker or MetaQuotes, log in with your trading account and check ping.
  • Enable Algo Trading, attach your EA and confirm the smiley/active icon on the chart.
  • Disconnect, do not sign out, so MT5 keeps running 24/7.
  • Add MT5 to Startup, schedule updates for weekends and lock down RDP access.

Setting up MetaTrader 5 on a VPS takes about twenty minutes. Doing it carefully the first time saves hours of missed trades later. This guide assumes you have a Windows VPS, such as a RexaHost Forex plan, and walks through every step from first login to a hardened, always-on trading terminal.

Before you start

  • Your VPS IP address, username (usually Administrator) and password from the client area.
  • Your broker's MT5 server name, login number and password.
  • Your EA files (.ex5) and any indicators or presets.
  • A strong new password ready to replace the initial one.

Step 1: Connect with Remote Desktop

From Windows

  1. Press Win + R, type mstsc and press Enter.
  2. Enter the VPS IP address and click Connect.
  3. Enter the username and password. Accept the certificate prompt the first time.

From macOS, Android or iPhone

Install Microsoft's Windows App (formerly Remote Desktop) from your app store, add a PC with the IP address and save your credentials. Our guide on connecting to RDP from Mac, Android and iPhone covers each platform.

Step 2: Secure the server first

  1. Change the password. Press Ctrl + Alt + End inside the session and choose Change a password. Use a long, unique password.
  2. Install updates. Settings → Update & Security → Check for updates. Restart once now, before markets matter.
  3. Set the time zone if you prefer local times in Windows (MT5 uses broker server time for charts anyway).
  4. Restrict RDP to your own IP if it is stable: Windows Defender Firewall → Advanced settings → Inbound Rules → Remote Desktop → Scope → add your IP.

Step 3: Download and install MT5

  1. Open Edge on the VPS and go to your broker's website, or the official MetaTrader 5 download page.
  2. Download the Windows installer and run it.
  3. Click Settings in the installer if you want a custom folder name, for example C:\MT5-BrokerA. This helps when you run several terminals.
  4. Finish the installation. MT5 opens automatically.

Step 4: Log in to your trading account

  1. File → Login to Trade Account.
  2. Enter your login number and password, and choose the exact server name your broker gave you. If it is not listed, type it in the search box.
  3. Tick "Save password" so the terminal can reconnect after restarts.
  4. Check the bottom-right corner: you should see a ping value and the connection bars.

If the ping is high, your VPS may be far from the broker's server. Compare locations using our guide to Forex VPS near London and Amsterdam brokers.

Step 5: Install your EA and indicators

  1. In MT5, click File → Open Data Folder.
  2. Copy your .ex5 EA files into MQL5\Experts and indicators into MQL5\Indicators. Copy files from your PC by pasting into the RDP window (clipboard sharing) or via a shared drive.
  3. Return to MT5, right-click Expert Advisors in the Navigator and choose Refresh.
  4. Open the chart and timeframe your EA needs.
  5. Drag the EA onto the chart. In the dialog, tick Allow Algo Trading and load your preset (.set) file if you have one.
  6. Click the Algo Trading button in the toolbar so it turns green.
  7. Check the top-right of the chart: the EA icon should show it is active.

Step 6: Optimise MT5 for a VPS

  • Tools → Options → Charts: reduce "Max bars in chart" to what your strategy needs. This saves memory.
  • Close unused charts and hide unused symbols in Market Watch.
  • Disable news and sounds if you do not need them (Tools → Options → Server and Events).
  • Turn off chart shifting and visual extras on charts nobody watches.

Step 7: Keep MT5 running 24/7

Disconnect, do not sign out

Close the Remote Desktop window with the X, or choose Disconnect. Your session, and MT5, keep running. Choosing Sign out ends the session and closes the terminal.

Auto-start after a reboot

  1. Press Win + R and type shell:startup.
  2. Create a shortcut to terminal64.exe from your MT5 folder inside the Startup folder.
  3. After a reboot, connect once via RDP to start your session; MT5 then launches automatically and reattaches EAs to the charts from the last saved profile.

Control Windows Update restarts

Set active hours that cover market hours, and plan manual restarts for weekends. An unplanned restart mid-week can stop your EA until you reconnect.

Step 8: Running several terminals

MethodHowBest for
Separate installsRun the installer again and choose a new folder each timeDifferent brokers or accounts
Portable modeCopy the MT5 folder and start terminal64.exe /portableMany accounts at one broker

Each terminal adds memory. As a rough guide, Forex Trade (2 GB) suits one or two terminals, Forex Pro (4 GB) three or four, and Forex Multi (8 GB) larger setups. Our Forex VPS sizing guide explains the maths.

Step 9: Monitoring

  • Enable push notifications in MT5 (Tools → Options → Notifications) with your MetaQuotes ID from the mobile app, so the terminal can alert your phone.
  • Check the Experts and Journal tabs daily for errors.
  • Open Task Manager weekly to confirm memory is below about 80%.

Step 10: Back up your setup

Once everything works, protect it. A clean backup means you can rebuild on a new server in minutes rather than hours.

  1. In MT5, save your chart layout as a profile: File → Profiles → Save As.
  2. Save each EA's inputs as a .set file from the EA properties dialog.
  3. Copy the whole Data Folder (File → Open Data Folder) to a zip archive.
  4. Download the archive to your own computer or cloud storage. Repeat after any significant change.

Security habits that protect your account

  • Never store your broker's master password in a text file on the desktop.
  • Do not install unknown "free EAs" or cracked indicators; they are a common source of malware.
  • Keep Windows Defender enabled and updated.
  • Use a separate, unique password for the VPS and for your client area.
  • If you share the VPS with a signal provider or manager, create a separate Windows user rather than sharing the Administrator login.

Troubleshooting

ProblemLikely causeFix
"No connection"Wrong server name or passwordRe-enter login; search for the exact server
EA not tradingAlgo Trading off, or EA settings disallow itEnable both toolbar button and EA checkbox
"Trade is disabled"Investor (read-only) password usedLog in with the master password
Terminal closed overnightSigned out or Windows restartedDisconnect only; add Startup shortcut; schedule updates
Slow, laggy terminalMemory pressureReduce bars and charts, or upgrade the plan

A weekly maintenance routine

Ten minutes each weekend keeps the server healthy: connect, install pending Windows updates, restart, wait for MT5 to reload, confirm every EA shows as active, and check the Journal for errors from the past week. Small, regular checks catch problems long before they cost a trade.

Recommended plans

  • Forex Trade: 1 vCPU / 2 GB / 60 GB, $5.98 a month.
  • Forex Pro: 2 vCPU / 4 GB / 120 GB, $11.58 a month.
  • Forex Multi: 4 vCPU / 8 GB / 240 GB, $21.18 a month.

All run Windows Server 2019 or 2022 with full administrator access and a dedicated static IP, in the UK, Netherlands or Germany. Choose yours on the Forex VPS page and follow these steps to be trading within the hour.

Frequently asked questions

Can I install MT5 from my broker instead of MetaQuotes?

Yes. Many brokers provide their own branded MT5 installer with their servers preconfigured. Use it if your broker recommends it.

Will my EA keep running if I close Remote Desktop?

Yes, if you disconnect by closing the window. If you sign out, your session ends and MT5 closes. Always disconnect rather than sign out.

How do I make MT5 start after a reboot?

Place a shortcut to terminal64.exe in the Windows Startup folder, and configure automatic sign-in only if you understand the security trade-off. Otherwise, reconnect after planned reboots.

Can I run multiple MT5 terminals on one VPS?

Yes. Install each terminal into its own folder, or copy an installation and run it with the /portable switch, so settings and EAs stay separate.

What ping should I expect to my broker?

It depends on where the broker hosts its trade server and where your VPS is. Choosing the nearest location minimises it. Check the value in MT5's connection status after logging in.

#mt5 setup#metatrader 5#windows vps#forex vps#expert advisor#rdp

Plans in this article

Servers mentioned here

Forex Trade

Standard
$4.99 /mo
$10.38Save 52% billed monthly
  • 1 vCPU
  • 2 GB RAM
  • 60 GB NVMe
  • 3 TB traffic
  • Full Administrator · dedicated IPv4
  • London · Amsterdam · Frankfurt
Most popular

Forex Pro

Standard
$9.79 /mo
$28.80Save 66% billed monthly
  • 2 vCPU
  • 4 GB RAM
  • 120 GB NVMe
  • 5 TB traffic
  • Full Administrator · dedicated IPv4
  • London · Amsterdam · Frankfurt

Forex Multi

Standard
$17.99 /mo
$42.04Save 57% billed monthly
  • 4 vCPU
  • 8 GB RAM
  • 240 GB NVMe
  • 7 TB traffic
  • Full Administrator · dedicated IPv4
  • London · Amsterdam · Frankfurt

Keep reading

Related articles

Live Chat · offline