The CPriceChannelOnArray class is intended for calculation of the price channel on indicator buffers.
Usage:
The Init() method with the following parameters is called in the OnInit() function of the indicator:
The Solve() method with the following parameters is called in the OnCalculate() function:
Additional methods:
The Test_PriceChannelOnArray.mq5 file is an indicator demonstrating how to use the CPriceChannelOnArray class. The IncPriceChannelOnArray file must be located in the MQL5\Include\IncOnArray directory of the terminal data folder (the IncOnArray folder must be created).
The market is often accelerates and decelerates its movements, so it's not easy to draw the straight lines of support and resistance levels. The Price Channel Indicator draws the price channel, its upper and lower boundaries are determined by maximal and minimal prices for a certain period.

Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/637
IncEnvelopesOnArray
The CEnvelopesOnArray class is intended for calculation of Envelopes on an indicator buffer.
IncVHFOnArray
CVHFOnArray class is designed for calculation of Vertical Horizontal Filter (VHF) values on indicator buffers.
IncTrixOnArray
The CTrixOnArray class is intended for calculation of Triple Exponential Average (TRIX) on an indicator buffer.
IncFractalsOnArray
The CFractalsOnArray class is intended for calculation of Fractals on indicator buffers.