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

CATROnArray is designed to calculate the value on the ATR ( Average True Range ) indicator buffer.
The OnInit() indicator function is called in Initialization() with the following parameters:
The method OnCalculate() indicator function is called in Solve() with the following parameters:
Test_ATROnArray.mq5 is a sample indicator showing CATROnArray class application. The IncATROnArray file must be placed in MQL5\Include\IncOnArray in the terminal data folder (the IncOnArray folder must be created).
Instead of three different source data buffers to the Solve method (aDataHigh[], aDataLow[] and aDataClose[] parameters), it is possible to transfer only one buffer, ie the indicator can be calculated based on the data of any other indicator.
Correct working requires the CMAOnArray class in IncMAOnArray.mqh. Can be found here .
The Average True Range technical indicator (ATR) is an indicator that shows market volatility. Wells Wilder introduced it in his book "New Concepts in Technical Trading Systems" . Since then, the indicator has been used as a component of many other indicators and trading systems.

Attachment download
📎 incmaonarray.mqh (5.07 KB)
📎 incatronarray.mqh (2.79 KB)
📎 test_atronarray.mq5 (2.88 KB)
Source: MQL5 #624
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •