Indicators tutorial

How to Install a Custom Indicator in MT4

Add a custom indicator to MetaTrader 4, adjust its inputs and colours, and keep the setup in a reusable template.

Beginner About 10 min(estimate) 7 stepsPublished

Times are estimates — they vary with your computer, connection and experience.

Before you start

  • MetaTrader 4 installed — see How to Install MetaTrader 4.
  • The indicator's MT4 file (.ex4, sometimes with .mq4 source). Extract .zip downloads first.

What you'll learn

  • Install the indicator in MQL4\Indicators.
  • Add it to a chart and edit its settings.
  • Save the chart as a template.

Steps

  1. Step 1: Open the data folder

    In MT4, go to File → Open Data Folder, then open MQL4 → Indicators.

  2. Step 2: Copy the indicator file

    Paste the .ex4 file (and .mq4, if provided) into Indicators.

  3. Step 3: Refresh the Navigator

    Open the Navigator (Ctrl+N), right-click Indicators and choose Refresh, or restart MT4.

  4. Step 4: Add it to a chart

    Drag it from the Navigator's Indicators list onto a chart, or use Insert → Indicators → Custom.

  5. Step 5: Set its inputs and colours

    Adjust the Inputs and Colors tabs, then click OK.

  6. Step 6: Edit it later

    Right-click the chart, open Indicators List (Ctrl+I), select the indicator and choose Edit — or Delete to remove it.

  7. Step 7: Save a template

    Right-click the chart and choose Template → Save Template to reuse this setup on other charts.

Expected result

The indicator draws on the chart or in its own sub-window, is listed in the chart's Indicators List, and your template re-applies it with the same settings.

Troubleshooting

It isn't in the Navigator
Check it's an .ex4 (not .ex5) in MQL4\Indicators of the data folder, then refresh.
"DLL calls are not allowed" in the Experts tab
Some indicators use DLLs. Enable Allow DLL imports on the indicator's Common tab only if you trust its developer.
The indicator is slow or freezes the chart
Reduce its history/bars input if it has one, or ask the developer — heavy calculations on every tick can slow MT4.

Next tutorial

How to Configure Expert Advisor Settings

Configure an Expert Advisor's inputs in MT4 or MT5: lot size and risk, stop-loss units, magic numbers and spread limits, plus saving and loading .set files.

Continue

Related tutorials

All tutorials
  • IndicatorsBeginner

    How to Install a Custom Indicator in MT5

    Install a custom indicator in MetaTrader 5: copy the .ex5 to MQL5\Indicators, add it to a chart, adjust its inputs and save the setup as a template.

    About 10 min(estimate) 7 steps
  • MetaTrader 4Beginner

    How to Install an Expert Advisor in MT4

    Install an Expert Advisor in MetaTrader 4: copy the .ex4 to MQL4\Experts, attach it to a chart, tick Allow live trading and switch on AutoTrading.

    About 10 min(estimate) 7 steps

On the marketplace