XMA_Keltner_Pivot_HTF – indicator MetaTrader 5

Two colored filled rectangles with the display of channel levels. The rectangles are drawn between the values โ€‹โ€‹of two Keltner channels on one bar of any timeframe of the XMA_KLx5_Cloud indicator.

Indicator input parameters:

//+------------------------------------------------+ 
//|  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,
3//---- 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 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;

The indicator requires XMA_KLx5_Cloud.mq5 indicator file. Place it in <terminal_data_folder>\MQL5\Indicators.

  ZeroLag MACD - indicator MetaTrader 5

Fig1. The XMA_Keltner_Pivot_HTF indicator

Fig1. The XMA_Keltner_Pivot_HTF indicator


๐Ÿ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks