Indicators: Aroon

 

Aroon:

Aroon indicator was developed by Tushar S. Chande, CEO of the "Tuscarora Capital Management" company and the author of the books "The New Technical Trader: Boost Your Profit by Plugging into the Latest Indicators" and "Beyond Technical Analysis: How to Develop and Implement a Winning Trading System" in 1995 to determine trend direction and strength.

Its main advantage is to allow a trader to determine the beginning of a new trend, or the end of an existing trend. Higher indicator values show more recent maximums and minimums, whereas lower values show less recent maximums and minimums. Besides, Aroon indicator values oscillate between levels 0 and 100 where a higher value indicates a stronger trend and vice versa. Indicator moves around 30 and 70 key positions - movements higher than 70 indicate a strong trend, whereas movements lower than 30 indicate a weak trend.

Movements between 30 and 70 indicate that the market is unstable. For example, if the bullish indicator is higher than level 70, whereas the bearish indicator is lower than level 30, the trend is definitely upward. Intersections between bullish and bearish indicators indicate confirmations, if they occur between the levels 30 and 70. For example, if the bullish indicator intersects the bearish one upwards, a upward trend is confirmed.

Aroon Indicator

Author: Nikolay Kositsin

 

Dear Sergey,

Thank you for the indicator. I am trying to use it for my EA.

However, I get always the same values when I - for example - try to print the values.


The code is as follows:

// Handle and variables defined before!!!

aroonHandle = iCustom(_Symbol, _Period, "Market\\aroon", aroonPeriod, 0); // Adjust parameters as needed
   
   if(aroonHandle == INVALID_HANDLE)
   {
      Print("Error initializing Aroon indicator!");
      return;
   }
   
   for (int shift = 0; shift < 3; shift++)
   {
      // Get the Aroon values for the last three candles
      double aroonUp = iCustom(_Symbol, _Period, "Market\\aroon", aroonPeriod, 0, shift);
      double aroonDown = iCustom(_Symbol, _Period, "Market\\aroon", aroonPeriod, 1, shift);
   
      // Print the values
      Print("Candle", shift, " - Aroon Up:", aroonUp);
      Print("Candle", shift, " - Aroon Down:", aroonDown);
   }


The values printed are always:


Candle0 - Aroon up:          10.0
Candle0 - Aroon down:     11.0
Candle1 - Aroon up:          12.0
Candle1 - Aroon down:     13.0
Candle2 - Aroon up:          14.0
Candle2 - Aroon down:     15.0



Even with other codes, the indicator always gives me these values back with iCustom.


What am I doing wrong?


Thank you in advance!

Reason: