Installing Custom Indicators and EAs on MT4/MT5
Custom indicators and Expert Advisors extend MT4 and MT5, and this guide walks you through downloading, installing, and troubleshooting them safely.
Интерактивные инструменты могут не работать в переведённом виде.
Installing Custom Indicators and EAs on MT4/MT5
The MetaTrader ecosystem's real power is its community-built indicators and EAs — but installation trips up almost every beginner.
File types you will encounter
| Extension | Type | Where it goes |
|---|---|---|
.mq4 / .mq5 |
Source code | MQL4/MQL5 folder, must be compiled |
.ex4 / .ex5 |
Compiled binary | Same folder, runs directly |
.set |
EA parameter preset | MQL5/Presets |
.tpl |
Chart template | Templates folder |
Compiled files (.ex4/.ex5) are the most common downloads because authors protect their source code. Source files let you edit logic but require compilation.
Method 1: The safe manual install
- Open MT4/MT5.
- Click File → Open Data Folder.
- Navigate to
MQL4/Indicators(orMQL5/Indicators). - Copy your
.ex4/.ex5file into this folder. - Restart the terminal (or right-click Navigator → Refresh).
- Expand Indicators in the Navigator panel and drag it onto the chart.
For EAs, use MQL4/Experts or MQL5/Experts instead. Scripts go in MQL4/Scripts.
Method 2: Compile from source
- Open the source file (.mq4/.mq5) in MetaEditor (press F4 from MT4).
- Press F7 to compile.
- Fix errors if listed at the bottom of the editor.
- The compiled
.ex4/.ex5lands in the correct folder automatically.
Enabling automated trading
EAs will not trade until you:
- Click the AutoTrading button on the toolbar (it turns green).
- Check Tools → Options → Expert Advisors → Allow automated trading.
- Ensure the chart's Common tab has "Allow live trading" checked.
A smiley face in the top-right corner of the chart confirms the EA is running live.
Common errors and fixes
- "DLL not found": enable Allow DLL imports in the EA's Common tab and ensure the DLL is in
MQL4/Libraries. - Trade failed - disabled: AutoTrading is off or the broker blocks EAs.
- Indicator not in Navigator list: wrong folder, or the file is for the other platform (MT4 indicators do not load on MT5).
- Compiled but nothing happens: timeframes or symbols do not match — open the inputs panel (Ctrl+I).
Security warnings
- Never run a downloaded EA that you cannot identify. Malicious
.ex4files can read account credentials. - Scan
.ex4/.ex5files for unusual network calls (rare but possible). - Prefer paid or open-source tools over "free cracked" EAs that promise unrealistic returns.
- Always test on a demo account for at least two weeks before going live.
Practical beginner workflow
- Pick one indicator (a moving average ribbon is enough).
- Compile it from source so you understand MetaEditor.
- Save a chart template (Charts → Template → Save Template) so you can reuse the layout.
- Only then move to a free EA like the MetaQuotes sample MACD EA to learn automated trading mechanics.
Next: learn why demo testing an EA for weeks beats trusting a backtest.
Live Chart
Open full chart →Related market data, powered by TradingView.