CATROnArray is designed for calculation of ATR (Average True Range) values on indicator buffers.
Init() method with the following parameters is called in the OnInit() indicator function:
Solve() method with the following parameters is called in the OnCalculate() indicator function:
Test_ATROnArray.mq5 is a sample indicator showing CATROnArray class application. IncATROnArray file must be placed to MQL5\Include\IncOnArray of the terminal data folder (IncOnArray folder must be created).
Instead of three different source data buffers transferred to Solve method (aDataHigh, aDataLow and aDataClose parameters) only one buffer may be transferred, i.e., the indicator can be calculated according to the data of any other indicator.
CMAOnArray class from the IncMAOnArray.mqh is needed for the proper work. It can be found here.
Average True Range Technical Indicator (ATR) is an indicator that shows volatility of the market. It was introduced by Welles Wilder in his book "New concepts in technical trading systems". This indicator has been used as a component of numerous other indicators and trading systems ever since.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/624
Vertical time grid with one week step.Multi RSI
Eight RSI (Relative Strength Index) technical indicators in one chart.