Install MetaTrader 4/5 on a VPS and keep EAs running
Install MT4 or MT5, log in to your trading account, add EAs and indicators, turn on algo trading and keep the terminal running after you disconnect.
- Beginner
- Admin RDP · Windows VPS
- 3 min read
MetaTrader 4 and MetaTrader 5 run well on a Windows VPS or Admin RDP, which keeps your terminal and Expert Advisors (EAs) online while your own computer is off. This guide installs the terminal, logs in to your trading account and checks that automated trading is really running.
1. Download the installer
Inside your RDP session, open a browser and download the terminal from your broker's website (most brokers provide their own MetaTrader build with their servers preconfigured) or from MetaQuotes, the developer of MetaTrader. Avoid unofficial download sites.
2. Install and log in
- Run the installer and accept the default folder unless you plan to run several terminals (see this guide).
- When the terminal opens, choose File → Login to Trade Account.
- Enter your account number and password, choose your broker's server from the list, and tick Save password so the terminal can log in again after a restart.
- Check the bottom-right corner of the terminal: it shows the connection status and, once connected, the ping to the trade server in milliseconds.
3. Copy in your EAs and indicators
- In the terminal, choose File → Open Data Folder.
- Copy EAs into
MQL5\Experts(MT5) orMQL4\Experts(MT4), and indicators into the matchingIndicatorsfolder. Transfer files to a Windows server shows how to get them onto the server. - In the Navigator panel, right-click and choose Refresh.
Only run EAs, indicators and DLLs from sources you trust. A file you run on the VPS has the same access to your trading account as you do.
4. Turn on automated trading
- Open Tools → Options → Expert Advisors and tick Allow algorithmic trading (MT5) or Allow automated trading (MT4). Tick Allow DLL imports only if your EA needs it and you trust it.
- Click the Algo Trading (MT5) or AutoTrading (MT4) button in the toolbar so it turns green.
- Drag the EA onto a chart and confirm its settings.
5. Check the EA is really running
- The chart's top-right corner shows the EA name and an icon. If the icon is grey or shows a frown, automated trading is not allowed for that EA: recheck step 4.
- The Experts and Journal tabs at the bottom show that the EA loaded and any errors.
6. Leave it running
Close the Remote Desktop window to disconnect; do not sign out, which closes the terminal. Minimising the terminal is fine. Read Keep apps running 24/7 on your RDP and set up auto-start after a reboot.
Troubleshooting
- "No connection" or "Invalid account": check the server name exactly matches what your broker gave you, and the account number and password.
- EA is loaded but not trading: check the Algo Trading button is green and read the Experts tab for errors.
Next steps
Was this guide helpful?
Still stuck?
Ask RunRacks AI for a quick answer, or open a ticket and our team will take a look at your server.
Related guides
Windows VPS & RDP
RunRacks RDP port 12230: how to connect to your Windows VPS and Admin RDP
RunRacks Windows VPS and Admin RDP servers accept Remote Desktop on port 12230, not 3389. Here is how to connect from every device and keep the port open.
- Beginner
- Windows VPS · Admin RDP
- 5 min read
Windows VPS & RDP
Allow or block multiple RDP sessions for one user
Understand why a new Remote Desktop login takes over your old session, how the single-session policy works on Windows Server, and which setting suits a team.
- Advanced
- Windows VPS
- 5 min read
Windows VPS & RDP
Create Windows users with Remote Desktop access
Give each person their own Windows login, add them to Remote Desktop Users, test the account and remove access cleanly later.
- Beginner
- Windows VPS · Admin RDP
- 2 min read