Join our fan page
- Views:
- 3644
- Rating:
- Published:
- 2016.02.16 15:22
- Updated:
- 2023.03.29 13:46
-
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance
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 Ltd.
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.

The CCI_On_StepChannel with the timeframe selection option available in the input parameters.

The XEnvelopes with the timeframe selection option available in the input parameters.

Two Envelopes channels, based on one moving average with different deviation values, drawn as a cloud.