The CPriceChannelOnArray class is intended for calculation of the price channel on indicator buffers.
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:
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 Software Corp.
Original code: https://www.mql5.com/ru/code/637
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.