Skip to content

Add an indicator to your EA

Before you can add an indicator to an EA, add an EA to your account first. Then add indicators in the Indicators column of the EA editor.

In short:

  • Click Add indicator, pick an indicator from the list, set it up and click Save.
  • Give the indicator a short, friendly Name: it is how you find it in the signal editor.
  • Choose the Modes (lines or arrows) you want to use in your signals.
  • A linked parameter is one shared input in MetaTrader for all copies of the indicator.
  1. In the EA editor, click Add indicator in the Indicators column.
  2. Search or scroll the list and click the indicator you would like to add.
  3. Set it up: name, modes and parameters (see below).
  4. Click Save. The indicator is added to your EA.
Indicators column with the indicators Bands and supertrend and the button Add indicatorIndicators column with the indicators Bands and supertrend and the button Add indicator
The Indicators column of the EA editor with two indicators. Click Add indicator to add another.

The list contains all available indicators of your platform (MT4 or MT5):

  • MetaTrader: all standard MetaTrader 4/5 indicators.
  • Web: indicators sourced from the web that we added for you. A Pro Web indicator needs a Pro subscription.
  • My Indicators: your own indicators, if you uploaded any.

Use Search, Filters and the sort order (Name A–Z, Most used, …) to find an indicator. Not in the list? Click Upload Custom Indicator: see Upload a Custom Indicator.

Search for indicators with Search, Filters, the sort order Name A-Z and a list of MT5 indicatorsSearch for indicators with Search, Filters, the sort order Name A-Z and a list of MT5 indicators
A list of available indicators for your Expert Advisor.

After you click an indicator, you set it up for your EA: its name, its modes and its parameters. The panel on the right shows the indicator’s description (Overview), its parameters and its modes.

Indicator Parameters of Moving Average with Name MA and the parameters Timeframe, Period, MA Shift, Method and Apply toIndicator Parameters of Moving Average with Name MA and the parameters Timeframe, Period, MA Shift, Method and Apply to
Set the name and the parameter values of your indicator.

Shown in your indicator list and signal editor. Optional: when you leave it empty, the indicator’s own name is used. Each indicator in an EA needs a unique name.

We advise a short, friendly name that is easy to remember, especially when you use the same indicator more than once with different settings, for example MA 7 and MA 30, or a different timeframe.

Many indicators have more than one mode: for example an upper and a lower band, or an up and a down arrow. Check the modes you want to use in your signals; at least one. Each checked mode becomes an operand in the signal editor.

Modes (lines/arrows) with four checked modes: Mode 0 Low/High, Mode 1 High/Low, Mode 2 Open, Mode 3 Close, and Edit namesModes (lines/arrows) with four checked modes: Mode 0 Low/High, Mode 1 High/Low, Mode 2 Open, Mode 3 Close, and Edit names
The four modes of Heiken Ashi, with custom names. Edit names gives them a custom name.
  • Edit names gives your own indicators readable names, such as Up arrow instead of Mode 0. How to find which mode is which: The Mode Parameter.
  • An indicator without detected modes shows a Mode (Buffer) field instead, in which you enter the mode number.
  • An indicator with a single mode has no Modes section.

The settings of the indicator, such as Period, Method and Apply to. Each has a short description under it. If Save shows an error under a field, a required value is missing or invalid: fix it and save again.

A parameter with a link icon can be linked. Linked values are one shared input in MetaTrader for all copies of this indicator.

  • Use it when you add the same indicator more than once and want one input instead of several: it simplifies and speeds up optimization in MetaTrader.
  • Changing a linked value in one copy changes it in all other copies of that indicator.
  • Click the icon in the field to link or unlink the parameter.

Fixing an indicator to a specific timeframe

Section titled “Fixing an indicator to a specific timeframe”

By default, an indicator runs on the timeframe of the chart your EA is attached to. When you switch that chart to a different timeframe, your indicators re-evaluate on the new timeframe, and so do the Buy and Sell signals that depend on them. As a result, your EA may open or close orders simply because you changed the chart timeframe.

If you don’t want the chart to influence your EA, set the indicator’s Timeframe parameter to the timeframe your EA should run on, for example H1. Once a fixed Timeframe is set, changing the chart timeframe no longer affects your indicators or your signals, so your open orders are left untouched.

  • Edit: click the indicator in the Indicators column. Change it and click Save.
  • Save As: in the menu next to Save. Saves your changes as a new, extra indicator in your EA, for example a second Moving Average with another period.
  • Reset to defaults: in the menu (⋮) of the indicator page. Sets all parameters back to the indicator’s default values.
  • Remove: click the trash icon next to the indicator in the Indicators column.

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