How to Install Custom Indicators on MT4 (Step-by-Step Guide)

You downloaded a free MT4 indicator. The file sits in your Downloads folder. Now you need it inside MetaTrader 4 — but the platform shows no obvious “Install” button anywhere.

The good news: installing custom indicators on MT4 takes about two minutes and works the same way for every indicator you’ll ever download. Once you do it once, you’ll do it without thinking.

This guide gives you the exact six-step method, including how to handle the most common “indicator doesn’t show up” problems.


Prerequisites

Before you begin, make sure you have:

You do not need administrator rights, the original installer, or any third-party tool. Everything happens inside MT4.


How to Install Custom Indicators on MT4: 6-Step Guide

Step 1 — Open the MT4 Data Folder

The first mistake most beginners make is copying the indicator file to the wrong location. MT4 has two folders on your computer:

  • The program install folder (e.g. C:Program Files (x86)MetaTrader 4) — contains the platform binaries. Do not put your indicator here.
  • The Data Folder — a per-user directory where MT4 stores all custom indicators, EAs, scripts, templates, and history. This is where your indicator goes.

Why two folders? Windows now isolates user-modifiable data from program installs. The program folder is read-only for security; the Data Folder is per-account and writable.

To open the Data Folder, do this from inside MT4:

  1. Click File in the top menu bar.
  2. Click Open Data Folder.

A Windows Explorer window opens at your MT4 user data directory. It looks something like C:UsersYOUR_NAMEAppDataRoamingMetaQuotesTerminal<long-hex-string>.

Tip: Bookmark this folder. You’ll come back here every time you install a new indicator, EA, template, or set file.

MT4 File menu with the Open Data Folder option highlighted

Step 2 — Navigate to MQL4/Indicators

Inside the Data Folder, you’ll see several subfolders. The one you need is MQL4.

  1. Double-click MQL4.
  2. Double-click Indicators.

You’re now inside the Indicators folder. This is the only place MT4 looks for custom technical indicators.

The folder structure looks like this:

[Data Folder]
├── MQL4
│   ├── Experts        ← Expert Advisors (EAs) go here
│   ├── Indicators     ← Custom indicators go here  ← YOU ARE HERE
│   ├── Scripts        ← One-shot scripts go here
│   ├── Libraries      ← Shared code libraries
│   ├── Include        ← .mqh include files
│   └── Files          ← Indicator data files (CSV, etc.)
├── templates          ← .tpl chart templates
├── profiles           ← Multi-chart profiles
└── history            ← Price history per broker server

Each MQL4 subfolder has a different purpose. Putting an indicator in Experts will not work — MT4 only treats the Indicators folder as an indicator source.

MT4 Data Folder showing the MQL4 directory with the Indicators subfolder

Step 3 — Copy the .ex4 (or .mq4) File

Drag your downloaded .ex4 or .mq4 file into the Indicators folder, or right-click and use Paste.

.ex4 vs .mq4 — which do you need?

File Type What it is When you have it
.ex4 Compiled binary (ready to run) Most free downloads — fastest install, no compile step
.mq4 Source code (human-readable MQL4) When you want to inspect or modify the indicator
Both .ex4 and .mq4 Compiled + source pair MT4 prefers the .ex4 version automatically

If your download is a .zip or .rar, extract it first. MT4 cannot read indicators inside compressed archives.

If a download contains both an .ex4 and a .mq4 with the same filename, copy both. MT4 will use the .ex4 and you’ll keep the source for future tweaking.

Custom .ex4 file pasted into the MT4 MQL4 Indicators folder

Step 4 — Restart MT4 or Refresh Navigator

MT4 keeps a cached index of all custom indicators. Until you tell it to refresh, the new file you just dropped in is invisible.

Two ways to refresh:

  • Quick way: In MT4, press Ctrl+N to open the Navigator panel. Right-click anywhere inside the Navigator and click Refresh.
  • Reliable way: Close MT4 entirely and reopen it. This is overkill for .ex4 files but required if you installed a .mq4 source file that needs to be compiled.

After the refresh, MT4 silently scans the Indicators folder, compiles any new .mq4 files, and adds them to the Navigator index.

Tip: If MT4 detects a syntax error while compiling a .mq4 file, it logs the error to the Experts tab at the bottom of the platform. If your indicator isn’t showing up, that tab is the first place to look.


Step 5 — Locate the Indicator in Navigator

The Navigator panel (left side of MT4) lists everything available to you: built-in indicators, custom indicators, EAs, and scripts.

  1. In Navigator, expand Indicators.
  2. Underneath, you’ll see two sub-groups: Examples and Custom (some MT4 builds simply list custom indicators alphabetically alongside built-ins). Your indicator appears under Custom.
  3. Indicators are sorted alphabetically — scroll until you see the name you installed.

If your indicator is not in the list:

  • Refresh Navigator again (Step 4).
  • Confirm the file is actually in MQL4/Indicators (use File > Open Data Folder to double-check).
  • Check the Experts tab at the bottom of MT4 for compile errors.

For a deeper troubleshooting walkthrough, jump to Troubleshooting Common Issues below.

MT4 Navigator panel expanded to show installed custom indicators

Step 6 — Apply the Indicator to a Chart

You’re at the finish line. Two ways to add the indicator to a chart:

  • Drag and drop: Click the indicator name in Navigator, hold the mouse button, and drag it onto an open chart. Release.
  • Double-click: Double-click the indicator name in Navigator. It applies to the most recently focused chart.

The indicator’s input dialog opens. Three tabs matter:

  • Inputs: the indicator’s parameters (period, colors, alert toggles, etc.). Defaults are usually fine for a first run.
  • Common: check Allow DLL imports if the indicator requires it (most don’t); check Allow modification of Signal settings for alert-capable indicators.
  • Visualization: restrict the indicator to certain timeframes only — leave on “All timeframes” unless you know better.

Click OK. The indicator now draws on your chart in real time.

Custom indicator being dragged from MT4 Navigator onto the EURUSD chart

Troubleshooting Common Issues

About one in five installs hits a snag. Here’s how to fix the four most common problems.

“My indicator doesn’t appear in Navigator”

The single biggest cause: you put the file in the wrong folder. Always use File > Open Data Folder inside MT4 to find the correct location — never guess based on C:Program Files.

If the file is definitely in MQL4/Indicators:

  1. Right-click in Navigator → Refresh.
  2. Look in the Experts tab at the bottom of MT4 for red error lines. A failed .mq4 compile produces lines like 'function_name' - undeclared identifier.
  3. Restart MT4 entirely.

“The indicator shows but the lines are missing”

Usually a chart timeframe issue. Some indicators only render on specific timeframes (M5+, H1+, etc.). Switch to H1 to test. If lines still don’t appear, check the indicator’s Inputs — period values that are too high relative to the visible bars produce no plot.

“.mq4 file won’t compile (Experts tab shows errors)”

The most common cause is a missing #include file. Older indicators sometimes reference shared libraries that are not bundled. The fix:

  • Check the Experts tab error log for the missing file name.
  • Either obtain the missing include file and place it in MQL4/Include, or look for a self-contained version of the indicator without #include dependencies.

All free indicators on ForexOBroker are self-contained — no #include files needed.

“Indicator works, but disappears every time I close MT4”

This means the indicator is applied to the chart but not saved into a template. Right-click the chart → Template > Save Template and save it as your default template. Now MT4 will reload the indicator automatically each time.

For more on templates, see our MT4 Templates and Profiles Guide.


Pro Tips for a Cleaner MT4 Indicator Setup

  • Save a “default” template with your most-used indicators pre-loaded. Right-click a chart with your indicators applied → Template > Save Template As “Default”. Every new chart inherits this layout.
  • Use clear filenames. Rename downloaded indicators to something memorable (e.g. FOB_TrendStrength.ex4 instead of tre_str_ind_v3_final_FINAL2.ex4). Filenames show in Navigator exactly as saved.
  • Keep your Indicators folder clean. Delete indicators you don’t use — a Navigator full of 200 entries slows down both refresh and chart load times.
  • Bookmark the Data Folder path in Windows Explorer. You’ll open it dozens of times — pinning it to Quick Access saves repeated clicks.
  • Don’t trust random forum .ex4 downloads. A compiled binary can technically contain anything. Stick to indicators you can either inspect (.mq4 source) or get from sources you trust like our Moving Average, MACD, or Supertrend free downloads.

Frequently Asked Questions

Where do I put .ex4 files in MT4?

Place them in the MQL4/Indicators subfolder of your MT4 Data Folder. The fastest way to get there is to open MT4, click File > Open Data Folder, then double-click MQL4 followed by Indicators. Drop the .ex4 file there.

What is the difference between .ex4 and .mq4 files?

.ex4 is a compiled, executable indicator binary — ready to run inside MT4 immediately. .mq4 is the MQL4 source code — readable and editable in MetaEditor. MT4 will automatically compile any .mq4 file into an .ex4 on first launch. If both files are present, MT4 uses the .ex4.

Why does my custom indicator not appear in Navigator?

Three common causes. First, the file was copied to the program install folder instead of the per-user Data Folder — these are different locations. Always use File > Open Data Folder from inside MT4. Second, Navigator wasn’t refreshed (right-click > Refresh) or MT4 wasn’t restarted. Third, the .mq4 file failed to compile — check the Experts tab at the bottom of MT4 for error messages.

Do I need to restart MT4 after installing a custom indicator?

Not always. Right-clicking inside the Navigator panel and selecting Refresh is enough in most cases — especially for .ex4 files. A full restart is only required when MT4 has cached an older version of the indicator or when a .mq4 source file requires compilation.

Are custom MT4 indicators safe to install?

Indicators downloaded from reputable sources are safe — they only read price data and draw on charts. Avoid running .ex4 files from unknown forums, since compiled binaries can theoretically contain malicious code. .mq4 source files are safer because you can read the code before compiling. All indicators distributed from ForexOBroker are self-contained .mq4 files you can inspect line-by-line.

Can I install MT4 indicators on macOS?

Not directly — MT4 is Windows-native. macOS users typically run MT4 inside a Wine wrapper, Parallels, or a Windows VM. Once MT4 is running, the indicator install process is identical to Windows.

How many custom indicators can I install on MT4?

There’s no hard limit, but practical performance starts to degrade past a few hundred indicators in the Navigator. Each chart can have up to 64 indicators applied simultaneously, but more than 6–8 is rarely useful for live trading.


Related Tutorials

Author: Dominic Walsh
blank

I am a highly regarded trader, author & coach with over 16 years of experience trading financial markets. Today I am recognized by many as a forex strategy developer. After starting blogging in 2014, I became one of the world's most widely followed forex trading coaches, with a monthly readership of more than 40,000 traders! Make sure to follow me on social media: Instagram | Facebook | Youtube| Twitter | Pinterest | Reddit | Telegram Channel