tocOn this page 9 sections
- Why a second install overwrites the first
- Plan the folder layout
- Method 1: Install each terminal to its own folder
- Method 2: Copy a clean install
- Create a /portable shortcut for each terminal
- Configure each terminal separately
- Identify running terminals from PowerShell
- Start every terminal after a reboot
- FAQ
To run several MT4 terminals on one VPS without overwriting each other, give each one its own folder (for example C:\MT4\BrokerA-Live-1) through the installer's Settings button or by copying a clean install, and start every copy as terminal.exe /portable. Each terminal then keeps its login, charts, EAs and logs inside its own folder, and an update or reinstall of one leaves the others alone. Below are the folder layout, PowerShell scripts and checks for doing this on a Windows Server VPS over RDP.
Why a second install overwrites the first
The MT4 installer defaults to C:\Program Files (x86)\<Broker> MT4 Terminal. Run the same broker's installer again, click Next, and it reinstalls into that same folder. You get one terminal, not two, and both shortcuts point to the same MQL4, profiles and config directories.
Without /portable, MT4 stores working data in %APPDATA%\MetaQuotes\Terminal\<32-character ID>, where the ID is derived from the install path. Different paths stay separate, but the data sits in a hidden profile folder that is easy to miss in backups. Portable mode puts everything next to terminal.exe.
Plan the folder layout
Keep terminals out of Program Files. It is write-protected for standard users, and Windows silently redirects blocked writes to %LOCALAPPDATA%\VirtualStore, so an EA's files can end up somewhere you never look. Use a short path instead:
C:\MT4\BrokerA-Live-1
C:\MT4\BrokerA-Live-2
C:\MT4\BrokerB-Demo
Name folders by broker and account. The MT4 title bar shows the account number and server, not the folder path.
Method 1: Install each terminal to its own folder
- Download the broker's MT4 installer inside your RDP session.
- Run it and click Settings on the license screen instead of Next.
- Set Installation folder to C:\MT4\BrokerA-Live-1 and Program group to BrokerA-Live-1.
- Untick the option to launch the terminal at the end, or close it if it opens.
- Repeat with a new folder name for every terminal.
Method 2: Copy a clean install
For several terminals from one broker, install once, close it before logging in, and clone the folder:
$src = 'C:\MT4\BrokerA-Live-1'
2..4 | ForEach-Object {
robocopy $src "C:\MT4\BrokerA-Live-$_" /E /R:1 /W:1 /NFL /NDL
}
/E copies all subfolders, including empty ones such as MQL4\Files. Copy before the first login; a folder copied after login carries the saved account and chart profile into every clone.
Create a /portable shortcut for each terminal
$shell = New-Object -ComObject WScript.Shell
Get-ChildItem 'C:\MT4' -Directory |
Where-Object { Test-Path (Join-Path $_.FullName 'terminal.exe') } |
ForEach-Object {
$lnk = $shell.CreateShortcut("$env:USERPROFILE\Desktop\$($_.Name).lnk")
$lnk.TargetPath = Join-Path $_.FullName 'terminal.exe'
$lnk.Arguments = '/portable'
$lnk.WorkingDirectory = $_.FullName
$lnk.Save()
}
Start terminals only from these shortcuts. One launch without the switch reads data from AppData instead, and you see empty charts and no login. Confirm with File > Open Data Folder: it must open the terminal's own folder under C:\MT4.
Configure each terminal separately
- Login: File > Login to Trade Account, enter the account and server, tick Save account information.
- EAs: copy .ex4 files to C:\MT4\<folder>\MQL4\Experts and indicators to MQL4\Indicators, then right-click Expert Advisors in the Navigator (Ctrl+N) and choose Refresh.
- Automated trading: in Tools > Options > Expert Advisors, tick Allow automated trading, and Allow DLL imports only if an EA needs it. These are per terminal.
- Memory: in Tools > Options > Charts, drop Max bars in history and Max bars in chart to around 50000 each unless an EA needs more history, and close idle charts. Restart the terminal to apply.
To bring templates, profiles and EAs over from a PC, follow moving MT4/MT5 to a VPS with every EA and template.
Identify running terminals from PowerShell
Every MT4 process is called terminal.exe, so list the path and arguments plus memory use:
Get-CimInstance Win32_Process -Filter "Name='terminal.exe'" |
Select-Object ProcessId, ExecutablePath, CommandLine,
@{n='RAM_MB';e={[math]::Round($_.WorkingSetSize/1MB)}}
A row with no /portable in CommandLine was started the wrong way. Close it from its window, not with Stop-Process, so it saves its state, then relaunch from the shortcut. Two rows with the same ExecutablePath mean one folder is running twice.
Start every terminal after a reboot
Launching all terminals at once spikes CPU and disk. Save this as C:\MT4\start-all.ps1 to stagger them by 20 seconds:
Get-ChildItem 'C:\MT4' -Directory |
Where-Object { Test-Path (Join-Path $_.FullName 'terminal.exe') } |
ForEach-Object {
Start-Process -FilePath (Join-Path $_.FullName 'terminal.exe') `
-ArgumentList '/portable' -WorkingDirectory $_.FullName
Start-Sleep -Seconds 20
}
Point a shortcut in shell:startup at powershell.exe -ExecutionPolicy Bypass -File C:\MT4\start-all.ps1 so it runs when the trading user signs in. For auto sign-in after Windows Update restarts, see auto-restarting MT4 and MT5 after update reboots; to check RAM before adding terminals, read sizing a VPS for multiple terminals. Plans and locations near your broker are on our Windows VPS for forex trading page.
FAQ
Can two terminals log in to the same account?
Usually, if the broker allows concurrent sessions, but never let two EAs manage the same positions. One account per terminal keeps trade history traceable.
Does a live update in one terminal update the others?
No. Each folder has its own terminal.exe and updates independently, so builds can differ for a while. Check the build under Help > About.
Can I mix brokers on one VPS?
Yes. Give each broker's terminal its own C:\MT4\Broker-Account folder and the same /portable shortcut and they will not conflict.
Run this on your own Windows VPS
Get a Windows VPS from WindowsVPS in about 60 seconds, with full Administrator access over RDP, NVMe storage and the Windows license included.
Written by the WindowsVPS Team
We run Windows Server VPS hosting and write these guides from the same setups our customers use: RDP, PowerShell, trading terminals and always-on bots. Questions about a guide? Contact us.