0% found this document useful (0 votes)
70 views4 pages

Indicator Types

- Indicators in Metatrader can be classified into four main categories: by creator (built-in vs custom), by output (continuous line, arrow, histogram, or object-based), by display (on main chart or separate window), and by number of modes (single-mode or multi-mode). - Built-in indicators come pre-installed while custom indicators must be downloaded, and both have dedicated functions to access their output. Output can appear as continuous lines, arrows on select bars, histograms, or objects. Display is either on the main price chart or a separate sub-window. The number of modes refers to the number of buffers/data series an indicator uses to display its values.

Uploaded by

rayoldigital
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views4 pages

Indicator Types

- Indicators in Metatrader can be classified into four main categories: by creator (built-in vs custom), by output (continuous line, arrow, histogram, or object-based), by display (on main chart or separate window), and by number of modes (single-mode or multi-mode). - Built-in indicators come pre-installed while custom indicators must be downloaded, and both have dedicated functions to access their output. Output can appear as continuous lines, arrows on select bars, histograms, or objects. Display is either on the main price chart or a separate sub-window. The number of modes refers to the number of buffers/data series an indicator uses to display its values.

Uploaded by

rayoldigital
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

From a previous lesson, we have learned that basic chart bar information (time and OHLC) can

be retrieved by accessing predefined series arrays in Metatrader:

• Time[]
• Open[]
• High[]
• Low[]
• Close[]

When accessing the output of indicators, we use the predefined functions created for the
purpose of accessing a particular indicator.

But before we go into detail for the various types of indicators, let's talk about classification of
indicators in general. Indicators can be generally classified into three main categories:

• Creator
• Output
• Display
• Number of Modes

Note that these classifications are not mutually exclusive. It is possible for an indicator to
belong to more than one of the above-mentioned categories.

Classification by Creator

An indicator can be either built-in or custom-made. A built-in indicator comes on a fresh


installation of Metatrader. One no longer needs to install any additional indicator in order to use
it. And for each built-in indicator, there exist a built-in function created for the sole purpose of
getting its output. Custom indicators, on the other hand, are developed by third parties (trader,
programmer, etc.). They are accessed using the iCustom() function, another built-in function in
Metatrader.

Classification by Output
Output is defined here as how an indicator appears visually on the chart. Under this category,
there are at least 4 sub-categories:

• Continuous (Line) Indicators


• Arrow Indicators
• Histogram Indicators
• Object-based

All indicators (except object-based indicators) use buffers that feed data to trading platform
somewhat in a form of a time-series array. However, rather than using arrays to retrieve the
data for these indicators, certain built-in functions are used.

Continuous (Line)
A continuous indicator is an indicator that displays a continuous line on the chart. This means
that every bar on the chart has a corresponding calculated value for it. An example of this
indicator is the moving average indicator:
As we can see from the screen shot above, the moving average forms an unbroken line
althroughout the chart. Note that the plot would appear continuous when viewed visually.
However, in reality, the data is discrete. Metatrader simply "connects" the dots between the
values of the moving average for each bar, giving it a continuous look.

Arrow
An arrow indicator is an indicator that paints arrows on the chart. In most cases, the arrow is
painted only on a small number of bars. Other bars are left lacking of arrows. An example of
this is the Fractals indicator:

As we can see above, there are only a total of 8 bars with arrows. Other bars appear not to
have arrows hovering above or below them. But the truth is, all the bars have arrows.

When you hover the mouse pointer on these arrows, you will see that there is a value assigned
to each of them. The arrows are plotted on a 2D coordinate, with x as time (in period) and y as
chart price. This is also in a way similar to how the OHLC prices are displayed on the chart.

The arrows for the other bars cannot be seen because they are assigned a y-value (price) that
would be near impossible to see on the current resolution of the chart.
For example, values such as zero or 2147483647(also known as EMTPY_VALUE, the maximum
value of a variable of type double) can be used for these indicators. The values for the missing
arrows are either too high or too low to be seen on a normal chart.

In order to use an arrow-based indicator on a robot, we need to understand its output. This is
because a trading robot has no visual faculties, and has to rely on the data feed in order to
detect the presence of an arrow on a chart bar as a human trader would see.

Histogram
A histogram indicator, is visually different from a continuous indicator. But technically, they are
just the same. When accessing a histogram indicator using a robot, treat it as if it is a
continuous indicator.

Object-based

Object-based indicators are indicators that do not use buffers in order to feed data to
the chart. Rather, they use chart objects. Therefore, in order to access the output on these
indicators, the trading robot should simply get the objects being created by such indicators.
Indicators of these type are rare and are always custom-made.

Classification by Display
There are two ways an indicator can be possibly displayed on the chart:
• Main chart window
• Separate window

Examples of indicators displayed on the chart window are the two images presented earlier
(moving average and Fractals). The visuals for these indicators are displayed in the same
window or frame where the price graph is displayed.
Indicators displayed on a separate window take a small sub-window. An example of this is the
Stochastic oscillator:
The indicator above is displayed on a sub-window right below the main chart window.

Classification by Number of Modes


As mentioned earlier, an indicator uses a buffer to feed data to the trading platform. A single
mode indicator has only one possible mode, and uses only a single buffer. An example of this is
the moving average indicator, which only displays a single line. On the other hand, if it needs
to output more than one data set, it would use additional buffers. An example of this is the
Stochastics oscillator, and the MACD indicator, as shown in the following illustration:

As we can see, this indicator has two outputs: one for the histogram, and one for the signal
line. It uses two buffers, one for each mode.

You might also like