How to Install Custom Indicators on MT5

How to Install Custom Indicators on MT5

Why Custom Indicators Matter in MT5

MetaTrader 5 ships with a solid set of built-in indicators, but the real power of the platform emerges when you add custom indicators tailored to a specific strategy or market condition. Whether you want a refined version of the RSI, a bespoke volatility tool, or something as layered as a custom Ichimoku variant, the MT5 ecosystem lets you install virtually any indicator coded in MQL5.

The installation process is simple once you understand the folder structure and a couple of settings — but it trips up many traders who are new to the platform. This guide walks you through every step clearly.

Step 1: Get the Right File Format

MT5 custom indicators come in two file types:

  • .ex5 — A compiled, ready-to-run indicator file. This is the most common format you will download.
  • .mq5 — The raw source code file. MT5 can compile this into an .ex5 file automatically, but you will need the MetaEditor tool (built into MT5) to do so.

In most cases, you will receive a pre-compiled .ex5 file. If you receive an .mq5 file instead, open it in MetaEditor (press F4 in MT5) and click Compile to generate the .ex5 version before proceeding.

Always download indicators from trusted sources. Malicious code can be embedded in MQL5 files, so stick to reputable developers and marketplaces.

Step 2: Place the File in the Correct Folder

MT5 reads custom indicators only from a specific directory. Placing the file anywhere else means the platform will simply not detect it.

Finding the Indicators Folder

Open MetaTrader 5, then go to File → Open Data Folder. This opens the MT5 data directory in your file explorer. From there, navigate to:

  • MQL5 → Indicators

Copy or move your .ex5 (or .mq5) file into this Indicators folder. If the indicator comes with additional files — such as preset files (.set), templates (.tpl), or resource files — check the developer’s instructions for where each belongs. Templates, for example, go in the MQL5 → Profiles → Templates folder.

A Note on DLL Files

Some advanced indicators ship with a .dll file. If yours does, place the .dll in the same MQL5 → Libraries folder or wherever the developer specifies. You will also need to enable DLL imports in MT5 — covered in Step 4 below.

Step 3: Refresh and Locate the Indicator in MT5

Once the file is in the correct folder, switch back to MetaTrader 5. You do not always need to restart the platform. Instead:

  • Open the Navigator panel (press Ctrl+N if it is not visible).
  • Expand the Indicators section.
  • Right-click anywhere inside the Indicators section and select Refresh.

Your new indicator should now appear in the list. If it does not, double-check that the file is in the correct folder and that the file extension is .ex5 (not .ex4, which is the MT4 format — the two are not cross-compatible).

If you are also an MT4 user, note that the process differs slightly between platforms. You can find a detailed walkthrough in the guide on how to install custom indicators on MT4.

Step 4: Apply the Indicator to a Chart

With the indicator visible in the Navigator, applying it is straightforward:

  • Open the chart you want to analyse.
  • In the Navigator, find the indicator under Indicators → Custom.
  • Double-click the indicator name, or drag and drop it onto the chart.

A settings dialog will open. Here you can adjust:

  • Parameters — Input values such as periods, levels, or multipliers defined by the indicator’s developer.
  • Colors — Visual appearance of lines, histograms, or arrows.
  • Visualization — Which timeframes the indicator should display on.

Click OK and the indicator will render on your chart immediately.

Enabling DLL Imports (If Required)

If the indicator requires a .dll file and fails to load, you need to enable DLL imports. Go to Tools → Options → Expert Advisors and tick Allow DLL imports. Restart the indicator by removing it from the chart and reapplying it. Only enable this setting for indicators from sources you fully trust.

Step 5: Save Your Setup as a Template

Once you have configured an indicator the way you like it — colours, inputs, timeframe preferences — save the chart as a template so you never have to set it up again.

  • Right-click on the chart and choose Template → Save Template.
  • Give it a descriptive name (e.g., “RSI-Custom-H1”).
  • To apply it to any new chart, right-click and choose Template → Load Template.

This is especially useful if you trade multiple pairs with the same setup — for example, a breakout strategy built around Bollinger Bands alongside a custom momentum filter.

Troubleshooting Common Issues

  • Indicator not appearing after refresh: Confirm the file is .ex5, not .ex4. MT4 indicators are not compatible with MT5.
  • Indicator loads but shows no data: The indicator may require a specific timeframe or symbol. Check the developer’s documentation.
  • Error about missing DLL: Enable DLL imports as described above, and ensure the .dll file is in the Libraries folder.
  • Compilation errors (.mq5 file): Open the file in MetaEditor, read the error log in the Errors tab, and confirm the file was written for MT5 (MQL5), not MT4 (MQL4).

Putting It All Together

Installing a custom indicator on MT5 takes less than two minutes once the steps are clear: get the .ex5 file, drop it in the MQL5/Indicators folder, refresh the Navigator, and apply it to your chart. The platform’s flexibility means you can layer sophisticated tools on top of your existing analysis — whether that is a custom signal scanner, a refined version of the MACD, or a unique price-action tool that matches your strategy exactly.

If you are looking for professionally coded MT5 indicators and Expert Advisors designed for real-world trading conditions, MGH Products at mghfx.com offers a range of tools built specifically for the MetaTrader ecosystem.

Disclaimer: This article is for educational purposes only and does not constitute financial or investment advice. Trading forex and other financial instruments carries significant risk. Always do your own research and consult a qualified financial professional before making trading decisions.

Photo by Jakub Żerdzicki on Unsplash

Shopping Cart
Scroll to Top