tutorial

How to Add and Configure Custom Indicators in MetaTrader 4

New capabilities on MetaTrader

MetaTrader 4 allows traders to extend its capabilities using custom indicators – tools created by third parties to provide specialized chart analysis beyond the built-in technical indicators. These custom indicators are typically distributed as .mq4 or .ex4 files. An .mq4 file contains the indicator’s source code (which MetaTrader can compile), while an .ex4 file is the compiled executable ready to run. Unlike indicators you might develop yourself in MetaEditor, third-party custom indicators are downloaded from external sources (such as trading forums, marketplaces, or developer websites) and then added to your MT4 platform. Your forex trading broker can also have a few custom indicators, you just need to double check their website.

Downloading Third-Party Custom Indicators

Before installation, you need to obtain the custom indicator file from a reputable source. Ensure you download MT4-compatible indicator files (they should have the extension .mq4 or .ex4). Often, custom indicators are packaged in ZIP archives; if so, extract the files first. Keep track of where you save the indicator file on your computer (for example, your Downloads folder). It’s good practice to only download indicators from trusted providers or the official MQL4/MQL5 community to avoid malicious code. Once you have the indicator file ready, you can proceed with installation. The process differs slightly between Windows and macOS due to the way MT4 is installed on each operating system, so we’ll cover each separately.

Installing Custom Indicators on Windows

On Windows, MT4 stores its indicators in the MQL4/Indicators directory within the platform’s data folder. Rather than manually searching for this folder, MT4 provides a convenient menu option to open it. Follow these steps to install a custom indicator on MT4 for Windows:

  1. Download the Indicator File: Locate the .mq4 or .ex4 custom indicator file you downloaded on your PC. If it came in a ZIP, extract it to get the actual indicator file.

  2. Open the MT4 Data Folder: Launch your MetaTrader 4 platform. In the menu bar at the top, click “File” and then select “Open Data Folder.” This will open a Windows Explorer window showing the data directory of your MT4 installation. The image above highlights the File > Open Data Folder menu in MT4. Clicking this option opens the folder where MT4’s data files are stored. Inside the data folder, you will see a list of subfolders such as MQL4, config, profiles, templates, etc.

  3. Navigate to MQL4\Indicators: Double-click the “MQL4” folder to open it. Within MQL4, find and open the “Indicators” folder. This is the location where all custom indicator files belong. (You will notice other subfolders like Experts, Scripts, Libraries, etc., but Indicators is the correct place for indicator files.)

  4. Copy the Indicator File: Copy or move your downloaded .mq4/.ex4 file into the Indicators folder. For example, if your indicator file is named MyCustomIndicator.ex4, it should end up in the .../MQL4/Indicators/ directory alongside other indicator files. You may organize indicators into subfolders here if you wish – MT4 will reflect the same folder structure in its Navigator (for instance, you could create MQL4/Indicators/TrendIndicators and place files there to group them).

  5. Restart or Refresh MT4: After copying the file, you need MT4 to recognize the new indicator. The simplest method is to close and reopen the MetaTrader 4 platform. Upon restart, MT4 will automatically compile any new .mq4 files (producing corresponding .ex4 compiled files) and load all available custom indicators. If you prefer not to restart immediately, you can also tell MT4 to refresh its indicator list: in the Navigator panel, right-click on “Custom Indicators” and choose “Refresh.” This prompts MT4 to scan the Indicators folder again and load new files.

Once these steps are done, the custom indicator is installed in MT4. Next, we’ll verify it’s accessible and then add it to a chart.

Installing Custom Indicators on macOS

Installing custom indicators on Mac requires a slightly different approach, because most macOS versions of MT4 are actually Windows applications packaged to run on Mac (using Wine or a similar compatibility layer). The MT4 app on Mac stores its data folder within the application package. Here’s how to install a custom indicator on MT4 for macOS:

  1. Download the Indicator File: Save the .mq4 or .ex4 indicator file to a convenient location on your Mac (for example, the Downloads folder). Ensure it’s an MT4 indicator file and not an incompatible format.

  2. Locate the MT4 Application: Open Finder and go to your Applications directory. Find your MetaTrader 4 application. (Depending on your broker or source, it might be named after the broker, e.g. “XM MT4”, “FxPro MetaTrader 4”, or similar. In this example, we’ll refer to it as “MetaTrader 4” for simplicity.)

  3. Open Package Contents: Right-click (or Ctrl-click) on the MT4 application icon and select “Show Package Contents.” In the Finder screenshot above, the context menu for an MT4 app (named “MTrading MT4.app”) shows the “Show Package Contents” option. This lets you access the files inside the app bundle. Once you select this, a Finder window will open showing the internal file structure of the MT4 application.

  4. Navigate to the Indicators Folder: Inside the package, navigate through the folders to find the MQL4 indicators directory. Typically, the path is: drive_c → Program Files (or Program Files (x86)) → [Your MT4 Application Folder] → MQL4 → Indicators. For example, if your app is named “MetaTrader 4”, the path might be .../drive_c/Program Files/MetaTrader 4/MQL4/Indicators. (If the MT4 was branded by a broker, the folder name will include that broker’s name, e.g. “XM MT4” or “FXBroker MT4”.) In this directory, you will see the same set of subfolders (Experts, Indicators, Scripts, etc.) as on a Windows installation.

  5. Copy the Indicator File: Drag or paste your downloaded .mq4 or .ex4 file into the Indicators folder within the package contents. Just like on Windows, you can place it in the main Indicators folder or in a subfolder if desired. Make sure the file ends up in this exact folder so that MT4 can load it.

  6. Restart MT4: If the MetaTrader 4 platform was running on your Mac, close it, then relaunch it. When MT4 starts up, it will load the new custom indicator. After restarting, proceed to the next steps to verify and use the indicator. (If for some reason the indicator doesn’t appear, double-check that you placed it in the correct folder inside the app bundle. The “Indicators” folder must reside under the MQL4 directory of the package’s drive_c, as described above.)

Accessing Custom Indicators in MT4 (Navigator Panel)

Once you have installed the custom indicator file and restarted the platform, you should be able to find it within MetaTrader 4’s Navigator panel. The Navigator is the side window (usually on the left side of the MT4 interface) that lists your accounts, indicators, expert advisors, scripts, etc. If the Navigator is not visible, you can open it by clicking View > Navigator in the menu or pressing Ctrl+N on Windows (⌘+N on Mac might also work).

In the Navigator, locate the section called “Custom Indicators.” Click the “+” sign (or triangle) next to “Custom Indicators” if it’s not already expanded. You should see a list of all custom indicator names available to you. The indicator you just installed should appear here by name. For example, if you added an indicator called “MyCustomIndicator,” it will be listed under Custom Indicators. (Note: MT4 displays only the compiled .ex4 files in the list. If you added an .mq4, MT4 should have compiled it automatically into an .ex4. If an indicator is not showing up, it could mean it failed to compile or wasn’t placed in the right folder – in such cases, a restart or placing the correct .ex4 file usually resolves it.)

Using the new indicator: To attach the custom indicator to a chart, simply do one of the following:

  • Double-click on the indicator’s name in the Navigator under Custom Indicators.

  • Or, click-and-drag the indicator from the Navigator and drop it onto the chart window of the currency pair (and timeframe) you want to apply it to.

  • Or, right-click the indicator name and choose “Attach to chart.”

Configuring the Custom Indicator’s Parameters

When you attach a custom indicator to a chart, a properties window appears, allowing you to configure how the indicator operates and displays. This window typically has multiple tabs, each serving a specific purpose for configuration. Check markets4you.com for more details of setting the MT4 on your computer. The exact options can vary by indicator (especially under the Inputs tab, which is unique to each indicator), but the standard tabs you will see include:

  • Common: The Common tab contains general settings. Here you can often toggle options like Allow DLL imports (needed if the indicator calls external libraries) or Allow external expert imports. For most straightforward indicators, you can leave these as default unless the indicator’s instructions specify otherwise. The Common tab may also include options like “Chart on foreground” or fixed minimum/maximum values if the indicator uses a separate window (for instance, oscillators). Ensure “Allow DLL imports” is checked only if the indicator explicitly requires it for additional functionality (some custom indicators that use external data or libraries need this).

  • Inputs: The Inputs tab lists the indicator’s adjustable parameters (often called “input variables” or extern variables). This is where you can fine-tune the indicator’s behavior. For example, an indicator might have an input for period length, color, or any custom setting the developer exposed. Each input has a name and a value. To change a value, double-click on the value field or select it and click “Edit”, then type the desired number or option. For instance, if you have a moving-average-based custom indicator, you might see an input for “MA_Period” which you could change from 14 to 20, etc. Adjust these inputs as needed or leave them at defaults initially. You can always modify them later if the results need tweaking.

  • Colors: The Colors tab allows you to customize the visual presentation of the indicator’s components. If the indicator draws lines, histograms, or other plot styles, you will see each element listed (Line 1, Line 2, etc., sometimes with labels if the programmer named them). You can click on the color swatches to change the color of each plotted element. You can also adjust line style or width here (for example, making a line thicker or dashed). This is useful for making the indicator more visible or to match your chart color scheme. For instance, you might change a moving average line to red and increase its thickness for better visibility.

  • Levels: The Levels tab is present if the indicator allows drawing horizontal level lines. This is common with oscillators (like RSI or custom indicators that have threshold levels). In this tab you can add or remove horizontal levels. For example, if an indicator oscillates and you want reference lines at values like 0, 50, 100, you could add those here. You can also set the color, style, and thickness of these level lines. If the custom indicator doesn’t use any preset levels, this tab might be empty or not applicable. (Some indicators that draw in a separate window will use this for things like overbought/oversold lines.)

  • Visualization: The Visualization tab lets you control on which timeframes the indicator will be displayed. By default, an indicator is set to “All Timeframes”, meaning if you attach it to a chart, it will show whenever that chart is active regardless of period. However, you can limit an indicator to only show on specific chart periods. For example, you might set a particular indicator to display only on 1-hour and 4-hour charts but not on the daily chart. In this tab, you’ll see a list of timeframe checkboxes (M1, M5, M15, H1, etc.). You can uncheck or check the ones as needed. This feature is helpful if you plan to apply multiple instances of the same indicator with different settings on different timeframes (so that each instance only appears on its intended timeframe). Additionally, there’s an option “Show in the Data Window” – if you uncheck this, the indicator’s values won’t appear in the data window. Generally, you can leave it checked so you can inspect indicator values when you hover your mouse over the chart.

Share this story

Cryptocurrencies are highly volatile and involve significant risk. You may lose part or all of your investment.

All information on Coinpaprika is provided for informational purposes only and does not constitute financial or investment advice. Always conduct your own research (DYOR) and consult a qualified financial advisor before making investment decisions.

Coinpaprika is not liable for any losses resulting from the use of this information.

Written by Miles

Published by CoinPaprika on 7 Aug 2025.

About CoinPaprikaAI content policyReport a correction
All news