Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2014.07.11 12:37

Indicator Tracer - indicator for MetaTrader 4

| English Español Português 日本語 Deutsch

votes: 12
ind_tracer.mq4 (3.64 KB)view


Traces the output of indicators by buffer. Output can be changed on the chart by moving the VL left or right.

This can be useful when tracing the output of custom indicators, particularly of arrow indicators whose index empty value is not exactly known.


The indicator comes with two parameters. The first is the name of the indicator. The second is the number of buffers to trace. Make sure that the indicator being referenced is installed.


As shown in the figure below, ind_tracer is used on BB. The starting position of the vertical line is set to 1, which is the last formed bar. Moving the line left or right will cause the referenced bar to change, and hence, the output.

ind_tracer on bands

On the other hand, arrow indicators such as Fractals do not always fire a value. As shown below, the indicator sets the buffers to zero to hide them on the chart.

However, this is not always the case. Some indicators may use EMPTY_VALUE or any other index value as set by the SetIndexEmptyValue() function.

ind_tracer on Fractals


  • custom indicators only: for standard indicators, search for their counterparts in the codebase
  • up to a maximum of one instance of ind_tracer on any given chart
  • works only on default parameter values for any indicator
Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.