MetaTrader VPS Setup Guide for Beginners
Setting up MetaTrader on a VPS is one of the best moves you can make as a forex trader running expert advisors (EAs). The process takes about 30 minutes: connect to your VPS, install MetaTrader, log in to your broker, and transfer your EAs. Once running, your strategies execute 24/5 without your home computer being involved at all.
Step 1: Get Your VPS Ready
You need a Windows VPS with these minimum specs:
- 1 to 2 CPU cores (2 cores recommended)
- 2 to 4 GB RAM (2 GB for one MT4 instance, 4 GB for MT5 or multiple instances)
- 30 to 60 GB SSD storage
- Windows Server 2019 or 2022
If you don’t have a VPS yet, check our VPS setup guide for provider recommendations and detailed configuration steps.
Connect to your VPS using Remote Desktop. On Windows, search for “Remote Desktop Connection.” On Mac, download Microsoft Remote Desktop. Enter your VPS IP address and credentials provided by your hosting company.
Step 2: Install MetaTrader
Open a browser on the VPS (Internet Explorer or Edge comes pre-installed on Windows Server) and download MetaTrader directly from your broker’s website. Don’t transfer the installer from your home PC because brokers often bundle their server configurations into their version of the installer.
Run the installer and follow the prompts. When MetaTrader opens, log in with your broker account credentials. The platform will connect to your broker’s server and start downloading price data.
Pro tip: If you run multiple accounts, install MetaTrader in separate folders. For example: C:\MT4_Account1 and C:\MT4_Account2. Each instance operates independently.
Step 3: Transfer Your Expert Advisors and Settings
To move EAs from your home PC to the VPS:
- On your home PC, open MetaTrader and go to File, then Open Data Folder
- Copy the contents of the
MQL4/Expertsfolder (orMQL5/Expertsfor MT5) - Transfer these files to the same location on your VPS MetaTrader installation
- Also copy any custom indicators from
MQL4/Indicatorsand templates fromTemplates
You can transfer files using copy-paste through Remote Desktop (enable clipboard sharing in your RDP settings) or upload them through a cloud service like Google Drive.
After copying, restart MetaTrader on the VPS. Your EAs should appear in the Navigator panel.
Step 4: Configure and Enable Your EAs
Attach your EA to a chart just like you would on your home PC:
- Open the correct chart (right instrument, right timeframe)
- Drag the EA from the Navigator panel onto the chart
- In the EA settings window, configure your parameters (lot size, stop loss, take profit, etc.)
- Check “Allow live trading” and “Allow DLL imports” if your EA requires it
- Click the “AutoTrading” button in the toolbar to enable automated trading globally
Verify the EA is active: you should see a smiley face icon in the top-right corner of the chart. A frowning face means the EA is loaded but not allowed to trade.
Optimization Tips for 24/7 Operation
Keep MetaTrader running smoothly on your VPS:
- Reduce chart history. In Tools, Options, Charts, lower “Max bars in chart” to 5,000 to 10,000. Less data in memory means better performance.
- Close charts you don’t need. Every open chart consumes RAM.
- Disable news alerts and email notifications on the VPS if you receive them on your phone already.
- Set Windows power plan to High Performance to prevent the VPS from throttling.
- Schedule weekly restarts (Sunday evening before markets open) using Windows Task Scheduler to clear memory leaks.
Monitor your VPS uptime and set up external alerts so you know immediately if it goes offline.
Key Takeaways
- Install MetaTrader on the VPS directly from your broker’s download page
- Transfer EAs by copying files from your home PC’s MQL4/Experts folder to the VPS
- Enable AutoTrading and verify the smiley face icon confirms your EA is active
- Optimize by reducing chart history, closing unused charts, and scheduling weekly restarts
- A 2 GB RAM VPS handles one MT4 instance; 4 GB is better for MT5 or multiple instances
Frequently Asked Questions
Can I run MT4 and MT5 on the same VPS? Yes. Install them in separate directories. You’ll need at least 4 GB RAM to run both comfortably, especially if each has active EAs.
My EA works on my PC but not on the VPS. What’s wrong? Common causes: DLL imports not enabled in EA settings, different MetaTrader build version, or missing custom indicator files. Verify all dependencies are transferred and EA permissions are set correctly.
Does MetaTrader have its own VPS service? MetaQuotes offers a built-in VPS feature directly within MT4/MT5. It’s convenient but limited in customization. For more control, a standalone VPS from a third-party provider is usually better.
Risk Disclaimer: Trading involves substantial risk of loss. Past performance is not indicative of future results. See our full risk disclaimer.