← 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: FileOpen 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

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.