Indicators tutorial

How to Install a Custom Indicator in MT5

Add a custom indicator to MetaTrader 5, configure its inputs and colours, and save the chart as a template you can reuse.

Beginner About 10 min(estimate) 7 stepsUpdated

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

Before you start

  • MetaTrader 5 installed — see How to Install MetaTrader 5.
  • The indicator's MT5 file (.ex5). An MT4 .ex4 will not load in MT5. Extract .zip downloads first.

What you'll learn

  • Install a custom indicator in the right folder.
  • Add it to a chart and change its settings later.
  • Reuse the setup with a template.

Steps

  1. Step 1: Open the data folder

    In MT5, choose File → Open Data Folder, then open MQL5 → Indicators.

  2. Step 2: Copy the indicator file

    Paste the .ex5 file into Indicators (a sub-folder per product is fine).

  3. Step 3: Refresh the Navigator

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

  4. Step 4: Add it to a chart

    Drag the indicator from the Navigator onto a chart, or double-click it. It can also be found under Insert → Indicators → Custom.

  5. Step 5: Set its inputs and colours

    Use the Inputs tab for its parameters and the Colors tab for its appearance, then click OK. Some indicators draw on the price chart; others open their own window beneath it.

  6. Step 6: Edit it later

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

  7. Step 7: Save the chart as a template

    Right-click the chart and choose Templates → Save Template. Applying that template to another chart adds the same indicators with the same settings.

Expected result

The indicator is drawn on your chart (or in a sub-window), appears in the chart's Indicators List, and can be re-applied to any chart from your saved template.

Troubleshooting

The indicator doesn't appear in the Navigator
It must be an .ex5 in MQL5\Indicators of the data folder. Refresh the Navigator or restart MT5.
It's on the chart but shows nothing
Check the Experts tab (Ctrl+T) for errors, and scroll back — some indicators need a minimum number of bars, so open a chart with more history.
Historical signals look perfect but live ones don't
Some indicators recalculate past values (repaint). Watch it live for a while before relying on its history.

Next tutorial

How to Install a Custom Indicator in MT4

Install a custom indicator in MetaTrader 4: copy the .ex4 to MQL4\Indicators, refresh the Navigator, add it to a chart and edit its inputs.

Continue

Related tutorials

All tutorials
  • MetaTrader 5Beginner

    How to Install an Expert Advisor in MT5

    Install an Expert Advisor in MetaTrader 5: copy the .ex5 file to MQL5\Experts, attach it to a chart, allow Algo Trading and confirm it's running.

    About 10 min(estimate) 7 steps
  • Getting StartedBeginner

    How to Choose Between MT4 and MT5 Trading Tools

    Work out whether you need MT4 or MT5 tools: check your broker, file types and Strategy Tester needs, then pick EAs and indicators that match.

    About 10 min(estimate) 5 steps

On the marketplace