X2MA_BBx3_Cloud - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

Bollinger Bands® are drawn in a fill style and appear with a colored background, which in many cases makes them more visible.
Input parameters:
//+------------------------------------------------+ //|Indicator input parameters | //+------------------------------------------------+ Input Smooth_Method MA_Method1= Mode_SMA ; // The first smoothing method Input integer length 1= 100 ; // first smoothing depth Input integer stage 1 = 15 ; // first smoothing range Input Smooth_Method MA_Method2=MODE_JJMA; // Second smoothing method Input integer length 2= 20 ; // Second smoothing depth Input integer stage 2 = 100 ; // second smoothing parameter Input integer band period = 100 ; // BB smoothing period Enter double the band difference = 2.0 ; // number of deviations Input application_price_IPC= PRICE_CLOSE ; // application price Enter integer shift = 0 ; // horizontal movement of the indicator in bars Input integer price movement = 0 ; // vertical movement of the indicator in points
The indicator center line consists of a universal moving average with two types of smoothing, and each smoothing can be chosen from a dozen possible versions:
It should be noted that the Phase1 and Phase2 parameters have completely different meanings for different smoothing algorithms. For JMA, it is an external phase variable that varies from -100 to +100. For T3, it is the smoothed ratio multiplied by 100 for better visualization; for VIDYA, it is the CMO oscillation period; for AMA, it is the slow EMA period. In other algorithms, these parameters do not affect smoothing. For AMA the fast EMA period is a fixed value, equal to 2 by default. For AMA, the ratio of raised powers is also equal to 2.
The indicator uses the SmoothAlgorithms.mqh library class (must be copied to terminal_data_folder\MQL5\Include). The use of the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.

Attachment download
📎 smoothalgorithms.mqh (133.8 KB)
📎 x2ma_bbx3_cloud.mq5 (13.03 KB)
Source: MQL5 #738
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •