The CEnvelopesOnArray class is intended for calculation of Envelopes on an indicator buffer.
The Init() method with the following parameters is called in the OnInit() function:
The Solve() method with the following parameters is called in the OnCalculate() function:
The Test_EnvelopesOnArray.mq5 is an indicator demonstrating how to use the CEnvelopesOnArray class. The IncEnvelopesOnArray file must be located in the MQL5\Include\IncOnArray directory of the terminal data folder (the IncOnArray folder must be created). The CMAOnArray class for the IncMAOnArray file is required for this class for work.
Envelopes Technical Indicator is formed with two Moving Averages, one of which is shifted upward and another one is shifted downward. The selection of optimum relative number of band margins shifting is determined with the market volatility: the higher the latter is, the stronger the shift is.
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/822
CVHFOnArray class is designed for calculation of Vertical Horizontal Filter (VHF) values on indicator buffers.ZigZag based on the fractals of a larger timeframe
ZigZag based on the fractals of a larger timeframe considering VininI_FractalsTrend indicator data.