← All guides

How to install an indicator on MetaTrader 5

By Najm FX (NFX) · 6 min read · Basics · Published · Updated

Short answerTo install an indicator on MetaTrader 5: open File, then Open Data Folder, go into MQL5 then Indicators, paste the ex5 or mq5 file, close and reopen the platform, and you will find it in the Navigator window under Indicators. The most common reasons it does not appear: the file was put in the Experts folder, or the platform was not restarted. ex4 and mq4 files never work on MT5.

Downloaded an indicator and don't know where to put it? This is the single most common place a new trader gets stuck. The whole thing takes under a minute, but there is one detail most people get wrong — and it is exactly the one that makes the indicator not show up.

Before you start: which file type do you have?

MetaTrader indicator files come with two extensions:

  • ex5 — a compiled, ready-to-run indicator. Drop it in and it works immediately.
  • mq5 — the source code. It works too, but the platform needs to compile it the first time.

Both go in the same place. If the file you have is pine or txt, it is not for MetaTrader at all — it is for TradingView, and the method is completely different (there is a section below).

The steps

  1. Open MetaTrader 5.
  2. From the top menu: File → Open Data Folder. A folder window opens.
  3. Go into the MQL5 folder.
  4. Go into the Indicators folder. This is exactly where most people go wrong: an indicator goes into Indicators, a robot goes into Experts. If you put an indicator in the Experts folder it will not appear and you will get no error — you simply will not find it.
  5. Paste the indicator file inside the folder.
  6. Close MetaTrader and open it again. Do not skip this step — the platform only reads the folder on startup.
  7. In the Navigator window (if it is hidden: View → Navigator or Ctrl+N), open the Indicators section and you will find the indicator by name.
  8. Drag it onto the chart with the mouse, or double-click it. A settings window appears — press OK and it runs.

It did not show up? These are the four reasons

1. You did not restart the platform

The most common cause. MetaTrader indexes the folder at startup. Close and reopen.

2. You put the file in the wrong folder

Check: MQL5 → Indicators for an indicator, MQL5 → Experts for a robot. And watch out — older installations also have a folder called Indicators outside MQL5; that is not the one.

3. The file is compressed (zip / rar)

Extract it first. The platform cannot read inside a compressed file.

4. The indicator was built for MetaTrader 4

ex4 and mq4 files never run on MT5 — it is not a settings issue, the structure is different. You need an MT5 version.

The indicator appeared but there are no lines on the chart

This is normal in two cases:

  • Wrong timeframe. Many indicators are built for a specific timeframe (M5, H1…). On a different timeframe they may draw nothing. Every indicator in our library lists its intended timeframe in its specs table.
  • Wrong symbol. Gold indicators, for example, are calculated on XAUUSD and may give no signals on another pair.

If the file is for TradingView (pine or txt)

  1. Open TradingView and open any chart.
  2. From the bar at the bottom click Pine Editor.
  3. Open the file you downloaded in any text editor and copy its entire contents.
  4. Paste it into the editor replacing what is there (delete the old code completely).
  5. Press Add to chart — it appears on the chart immediately.

Advice before using it on a real account

Install it on a demo account first and watch it for a while. An indicator is a tool that helps you read the market — not a ready-made decision, and no indicator wins all the time. See how it behaves on quiet days and on news days before you base a real-money decision on it.

Author: Najm FX (NFX) Arab trader and founder of Yakuzza. He builds trading tools and uses them before publishing them, and shares analysis and tutorials on the Najm Forex YouTube channel.
About YakuzzaYouTube channel

More guides

How to install a robot (Expert Advisor) on MetaTrader 5 and run it properly Installing an Expert Advisor step by step, enabling algo trading, the button that keeps the robot idle if you miss it — and what to check before running it with real money. Types of trading robots — and the real risk of each one Grid, martingale, scalping, trend, breakout: how each type works and exactly where it breaks. The plain talk you will not find on sales pages. How to calculate the right lot size — risk management in numbers The formula that sets your trade size from your balance and stop loss, with worked examples, and how to find the pip value of any pair from your platform. Trading gold XAUUSD — why it is different and how to handle it Gold is not a normal currency pair: higher volatility, a wider spread, and a reaction to the dollar and interest rates. What to know before trading it and how to set up for it. How to test a robot on a demo account properly (and how real differs) Opening a demo account on MetaTrader, exactly what to watch during the test, and the four differences that make a demo result different from a real one. Timeframes M1 M5 M15 H1 H4 D1 — which one suits you What each MetaTrader timeframe means, how many signals it gives, how much screen time it needs, and why running a tool on a timeframe it was not built for ruins its result. Smart money and liquidity — what an Order Block and a Liquidity Sweep really are A clear explanation of smart money concepts: order block, liquidity sweep, break of structure, fair value gap — and how to read them on the chart without the jargon. Moving averages and trend indicators — how to use them and where they stop working The difference between SMA and EMA, the crossover method, choosing the period, and most importantly: why trend indicators lag and how to work with that lag. Indicator vs robot (Expert Advisor) — what the difference is and which you need An indicator analyses and tells you; a robot executes for you. The difference explained in detail, which one suits your situation, and why confusing them costs money. Spread, commission and swap — the real cost of every trade The three costs that eat into your profit on every trade, how to see them in your platform, and why they decide whether your strategy is profitable at all. Trading indicators: the 20 that matter and what each tells you A plain guide to the 20 core trading indicators in four families: trend, momentum, volatility and volume. What each one measures, its common settings, and where it fails. Multi-timeframe scalping — trend from above, entry from below How to scalp with multiple timeframes: one for trend, one for the setup, one for entry. Timeframe ratios, session timing, costs, and the repainting trap in MTF indicators.

Everything here is educational, not investment advice. Leveraged trading carries a high risk and you can lose your entire capital. Test any tool on a demo account first, and never risk money you cannot afford to lose.