The classic Envelopes indicator which uses the algorithms of universal averaging and fills the channel with a colored background.
The indicator uses SmoothAlgorithms.mqh library classes (copy it to <terminal_data_folder>\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".
Figure 1. The XEnvelopes indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/14742
The indicator helps to determine the beginning and end of trends on the basis of the slope of the "matches" lines and the color of their heads. Each match represents a line between the smoothed open price of a bar and the smoothed close price of the next one.CCI_On_StepChannel_HTF
The CCI_On_StepChannel with the timeframe selection option available in the input parameters.