Hey traders! Today, let’s dive into the XMA Keltner Pivot HTF indicator for MetaTrader 5. This nifty tool features two colored filled rectangles that display channel levels, drawn between the values of two Keltner channels on any timeframe. You’ll find it particularly useful for your trading strategy!
Indicator Input Parameters
Here’s a quick rundown of the input parameters you’ll need to set up:
//+------------------------------------------------+ //| Indicator input parameters | //+------------------------------------------------+ input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4; // Chart period input string Symbols_Sirname="XMA_Keltner_Pivot_"; // Name for the indicator labels input Smooth_Method XMA_Method=MODE_SMA_; // Method of averaging input uint XLength=100; // Depth of averaging input int XPhase=15; // First averaging parameter //---- for JJMA within the range of -100 ... +100, it influences the quality of the transition process; //---- for VIDIA it is a CMO period, for AMA it is a slow average period input double Ratio1=1.0; // Deviation 1 input double Ratio2=3.0; // Deviation 2 input double Applied_price_IPC=PRICE_CLOSE_; // Price constant input color Up_Color=clrSkyBlue; // The color of the upper band input color Middle_Color=clrGray; // The color of the middle line input color Dn_Color=clrHotPink; // The color of the lower band input uint SignalBar=0; // Bar index to get the indicator values input uint SignalLen=40; // The length of the indicator bands //---- Colors of price labels input color Middle_color=clrBlue; input color Upper_color1=clrMediumSeaGreen; input color Lower_color1=clrRed; input color Upper_color2=clrDodgerBlue; input color Lower_color2=clrMagenta;
Don't forget, this indicator works in conjunction with the XMA_KLx5_Cloud.mq5 file. Make sure you place it in your <terminal_data_folder>\MQL5\Indicators directory.

Fig1. The XMA Keltner Pivot HTF indicator
Related Posts
- Unlocking MetaCOT 2: Your Ultimate CFTC Indicator Toolkit for MT4
- Unlocking the Power of Master Tools for MetaTrader 4
- Unlock Trading Insights with Volume Profile + Range v6.0 for MetaTrader 5
- Mastering the FE Fibonacci Expansion Indicator for MetaTrader 4
- Mastering the MACD Candle Indicator for MetaTrader 4