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

Keltner channels are made with the draw_fill style and appear as a colored background fill.
Indicator input parameters:
//+------------------------------------------------+ //|Indicator input parameters | //+------------------------------------------------+ Input Smooth_Method MA_Method1= Mode_SMA ; // The first smoothing method Input integer length 1= 40 ; // first smoothing depth Input integer stage 1 = 15 ; // first smoothing parameter Enter Smooth_Method MA_Method2=MODE_JJMA; // The second smoothing method Input integer length 2= 20 ; // second smoothing depth Input integer stage 2 = 100 ; // second smoothing parameter Input integer Keltner period = 20 ; // Keltner smoothing period Enter double ratio = 2.0 ; // first level ratio 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 is made using an algorithm with two smoothings, and each of these two smoothings can be selected 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_klx3_cloud.mq5 (13.81 KB)
Source: MQL5 #739
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •