Most traders install MetaTrader, click through the installer and never think about where their data actually lives. That comes back to bite you the day you add a second broker, want to reorganise your EAs, or switch VPS provider. Suddenly you're hunting for set files in cryptic AppData folders, you can't remember which terminal belongs to which account, and you end up rebuilding everything by hand.
Portable mode fixes this with a single launch parameter. This guide explains exactly what it does, how to set it up for MT4 and MT5, and how it lets you move house in minutes later on.
The Problem: Where MetaTrader Hides Your Data
Since MT4 build 600 (and in MT5 from day one), MetaTrader splits things across two locations:
- The installation folder, e.g.
C:\Program Files\IC Markets MetaTrader 5\. It only holds the program files. - The data folder under
C:\Users\<Name>\AppData\Roaming\MetaQuotes\Terminal\<ID>\. This is where everything that is yours lives: EAs, indicators, set files, chart profiles, templates, logs, saved settings.
The <ID> is a 32-character string like D0E8209F77C8CF37AD8BF550E51FF075. Install three terminals and you get three of these folders – with nothing telling you which belongs to which broker. AppData is also hidden by default.
With a single terminal on a home PC, that's tolerable. With a VPS running several accounts, an EA portfolio spread across brokers, or a planned migration, it gets messy fast.
What Portable Mode Does
Launch MetaTrader with the /portable parameter and the terminal writes all of its data into its own installation folder. No hidden twin in AppData. The folder then contains everything:
C:\Trading\ICMarkets-MT5-Live\
├── terminal64.exe
├── MQL5\
│ ├── Experts\ ← your EAs (.ex5 / .mq5)
│ ├── Indicators\
│ ├── Presets\ ← set files
│ ├── Files\ ← files EAs write themselves
│ └── Logs\
├── Profiles\ ← chart profiles, templates
├── config\ ← terminal settings
├── bases\ ← price history
└── logs\ ← terminal journal
In MT4 the executable is terminal.exe and the subfolder is MQL4 instead of MQL5; the principle is identical.
The upshot: one terminal is one folder. You can back it up, copy it, rename it, move it to another machine – and everything inside comes along.
Normal mode
C:\ Program Files\ IC Markets MetaTrader 5\Program files only
C:\ Users\ …\ AppData\ Roaming\ MetaQuotes\ Terminal\ D0E8209F77C8…\Your data – hidden (hidden)
Two locations, cryptic ID
Portable mode
C:\ Trading\ ICMarkets-MT5-Live\Program + all data in one folder
One terminal = one folder
Why Every EA Trader Should Use Portable Mode
1. Clarity across multiple terminals. The folder name tells you what runs inside: ICMarkets-MT5-Live, Pepperstone-MT4-Demo, FTMO-Challenge-100k. No more guessing at IDs.
2. Several instances of the same broker. Want to run two accounts with the same broker in parallel, each with different EAs? Just copy the folder. Every copy is an independent instance with its own settings.
3. One-click backups. Zip the folder, done. The backup really does contain everything – including the set file you saved three months ago after a long optimisation run and could never recreate.
4. VPS moves in minutes, not hours. This is the real reason the effort pays off. Switching provider becomes "copy the folder, create a shortcut, launch". More on that below.
5. Restructure without risk. Want to spread your EAs across several terminals so one frozen chart can't block everything? Set up a test terminal next to the live one? With portable folders, you copy a working terminal as a template and change only what's different.
6. Easier troubleshooting. Logs, journal and EA output are where you expect them. When an EA didn't trade overnight you find the reason faster – which matters if you want to understand why EAs fail live.
Requirements
- Windows (local or on a VPS) – MT4 and MT5 are Windows programs.
- An installation folder outside
C:\Program Files. According to MetaQuotes, portable mode there needs administrator rights and User Account Control (UAC) switched off. You don't want that. A dedicated folder such asC:\Trading\avoids the problem entirely. - Write permission on that folder – which you already have as a normal user for your own folder on
C:\.
Step by Step: Setting Up Portable Mode
Step 1: Create a folder structure
Create a central folder, e.g. C:\Trading\. Inside it, each terminal gets its own descriptive subfolder. A proven scheme:
C:\Trading\
├── ICMarkets-MT5-Live-12345678\
├── ICMarkets-MT5-Demo-87654321\
├── Pepperstone-MT4-Live-11223344\
└── _Backups\
Broker, platform, account type and account number in the name – and a year from now it's still obvious what runs where.
Step 2: Install the terminal into the new folder
Run your broker's installer. In the first window, don't click "Next" straight away – click "Settings". There you can change the installation path: enter your folder, e.g. C:\Trading\ICMarkets-MT5-Live-12345678.
After installing, the installer launches the terminal automatically – close it again immediately without logging in. That first launch still runs in normal mode.
Terminal already installed? No problem. Copy the entire installation folder to the new location. You'll bring over the data from the old AppData folder in step 5.
Step 3: Create a shortcut with /portable
- Open your new terminal folder in Explorer.
- Right-click
terminal64.exe(MT5) orterminal.exe(MT4) → Create shortcut. - Right-click the new shortcut → Properties.
- In the Target field, after the closing quote, add a space and
/portable:
"C:\Trading\ICMarkets-MT5-Live-12345678\terminal64.exe" /portable
- Give the shortcut a sensible name (e.g. "IC Markets MT5 Live") and put it on the desktop.
Important: From now on, launch this terminal only through this shortcut. The Start menu and desktop entries the installer created don't know about the parameter – delete them so you never launch in normal mode by accident.
Step 4: Launch and verify
Start the terminal from the new shortcut and check where it writes via File → Open Data Folder:
- It opens
C:\Trading\ICMarkets-MT5-Live-12345678\→ portable mode is active. - It opens a folder under
AppData\Roaming\MetaQuotes\Terminal\...→ the parameter isn't being applied. Check the shortcut's Target field (space before/portable, quotes in the right place).
Portable mode active
C:\ Trading\ ICMarkets-MT5-Live\The installation folder itself opens.
Normal mode
C:\ Users\ …\ AppData\ Roaming\ MetaQuotes\ Terminal\ D0E8209F77C8…\Check the shortcut: space before /portable? Launched from the right shortcut?
On the first portable launch, MetaTrader creates the subfolders (MQL5, Profiles, config …) inside the installation folder. Now log in, open charts, attach EAs – everything lands in the right folder from here on.
Step 5: Bring over existing data (only when converting)
If you used the terminal in normal mode before, your EAs and set files are still in the old data folder:
- Launch the old terminal normally → File → Open Data Folder → you land in the AppData folder. Close the terminal.
- From that folder, copy the
MQL5(orMQL4),Profilesandtemplates(if present) subfolders into your new portable folder, overwriting existing files. - Launch the terminal through the
/portableshortcut and check in the Navigator that all EAs and indicators are there.
You don't need to bring the price history (bases or history) – the terminal re-downloads it when it connects.
Step 6: Auto-start after a reboot
On a VPS, terminal and EAs have to come back on their own after every Windows restart:
- Press
Windows + R, typeshell:startup, press Enter. - Copy your
/portableshortcuts into this Startup folder. - In the terminal, enable "Save personal settings" under Tools → Options → Server so the login persists, and tick "Allow algorithmic trading" under Expert Advisors.
For Windows to log in by itself after an update reboot, automatic user sign-in also has to be set up on the VPS – many forex VPS providers ship with this preconfigured or document it in their help pages.
Adding More Terminals
For each additional terminal, repeat steps 2 to 4 with a new folder. For a second account with the same broker it's even quicker:
- Copy the finished folder and rename it (e.g.
ICMarkets-MT5-Live-99887766). - Create a new
/portableshortcut to theterminal64.exeinside the copy. - Launch, log in with the other account, adjust charts and EAs.
How many terminals a VPS can carry depends mostly on RAM. You'll find the guideline figures in the VPS guide.
The Real Payoff: Switching VPS in 20 Minutes
Sooner or later you'll switch VPS: because the old provider is too slow, because your new broker sits in a different data centre, because it's cheaper elsewhere, or because your portfolio needs more RAM. Without portable mode, that means reinstalling every terminal, copying every EA again, hunting down every set file and rebuilding every chart profile. With portable mode, the move looks like this:
Preparation
- Book the new VPS – ideally in the same data centre as your broker (for most forex brokers that's Equinix NY4 in New York or LD4 in London). The providers we recommend and use ourselves are in the VPS comparison.
- Pick a quiet window – the weekend is best. Open positions aren't a problem, but no EA should be in the middle of a decision.
The move
- Close all terminals on the old VPS. Don't just stop the EA – shut the terminal down completely so every file is written cleanly.
- Zip
C:\Trading\(right-click → Send to → Compressed (zipped) folder). You can delete the price history inbasesfirst to keep the file small. - Transfer the ZIP to the new VPS – via copy-and-paste over the Remote Desktop connection, a local drive shared in the RDP client, or cloud storage.
- Unzip to
C:\Trading\on the new VPS – the same path as before, so every path in shortcuts and configs still matches. - Recreate the
/portableshortcuts (step 3) and put them in Startup (step 6). Shortcuts contain absolute paths and are best created fresh after a move. - Launch the terminals and confirm via File → Open Data Folder that they run portable. On a new machine you'll usually have to enter login details again – keep account numbers and passwords to hand.
- Check: the Experts and Journal tabs should show no errors, every EA should show the active algo-trading icon in the top-right corner of its chart, and the latency in the bottom-right corner should match the new location.
Old VPS
- 1Close every terminal completely
- 2Zip C:\Trading\
Transfer
RDP copy, local drive or cloud
New VPS
- 3Unzip to C:\Trading\ (same path)
- 4Create /portable shortcuts + Startup
- 5Launch, log in, check data folder & journal
Never run both VPS at once – the EAs would trade twice.
Re-activate MQL5 Market EAs on the new VPS via Market → Purchased.
The two traps when moving
Never run two terminals with the same EAs at the same time. If old and new VPS run in parallel, both EAs open positions – double the risk, double the lots. So: shut down the old VPS first, then start the new one. Only cancel the old provider once the new one has run stably for a few days, but keep the old terminals switched off.
Re-activate MQL5 Market EAs. Products bought on the Market are bound to the specific machine on activation. A copied .ex5 won't run on the new VPS. Reinstall them in the terminal via Market → Purchased. Every installation on a new machine uses one activation – every paid product has at least five. On the same machine, however, you may use a Market product in as many terminals as you like. EAs bought outside the Market are usually tied to the account number and keep running after copying – if in doubt, check the vendor's licence terms.
Common Mistakes
- Installing under
C:\Program Files. Portable mode then requires admin rights and UAC switched off. Use your own folder. - Forgetting the space.
terminal64.exe"/portabledoesn't work – it has to beterminal64.exe" /portable. - Launching from the wrong shortcut. Open it once from the Start menu and the terminal creates an AppData folder again, and you wonder where your EAs went. Delete the old shortcuts.
- Overlooking the common folder. EAs that save data with the
FILE_COMMONflag write toAppData\Roaming\MetaQuotes\Terminal\Common\Files– even in portable mode. If one of your EAs uses that folder (the manual usually says so), bring it along separately when you move. - Copying a running terminal. A ZIP of a running terminal can contain half-written files. Always close it first.
When You Don't Need Portable Mode
If you have exactly one terminal on your home PC, trade manually and never plan to move, portable mode won't do much for you. But as soon as one EA runs permanently, a second account joins, or a VPS is involved, it pays for itself. Setting it up takes ten minutes once – an improvised move without it costs you an evening and, at worst, lost set files.
Finding the Right VPS
Portable mode makes you independent of your VPS provider. That makes choosing the right one all the more worthwhile – switching is no longer a drama, but every move still takes time:
- VPS comparison 2026: every relevant forex VPS provider with locations, latency and prices.
- Hyonix review: four of our eleven own servers run on Hyonix – from USD 6.50 a month including the Windows licence, with Equinix NY4 as a selectable location. Go to Hyonix (partner link).
- ForexVPS.net (partner link) and NYCServers (partner link): the alternatives for London brokers (LD4) and anyone who wants managed support.
- Brokers with a free VPS: some brokers provide a free VPS above a certain volume – ideal for starting a portable setup at no extra cost.
- VPS for EAs: how much RAM and CPU you need per terminal and what matters for latency.
Partner links are marked: if you sign up through them, we earn a commission and your price stays the same. We recommend these providers because we use them ourselves.
Conclusion
Portable mode is the most unassuming and at the same time most useful setting in MetaTrader. One parameter in a shortcut, one clearly named folder per terminal – and a scattered setup turns into a system you can back up, extend, rebuild and take to a new VPS at any time. Set it up before you need it: at your next fresh install, and at the latest before your next provider switch.