Skip to content

Upload a Custom Indicator

Instead of a standard indicator, you can upload your own custom indicator and use it in your EA.

In short:

  • Upload the .mq4/.mq5 source file (preferred) or the compiled .ex4/.ex5 file.
  • EA Builder Pro analyses the indicator: its parameters and its modes (lines and arrows). This can take up to 15 minutes.
  • Then find out which mode is which (Plan A, B or C below) and give the modes a name.

There are 2 ways to upload a custom indicator:

  • When adding an indicator to your EA: Add indicator, then Upload Custom Indicator.
  • On the My Indicators page (Indicators in the navigation): Upload Custom Indicator.

Two file formats are supported:

  • mql (source code, .mq4 / .mq5): preferred, because it is analysed faster and more accurately.
  • ex (compiled, .ex4 / .ex5): when you don’t have the mql file. Our system makes its best effort to analyse the indicator.

You can only upload files of the platform you have selected with the platform button (MT4 / MT5) in the app bar: .mq4 / .ex4 in MT4 mode, .mq5 / .ex5 in MT5 mode. To upload an indicator for the other platform, switch the mode first.

  1. Click Upload Custom Indicator and select your indicator file.
  2. Wait for the analysis. The page updates automatically: you can keep it open or come back later.
  3. When the indicator is imported, check its modes (see The Mode Parameter).
  4. Add it to your EA: Add an indicator to your EA.

After the upload, EA Builder Pro analyses the indicator in two steps: first its parameters, then its modes (lines and arrows). This can take up to 15 minutes. The page updates automatically.

Your indicator is being analysed: Analysing the parameters is done, Analysing the modes (lines and arrows) is in progressYour indicator is being analysed: Analysing the parameters is done, Analysing the modes (lines and arrows) is in progress
While the indicator is analysed: first its parameters, then its modes (lines and arrows).

All statuses (Queued, Being analysed, No modes, Failed) are explained on My Indicators.

When the analysis is done, the Overview shows the result:

If all went well, you’ve successfully uploaded your custom indicator.

Indicator Heiken Ashi with the tabs Overview, Parameters and Modes and the message Indicator imported successfullyIndicator Heiken Ashi with the tabs Overview, Parameters and Modes and the message Indicator imported successfully
Indicator imported successfully: the parameters and modes have been analysed.

Chances are you’ve already used the indicator in MetaTrader. If not, take some time to do so and familiarize yourself with it. Pay special attention to its modes.

When uploading a custom indicator results in an error

Section titled “When uploading a custom indicator results in an error”

When the indicator can’t be processed, its Overview shows Error processing your indicator. with what to check:

  • Uploading a Market Place indicator? Contact us to process it for you (subscribers only).
  • Do not upload Expert Advisors (EAs).
  • If this indicator is using other indicators, try again after uploading the other indicators.
  • Do not upload renamed indicators, for example Indicator.ex5 renamed to Indicator (1).ex5.
Error processing your indicator, with tips about Market Place indicators, Expert Advisors, indicators that use other indicators and renamed indicatorsError processing your indicator, with tips about Market Place indicators, Expert Advisors, indicators that use other indicators and renamed indicators
Error processing your indicator: check the file you uploaded, or contact us.

If the issue persists, double-check that you’ve uploaded the correct file, and feel free to contact us.

If your custom indicator has one or more values (lines, arrows, histograms, colors), you must use the right one(s) in your EA. Each value is a mode (in MQL: a buffer). To find the right mode, follow the plan that matches what you see on the Modes tab of your indicator.

  • The modes already have names that match the values on your chart: no plan needed, set up the signal
  • Modes were found, as many as in MetaTrader’s Data Window: Plan A
  • Modes were found, but not as many as in the Data Window: Plan B
  • “Indicator imported, but its lines and arrows (modes) could not be detected.”: Plan C

The example below uses an arrows indicator. The plan is the same for any type of indicator (histogram, line, color, etc.).

Indicator imported, but its lines and arrows (modes) could not be detected. You can still use this indicator by entering the buffer number yourself.Indicator imported, but its lines and arrows (modes) could not be detected. You can still use this indicator by entering the buffer number yourself.
No modes were found when analyzing the indicator. Follow Plan C.

Our tool detected your indicator’s modes. Now find which mode is the one you want to use. When you are lucky, the number of modes in MetaTrader equals the number of modes found by our tool.

  1. In MetaTrader, open the Data Window (Ctrl + D) and count the indicator’s modes.
  2. Hover your mouse over an Up arrow on the chart. The mode that shows a value in the Data Window is the Up arrow, for example the first mode (Mode 0).
  3. Hover over a Down arrow to find the Down arrow mode, for example the 2nd mode (Mode 1).
  4. In EA Builder Pro, open the Modes tab of your indicator and give the modes a name: Up arrow and Down arrow.
  5. Click Save.
indicator has equal modesindicator has equal modes
2 modes were found by our system and 2 modes are visible in the Data Window. Hovering over the down arrow shows a value (2349.4000) for the 2nd mode.
Modes tab with the custom names Low/High, High/Low, Open and Close for Mode 0 to Mode 3Modes tab with the custom names Low/High, High/Low, Open and Close for Mode 0 to Mode 3
Give modes (lines/arrows) a custom name on the Modes tab, then click Save.

You’re now finished adding your indicator and you can proceed to set up the signal.

If the number of modes found by our tool doesn’t match the number of modes in the Data Window, use a free tool to find out which mode contains your Up and Down arrows: follow Plan B.

Plan B: Find the Correct Modes Using the Buffer Reader

Section titled “Plan B: Find the Correct Modes Using the Buffer Reader”
  1. Open the Market in MetaTrader and search for the EA called Buffer Reader (MT4) or Buffer Reader for MT5. Install this EA.
  2. Apply the EA to your chart. Enter the name of your indicator, without the .ex4 or .ex5 extension, and export the data.
  3. Open the exported file in Excel: go to your MetaTrader folder (Ctrl + Shift + D), then MQL4 or MQL5, then Files.
  4. Find the bar with your arrow by its timestamp, and the column that has a value on that row: that column is your mode.
  5. Rename your modes on the Modes tab, for example to Up arrow and Down arrow, and click Save.

If you get an error in step 2, make sure you made no typing error and that your indicator is in the Indicators folder, not in a sub-folder like Examples, Market or any other folder.

buffer reader mt4 mt5buffer reader mt4 mt5
The MetaTrader Market Place 'Buffer Reader For MT5' EA. Install this EA.

How to read the export:

  • 1: the row number
  • 2: the timestamp of the bar
  • 3 and further: the indicator’s buffers: the 1st buffer column is Mode 0, the 2nd is Mode 1, and so on

A long number (2147483647) means “empty value”: the mode has no value on that bar.

buffer reader export for arrows indicator
Mode 1 contains a value at 17:07, meaning that the corresponding arrow (Down arrow) is Mode 1. The long number '2147...', which you see on other rows, means 'empty value'.

You’re now finished adding your indicator and you can proceed to set up the signal.

Plan C: Finding Modes using the Buffer Reader

Section titled “Plan C: Finding Modes using the Buffer Reader”

Our tool couldn’t detect your indicator’s modes: “Indicator imported, but its lines and arrows (modes) could not be detected.” Try to find them manually. It’s also possible that the indicator doesn’t contain any modes: then it cannot be used for automation and you need another, similar indicator.

  1. Find the mode numbers with the Buffer Reader, as in steps 1 to 4 of Plan B.
  2. Add the indicator to your EA and enter the mode number in its Mode (Buffer) field, for example 0. Give it a name that says which value it contains: for the up arrows, name it for example Arrows Up.
  3. Add the same indicator to your EA again, with Mode (Buffer) 1 and the name Arrows Down.
Indicator Parameters with the Name Arrows Up and Mode (Buffer) 0Indicator Parameters with the Name Arrows Up and Mode (Buffer) 0
Manually entering the Mode number in the Mode (Buffer) field.
Indicators column with Arrows Down, Arrows Up and Heiken AshiIndicators column with Arrows Down, Arrows Up and Heiken Ashi
Added the indicator twice, once with the mode for arrow up and once for arrow down.

You’re now finished adding your indicator(s) and you can proceed to set up the signal.

Give the modes of your indicator a name, so you recognize them in the signal editor: Up arrow instead of Mode 0.

  1. Open your indicator on My Indicators, or in the panel next to the indicator in your EA.
  2. Open the Modes tab (“Give modes (lines/arrows) a custom name”).
  3. Enter a name for each mode you use.
  4. Click Save.

The names show in the Modes section when you add the indicator to an EA (Mode 0 · Up arrow) and in the signal editor (Name | Up arrow).

MetaTrader is a registered trademark of MetaQuotes Ltd. EA Builder Pro is not affiliated with MetaQuotes.