The CFractalsOnArray class is intended for calculation of Fractals on indicator buffers.
Usage:
Preparation (initialization) is not required.
The Solve() method with the following parameters is called in the OnCalculate() function:
The Test_FractalsOnArray.mq5 file is an indicator demonstrating how to use the CFractalsOnArray class. The IncFractalsOnArray file must be located in the MQL5\Include\IncOnArray directory of the terminal data folder (the IncOnArray folder must be created).
A Fractal is one of five indicators of Bill Williams’ trading system, which allows to detect the bottom or the top. Technical definition of the upwards fractal is a series of at least five successive bars, with the highest HIGH in the middle, and two lower HIGHs on both sides. The reversing set is a series of at least five successive bars, with the lowest LOW in the middle, and two higher LOWs on both sides, which correlates to the sell fractal. The fractals show upper and lower values and are marked by coloured signs on the chart.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/659
IncTrixOnArray
The CTrixOnArray class is intended for calculation of Triple Exponential Average (TRIX) on an indicator buffer.
IncPriceChannelOnArray
The CPriceChannelOnArray class is intended for calculation of the price channel on indicator buffers.
IncCHVOnArray
The CCHOOnArray class is intended for calculation of the Chaikin Volatility indicator (CHV) on indicator buffers.
IncOBVOnArray
The COBVOnArray class is intended for calculation of OBV (On Balance Volume) on indicator buffers.