Rebuild Your MT5 Setup with Profiles and Templates
Contents (5)
Contents
Every time you replace a PC or move to a VPS, do you reopen your charts and set up each EA one by one? In MT5, you can save your chart layout, indicators, and EAs with their input values as files called "profiles" and "templates." Copy them over, and you can recreate nearly the same screen on another machine in a few minutes.
Some things don't transfer, though: the terminal-wide settings, login credentials, the EA files themselves, and broker-specific symbol names. If you don't know this, you end up with a setup that looks identical but where the EAs aren't running. This article covers the steps and checks we use when moving our own EAs.
Profiles vs. Templates
A template (.tpl) is "one chart"
A template stores the color scheme, display settings, and indicators with their parameters for a single chart. If you save it from a chart with an EA attached, the EA name and its input values are recorded too. Templates are saved in MQL5/Profiles/Templates inside the data folder.
A profile is "the whole window"
A profile stores which charts are open, each chart's symbol, timeframe, and position, and the EAs and indicators on every chart. It is saved in MQL5/Profiles/Charts/<profile name>. If you run several EAs across several symbols, carrying over a single profile recreates the entire layout.
You can open the data folder from MT5 via "File" → "Open Data Folder." Note that this is a different location from the installation folder.
Recommended Broker Comparison →
🎁 Download Free EA📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators
* Privacy strictly protected. You can unsubscribe at any time.
What Transfers and What Doesn't
| Item | Carried by profile/template? | What to do on the new machine |
|---|---|---|
| Chart layout, symbols, timeframes | Yes (profile) | Reopen the chart if the symbol name differs |
| Indicator settings | Yes | Custom or distributed indicators also need their files |
| EA assignment and input values | Yes | Copy the EA file (.ex5) separately |
| EA files and indicator files themselves | No | Copy to MQL5/Experts and MQL5/Indicators |
| Tools → Options settings | No | Set manually, e.g. algo trading permission and WebRequest URLs |
| Login credentials | No | Log in again on the new machine |
| Files and global variables written by EAs | No | Check MQL5/Files only for the EAs that need it |
A profile records instructions for "what to attach to which chart and how," not the programs themselves. Keep this in mind and you'll avoid most migration problems.
Migration Steps
On the old machine
- For each chart with an EA, right-click → "Template" → "Save Template" to save a template
- Go to "File" → "Profiles" → "Save As" to save the profile
- Copy these three items from the data folder to external media or cloud storage
MQL5/Profiles(profiles and templates)- The EAs you use from
MQL5/Experts - The indicators you use from
MQL5/Indicators
- Take a screenshot of the "Expert Advisors" tab in Tools → Options for reference
On the new machine
- Install MT5 and log in to the same account at the same broker (see MT5 Setup for the steps)
- Open the data folder, close MT5 once, and place the copied folders in the same locations
- Start MT5 and select your saved profile from "File" → "Profiles"
- In Options, set algo trading permission and the other settings to match your screenshot
- Confirm the EAs loaded by checking the EA icon at the top right of each chart and the log on the Experts tab
For input value meanings and recommended settings, see EA Setup.
Post-migration checklist
- The EA name is shown on every chart and its icon is active
- Input values match your screenshots from the old machine (lot size, MagicNumber, time window settings)
- Symbol names are correct (a suffix may be added depending on the broker or account type)
- The Journal shows no load errors or "file not found" messages
- You have confirmed the EAs on the old machine are stopped
Limitations and Pitfalls
Running two terminals at once is the biggest risk
If the same EA runs on the same account on both the old and new machines at the same time, entries can be duplicated. Even an EA that tracks its own positions by MagicNumber can send the same order twice if the two terminals each decide "I don't have a position yet." Always stop algo trading on the old machine before enabling the new one.
Symbol names and server differences
A profile records symbol names as text. If you change brokers or account types, the names may not match, so a chart may fail to open or get replaced with a different symbol. Even with the same broker, a different server time or spread means there's no guarantee the EA will behave exactly as it did before.
Stateful EAs need care
EAs that keep position-management data in files or global variables won't carry that state over just because you moved the profile. How they behave when migrated with open positions depends on how the EA is built. We haven't verified migration behavior for every one of our own EAs either. If in doubt, migrate at a time when you have no open positions.
When profiles get saved
MT5 overwrites the current profile when it closes. If you change settings before migrating and then close the terminal, an older state may be saved over the top. To be safe, use "Save As" once more right before you copy the files.
Many people choose a VPS for always-on operation. For how to choose one, see VPS Information.
Summary
- A template saves one chart; a profile saves the layout of the whole window
- EA assignments and input values transfer, but the EA file (.ex5) must be copied separately
- Tools → Options settings and login credentials must be set up by hand on the new machine
- Stop the EAs on the old machine before running the new one, so nothing runs twice
- Differences in broker, server, or an EA's internal state mean behavior may not be exactly the same
- Migrate when you have no open positions, and verify with the checklist afterward
Related
2026-11-24
EA Version Control: Keep Releases Matching the Source
2026-11-12
EA Log Design: Make Incidents Reproducible Later
2026-11-18
Why DST Shifts Your EA's Trading Hours and the Fix
2026-11-16
EA Weekend Holding Risk and Friday Close Design
📧 Free 8-email course + subscriber-only pack of 13 MT5 indicators
* Privacy strictly protected. You can unsubscribe at any time.
Have a question about EAs or FX?
You can post it on the Nattzy trading forum (free sign-up). Questions beyond this article are welcome too — EA settings, choosing a broker and more.
Ask on Nattzy ↗