IncERDOnArray - MetaTrader 5 Library | Forex Indicator Download - MT4/MT5 Resources

The CERDOnArray class is designed to calculate the Efficiency Ratio (ER) used to calculate the Adaptive Moving Average (AMA) taking into account the price movement direction. This indicator has a positive value when the price moves upward and a negative value when the price moves downward.
The method OnInit() function with the following parameters is called in Initialize() :
The method OnCalculate() is called with the following parameters in the resolve() function:
Additional methods:
Test_ERDOnArray.mq5 is a sample indicator showing CERDOnArray class application. The IncERDOnArray file must be placed in the terminal data folder MQL5\Include\IncOnArray (the IncOnArray folder must be created).
The Adaptive Moving Average (AMA) technical indicator is used to construct a moving average with low sensitivity to price series noise and is characterized by minimal lag in trend detection. This indicator was developed and described by Perry Kaufman in his book "Smarter Trading".

Attachment download
📎 incerdonarray.mqh (2.41 KB)
📎 test_erdonarray.mq5 (2.2 KB)
Source: MQL5 #632
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •