On this pageWhy run several terminals
One MetaTrader terminal connects to one trading account at a time. Trade with two brokers, keep a demo next to a live account, or separate two families of Expert Advisors, and you need several terminals. A single Windows server can run them side by side, provided each one has its own folder, you can tell them apart at a glance, they come back after a reboot, and the server has the memory they actually use. This guide covers each of those, plus the settings that make every terminal lighter.
Why run several terminals
- Several brokers or accounts. Each account needs its own logged-in terminal.
- Demo next to live. A new EA version can run on demo while the current one trades.
- Isolation. If one terminal freezes or a faulty indicator crashes it, the EAs in the other terminals keep running.
- MT4 and MT5 together. They are separate programs and coexist without conflict.
Rule one: one folder per terminal
MetaTrader refuses to start two copies from the same installation folder at the same time. Each terminal therefore needs its own folder, and there are two ways to get one:
- Install again. Run the broker's installer once per terminal and, under Settings, choose a new folder each time.
- Copy and go portable. Copy an existing installation folder and start each copy with the
/portablekey, which keeps its data (charts, programs, logs) inside that folder instead of in your Windows profile.
Portable copies are easier to back up and to move, since one folder holds everything. Name the folders after broker, account type and purpose so that a path tells you which terminal it is:
C:\MT\BrokerA-Live
C:\MT\BrokerA-Demo
C:\MT\BrokerB-Live
A short PowerShell loop then creates a desktop shortcut for each, with the /portable key built in. For MT5, use terminal64.exe instead of terminal.exe:
$shell = New-Object -ComObject WScript.Shell
foreach ($f in "C:\MT\BrokerA-Live", "C:\MT\BrokerA-Demo", "C:\MT\BrokerB-Live") {
$lnk = $shell.CreateShortcut("$env:USERPROFILE\Desktop\$(Split-Path $f -Leaf).lnk")
$lnk.TargetPath = "$f\terminal.exe"
$lnk.Arguments = "/portable"
$lnk.WorkingDirectory = $f
$lnk.Save()
}
Tell them apart
Mistakes with several terminals are rarely technical; they are a click in the wrong window. A few habits prevent them:
- Read the title bar. It shows the account number and the server, which is the quickest check before you place a manual trade.
- Give demo terminals a different chart template, a light background for example, so a demo chart never looks like a live one.
- Keep one job per terminal. A terminal that only runs one strategy family is easier to reason about and to restart.
- Keep each account in one terminal. Most brokers let the same account log in twice, but two copies of an EA on one account will both act on the same signal.
Start them again after a reboot
Terminals are desktop programs, so they need a signed-in Windows session: sign in after each restart, or configure automatic sign-in. Starting several heavy terminals in the same second makes them all compete for CPU while they reload charts, so a small script that starts them one after another works better than a pile of shortcuts in the Startup folder. Save it as C:\MT\start-terminals.ps1:
foreach ($f in "C:\MT\BrokerA-Live", "C:\MT\BrokerA-Demo", "C:\MT\BrokerB-Live") {
Start-Process -FilePath "$f\terminal.exe" -ArgumentList "/portable" -WorkingDirectory $f
Start-Sleep -Seconds 30
}
Then register it to run each time you sign in:
$action = New-ScheduledTaskAction -Execute "powershell.exe" `
-Argument "-NoProfile -ExecutionPolicy Bypass -File C:\MT\start-terminals.ps1"
$trigger = New-ScheduledTaskTrigger -AtLogOn -User $env:USERNAME
Register-ScheduledTask -TaskName "Start MetaTrader terminals" -Action $action -Trigger $trigger
After the next restart, check each terminal's Experts tab to confirm its EAs loaded, and that AutoTrading is on where it should be.
Measure what each terminal costs
How much memory a terminal uses depends on its charts, symbols, indicators and EAs, so measure rather than guess. This lists every running terminal with its memory, CPU time and folder, largest first:
Get-Process terminal, terminal64 -ErrorAction SilentlyContinue |
Select-Object Id,
@{n = 'MB'; e = { [math]::Round($_.WorkingSet64 / 1MB) } },
@{n = 'CPU s'; e = { [math]::Round($_.CPU) } },
Path |
Sort-Object MB -Descending
And this shows how much memory the server has left:
$os = Get-CimInstance Win32_OperatingSystem
"{0:N0} MB free of {1:N0} MB" -f ($os.FreePhysicalMemory / 1KB), ($os.TotalVisibleMemorySize / 1KB)
Take the readings during busy market hours, not on a quiet Sunday, and leave headroom for Windows, updates and the Remote Desktop session itself. Repeat after adding charts or EAs: memory use grows with what you load.
Make each terminal lighter
Most of a terminal's load comes from charts and the indicators on them, which recalculate as ticks arrive. These settings trim it without changing what your EAs do:
| Setting | Where | Effect |
|---|---|---|
| Max bars in chart | Tools > Options > Charts | Fewer bars held in memory and recalculated by indicators |
| Max bars in history | Tools > Options > Charts (MT4) | Less history stored on disk |
| Unused charts | Close them | Their indicators stop working on every tick |
| Unused symbols | Market Watch, right-click, Hide | The terminal stops processing their quotes |
| News | Tools > Options > Server | Less incoming data, if you do not read it there |
| Sounds | Tools > Options > Events | No audio events on a server nobody listens to |
Two cautions. First, an EA that reads a long history needs enough bars on its chart, so lower Max bars in chart step by step and check the EA still initializes. In MT5 the minimum is 5,000 and a restart applies the change. Second, a symbol an EA trades or reads must stay in Market Watch.
Heavy jobs belong elsewhere. The MT5 Strategy Tester spreads optimization over every core through local agents, which is good for the test and bad for the live terminals sharing those cores. Run long optimizations at quiet hours or on a separate machine.
Back up every terminal in one pass
With portable folders, everything a terminal needs sits under its own directory, so a backup of all of them is one loop. For MT5 folders, replace MQL4 with MQL5:
$stamp = Get-Date -Format "yyyyMMdd"
New-Item -ItemType Directory -Force -Path C:\Backups | Out-Null
foreach ($f in Get-ChildItem C:\MT -Directory) {
Compress-Archive -Force -DestinationPath "C:\Backups\$($f.Name)-$stamp.zip" `
-Path "$($f.FullName)\MQL4", "$($f.FullName)\templates", "$($f.FullName)\profiles"
}
Run it when markets are quiet. A terminal that is writing a file while the archive is built can leave that file locked or half-written, so a weekend run with the terminals closed gives the cleanest copy. Copy the archives off the server as well, because a backup on the same disk does not survive the loss of that disk.
When one server is not enough
Signs of a full server: free memory near zero during busy hours, CPU pinned at 100%, charts that lag behind the market or terminals that stop responding. You can add capacity or split the load. On CloudSat, resizing to a bigger plan keeps the same server and data. Splitting makes sense when your brokers' trade servers sit in different cities: a terminal belongs near its own broker, so two brokers in London and New York may be better served by two smaller servers, one in each region.
FAQ
How many terminals can one VPS run?
As many as its memory and CPU carry with headroom. A terminal with two charts and a light EA needs far less than one with forty charts of indicators. Measure yours under load, add them up, and leave a margin.
Can MT4 and MT5 run on the same server?
Yes. They are separate programs with separate data folders, and each connects to its own account.
Can one terminal log in to two accounts at once?
No. A terminal holds one account connection at a time. Switching accounts in the same terminal disconnects the first one, and its EAs stop trading it.
Do all terminals update together?
No. Each terminal checks for updates when it connects and applies them at its own next restart, so plan a restart for each one after a new build appears in its Journal.
Trading involves risk of loss. Nothing in this article is financial advice.
Run it on CloudSat. Cloud VPS on AMD EPYC and NVMe from $1.98/mo in 13 regions, delivered in under 5 minutes and paid in crypto. See plans or deploy a server.




