• Overview
  • Reviews
  • Comments

Dazi MTF AroonOscillator

Aroon Oscillator Indicator with the capability to work on higher timeframes (MTF).

This indicator is designed to run on lower timeframes (the timeframe of the chart the indicator is attached to) while it is calculating values from a higher timeframe (the working timeframe).

It has 3 advantages:

  • buffer shift corresponds to the working (MTF) timeframe (when using in combination with expert advisor)
  • visualize also in backtesting
  • any timeframe possible (e.g. H12 or D2)

Brief Description

The Aroon Oscillator indicator oscillates between +100 and -100. It provides buy and sell signals based on the Aroon formula (developed by T. Chanda in 1995). It can be used to detect trends and their strength.

If the value is above the zero line the price is bullish, below zero it is bearish.

If it is above +50 a strong uptrend is assumed, below -50 a strong downtrend is assumed.


  • Timeframe where the indicator shall work (MTF)
    To be selected from the predefined timeframes. Should not be less than the timeframe of the chart the indicator is running, but is forced to be the chart timeframe in case it is.
  • Timeframe Factor
    Value by which the selected timeframe is multiplied with. Will be forced to a minimum of "1".
  • Period
    The number of bars to be considered for calculation. Will be forced to a minimum of "1".
  • Level
    The level for assuming a strong trend. Will be forced to a value between "0" and "100".

Buffer shift

The indicator shall be called with iCustom (NULL,0,"di_MTF-AroonOscillator",....,buffer,shift).

Buffer corresponds to the provided and required buffer. This indicator provides only one buffer (the Aroon value between -100 and +100), so buffer shall be "0".

Shift corresponds to the bar - but of the working timeframe.

Example: active chart is on timeframe M1 while the indicator is working on timeframe M15. Then shift 0 returns the current Aroon value of the working timeframe (M15), shift 1 returns the previous value of M15 (value at the last closed bar in M15), shift 2 corresponds to the value at the 2nd closed bar in M15, etc.

Visualize in Backtest

The indicator works fine in visual charts of the strategy tester. Thus it is possible to visualize the values of the indicator and to verify the strategy of the expert advisor while the backtest is ongoing.

Any timeframe

The parameter timeframe can only be selected from the predefined timeframes. But it is multiplied by the factor, which makes it possible to work on any timeframe.

When the chart timeframe is M1, while the indicator shall work on M10, then the parameters "timeframe=M1, factor=10" or "timeframe=M5, factor=2" will work.

This may be interesting especially for higher timesframes like H12, D2 or D3.


As per the original behavior this indicator returns only the Aroon value. But for manual mode 3 colored histograms have been added to highlight the value.

If the value is above the positive level (strong uptrend), the histogram is blue, below the negative level (strong downtrend) it is red, between the levels it is gray (see attached screenshot).

The screenshot shows a possible scenario and the advantage of a MTF indicator:

Two indicators can be on the same chart but on different timeframes. The higher timeframe can act as a filter of noisy signals from the lower timeframe. And with the combination of timeframe and factor the higher timeframe is very fine adjustable.

Example for use with iCustom

Assuming the chart timeframe is M5 and the indicator shall calculate with the parameters Period=10, Level=40 on timeframe H2 and the expert advisor needs the value of the last closed bar of H2, then the function call may be: v=iCustom(NULL, 0, "di_MTF-AroonOscillator", PERIOD_H1, 2, 10, 40, 0, 1)

No reviews