How to Import and Attach a Custom Indicator in MT4
If you want to import and attach a custom indicator in MetaTrader 4, the whole process comes down to two things: putting the right file in the right folder, and then dragging it onto a chart. It sounds fiddly the first time, but once you've done it once on your own MT4 login — whether that's through Pepperstone or IG — it takes under a minute from then on.
This guide walks through the exact steps, the common mistakes that stop indicators showing up, and a few safety checks worth doing before you trust any third-party file with real analysis.
What You Need Before You Start
Before touching any files, gather these:
- The indicator file itself — usually a
.ex4(compiled) or.mq4(source code) file. - A working MT4 terminal already installed and logged into a broker account, for example a demo or live account with Pepperstone or IG.
- Administrator access to your computer, in case Windows blocks file copying into protected folders.
- The source of the indicator — know whether it came from a trusted vendor, a forum, or MQL5's own marketplace, since this affects how much scrutiny it deserves.
A quick note on terminology: "custom indicator" simply means any indicator that isn't one of the built-ins shipped with MT4 (Moving Average, RSI, MACD, and so on). It could be free, paid, simple, or genuinely complex — the install method is identical either way.
One thing to confirm early: some brokers are transitioning clients toward MT5 or their own platforms. If you're not sure whether your account runs MT4 or MT5, check your broker's platform page or login portal first, since the folder structure and file extensions differ between the two.
Finding the MT4 Data Folder
Every MT4 installation keeps its custom files in a specific "data folder" — and this is the single most common place people get stuck, because it's often *not* the same folder MT4 was installed into.
To find it:
1. Open your MT4 terminal (log in to your Pepperstone or IG MT4 account if prompted). 2. Click File in the top menu. 3. Select Open Data Folder. 4. A Windows Explorer window will pop up — this is your terminal's private data folder. 5. Inside, open the MQL4 folder, then Indicators.
That MQL4/Indicators subfolder is where every custom indicator file needs to sit. If you run more than one MT4 terminal — say, one for a Pepperstone account and a separate install for an IG account — each has its *own* data folder and its own Indicators subfolder. Copying a file into one won't make it appear in the other.
Copying the Indicator File Into MT4
Once you've located MQL4/Indicators, the copy step is straightforward:
1. Copy the .ex4 or .mq4 file you downloaded.
2. Paste it directly into the MQL4/Indicators folder — no subfolders needed unless the vendor's instructions say otherwise.
3. If you only have a .mq4 file (source code, not yet compiled), open it in MetaEditor (accessible from MT4's toolbar) and click Compile. This generates the .ex4 file MT4 actually runs.
4. Close MT4 completely, then reopen it. MT4 only scans the Indicators folder on startup, so a simple refresh usually isn't enough.
If the indicator comes with extra files — templates, .dll libraries, or a .set file for input settings — check the vendor's instructions, since these often need to go in different subfolders (Templates, Libraries, Presets) rather than Indicators itself.
Attaching the Indicator to a Chart
With MT4 restarted, the indicator should now be visible and ready to attach:
1. Open the Navigator panel (Ctrl+N if it's hidden). 2. Expand Indicators, then Custom — your newly copied indicator should appear in this list. 3. Open a chart for the pair you want to analyse. 4. Either double-click the indicator name, or drag it directly onto the chart. 5. An input window will pop up letting you adjust parameters (periods, colours, alert settings) — review these, then click OK. 6. The indicator should now plot on (or below) your chart, depending on its type.
If nothing appears in the Custom list, go back and confirm the file actually landed in the correct data folder for *this specific terminal* — this is the most common reason indicators seem to vanish.
Fixing the Most Common Problems
A short table of the usual sticking points:
| Symptom | Likely Cause | Fix | |---|---|---| | Indicator not in Navigator | Copied to wrong data folder, or MT4 not restarted | Re-check File > Open Data Folder path, restart terminal | | Frowny face on chart | Indicator is prohibited or has an error | Check Options > Expert Advisors tab, enable custom indicators | | Compile errors in MetaEditor | Source code written for MT5 (MQL5), not MT4 | Confirm the file is genuinely MQL4-compatible | | Indicator loads but shows nothing | Wrong input parameters or insufficient chart history | Load more history, check input settings | | Works on demo but not live | Different terminal/data folder for each account | Repeat the copy steps for the live terminal separately |
Most issues trace back to one of two things: the file sitting in the wrong folder, or MT4 not being restarted after the copy.
Keeping Custom Indicators Safe and Useful
A compiled .ex4 file can't easily be inspected line-by-line, so a bit of caution is sensible:
- Prefer known sources — established vendors, MQL5's marketplace, or code you (or someone competent) can review as
.mq4source. - Test on demo first — attach any new indicator to a demo chart before relying on it for live decisions.
- Watch resource use — indicators with heavy calculations can slow down chart loading, especially across multiple pairs.
- Remember indicators don't touch your costs — they analyse price, nothing more. Your actual trading costs (spread, commission, swap) depend entirely on your broker and account type.
Where Indicators Fit Into Your Overall Trading Costs
It's worth being clear-eyed here: no indicator, however well-designed, changes what you pay to trade. Whether you're running your custom indicator on a Pepperstone MT4 account or an IG MT4 account, the spread and commission structure sits entirely with the broker and account type you've chosen — not the analysis tools layered on top.
Because those costs vary by broker, account type, and instrument, don't rely on memory or marketing pages for numbers. Instead:
- Use PipTax's cost tool at [/audit.html](/audit.html) to compare all-in trading costs across brokers.
- Browse /brokers/index.html for FCA-regulated broker profiles and platform availability.
- Check /methodology.html if you want to understand how comparisons are built.
- Head to /school/index.html for more MT4 workflow tutorials once you've got indicators set up.
Getting comfortable with how to import and attach a custom indicator in MetaTrader 4 is a genuinely useful skill — it opens up your charting well beyond the built-in tools — but it's only one part of a trading setup. Pair it with a clear-eyed look at your actual broker costs, and you'll have both better analysis and a better idea of what each trade really costs you.
Key takeaways
- To import and attach a custom indicator in MetaTrader 4, copy the indicator file into the MQL4/Indicators folder found via File > Open Data Folder, then restart MT4.
- Custom indicators appear in the Navigator panel under Indicators — Custom; drag or double-click to attach to a chart.
- Each MT4 install (including separate broker servers like Pepperstone or IG) has its own data folder, so indicators must be copied per terminal unless you manage a shared install.
- Only use .ex4 or .mq4 files from sources you trust — a compiled indicator can contain hidden logic you cannot inspect.
- If a chart shows a frowny-face icon or 'Custom indicators are prohibited', check the terminal's Options > Expert Advisors tab for permissions.
- Live spreads, commissions and execution differ by broker and account type — verify current costs on PipTax's cost tool before trading on any new indicator.
Frequently asked questions
- Where does MT4 store custom indicators?
- Inside the terminal's data folder, in a subfolder called MQL4/Indicators. Each MT4 install has its own data folder — open it from File > Open Data Folder inside the specific terminal you're using, whether that's a Pepperstone MT4 login or an IG MT4 login.
- Why can't I see my indicator in the Navigator after copying it?
- MT4 only scans the Indicators folder on startup, so you need to fully close and reopen the terminal (or right-click Indicators in the Navigator and choose Refresh in some builds). Also confirm the file extension is .ex4 or .mq4, not .zip or .txt.
- What's the difference between a .mq4 file and a .ex4 file?
- .mq4 is the readable source code; .ex4 is the compiled version MT4 actually runs. You can install either — if you only have a .mq4 file, open it in MetaEditor and press Compile to generate the .ex4.
- Can I use the same custom indicator on both Pepperstone and IG MT4 accounts?
- Yes, but you must copy the file into each terminal's own data folder separately, since Pepperstone and IG each run MT4 as an independent installation with its own MQL4 folder.
- Is it safe to download custom indicators from random websites?
- Treat any unfamiliar .ex4 file with the same caution as an unknown executable — stick to reputable sources, and where possible request the .mq4 source so you or someone else can review the code before compiling and running it.
- Do custom indicators affect my trading costs?
- No — indicators are analysis tools and don't change your spread, commission or swap. Those costs depend on your broker and account type, so check PipTax's cost tool for a like-for-like comparison before you rely on any indicator-driven strategy.