Skip to content
AlgoVerdict

MT4 & MT5 Portable Mode: Step-by-Step Setup – and Why Every EA Trader Should Use It

Last updated: 28 September 2026

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)

EAsSet filesProfilesLogsSettings

Two locations, cryptic ID

Portable mode

C:\Trading\ICMarkets-MT5-Live\

Program + all data in one folder

terminal64.exeEAsSet filesProfilesLogsSettings

One terminal = one folder

Normal mode: program and data split, the data hidden. Portable mode: everything in 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 as C:\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

  1. Open your new terminal folder in Explorer.
  2. Right-click terminal64.exe (MT5) or terminal.exe (MT4) → Create shortcut.
  3. Right-click the new shortcut → Properties.
  4. In the Target field, after the closing quote, add a space and /portable:
"C:\Trading\ICMarkets-MT5-Live-12345678\terminal64.exe" /portable
  1. Give the shortcut a sensible name (e.g. "IC Markets MT5 Live") and put it on the desktop.
IC Markets MT5 Live Properties
GeneralShortcutCompatibility
Target:
"C:\Trading\ICMarkets-MT5-Live\terminal64.exe"/portable
A space, then /portable – after the closing quote
Start in:
"C:\Trading\ICMarkets-MT5-Live"
OKCancel
Right-click the shortcut → Properties → “Shortcut” tab → “Target” field.

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).
File → Open Data Folder

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?

In MetaTrader: File → Open Data Folder. The folder that opens tells you the mode.

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:

  1. Launch the old terminal normally → File → Open Data Folder → you land in the AppData folder. Close the terminal.
  2. From that folder, copy the MQL5 (or MQL4), Profiles and templates (if present) subfolders into your new portable folder, overwriting existing files.
  3. Launch the terminal through the /portable shortcut 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:

  1. Press Windows + R, type shell:startup, press Enter.
  2. Copy your /portable shortcuts into this Startup folder.
  3. 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:

  1. Copy the finished folder and rename it (e.g. ICMarkets-MT5-Live-99887766).
  2. Create a new /portable shortcut to the terminal64.exe inside the copy.
  3. 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

  1. 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.
  2. 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

  1. Close all terminals on the old VPS. Don't just stop the EA – shut the terminal down completely so every file is written cleanly.
  2. Zip C:\Trading\ (right-click → Send to → Compressed (zipped) folder). You can delete the price history in bases first to keep the file small.
  3. 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.
  4. Unzip to C:\Trading\ on the new VPS – the same path as before, so every path in shortcuts and configs still matches.
  5. Recreate the /portable shortcuts (step 3) and put them in Startup (step 6). Shortcuts contain absolute paths and are best created fresh after a move.
  6. 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.
  7. 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

  1. 1Close every terminal completely
  2. 2Zip C:\Trading\

Transfer

RDP copy, local drive or cloud

New VPS

  1. 3Unzip to C:\Trading\ (same path)
  2. 4Create /portable shortcuts + Startup
  3. 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 move in five steps. Same path on both servers, the old VPS stays off afterwards.

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"/portable doesn't work – it has to be terminal64.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_COMMON flag write to AppData\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:

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.

Frequently asked questions

What is MetaTrader portable mode?

A launch parameter (/portable) that makes MT4 and MT5 store their data – EAs, indicators, set files, profiles, templates, logs, settings – in the installation folder instead of a hidden Windows user folder under AppData. The terminal becomes one self-contained folder you can copy, back up and move.

How do I enable portable mode?

Install the terminal into its own folder outside Program Files (e.g. C:\Trading\ICMarkets-MT5), create a shortcut to terminal.exe (MT4) or terminal64.exe (MT5), and in the shortcut's Target field add a space and /portable after the closing quote. From then on, only ever launch the terminal through that shortcut.

How can I tell whether portable mode is active?

Use File → Open Data Folder. If it opens the installation folder itself, the terminal is running portable. If you end up in a folder under AppData\Roaming\MetaQuotes\Terminal with a long alphanumeric ID, it is running in normal mode.

Can I run several MT4 or MT5 terminals in portable mode at once?

Yes – that is one of the main benefits. Each instance gets its own folder, its own /portable shortcut, and its own EAs and settings. The terminals don't interfere with each other, and the folder name tells you instantly which account runs where.

Do EAs bought on the MQL5 Market keep working after a VPS move?

No. Market products are bound to the specific machine when they are activated. On the new VPS you reinstall them from the Market tab in the terminal, which uses up one activation (every paid product has at least five). On the same machine, however, you can use them in as many terminals as you like.