Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

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

author EAcpu | 4 reads | 0 comments |

XMA_Keltner_Pivot - indicator for MetaTrader 5

Two colored filled rectangles drawn between the values ​​of the two Keltner channels on a bar.

Indicator input parameters:

 //+------------------------------------------------+
//| Indicator input parameters |
//+------------------------------------------------+
Enter KeltnerSymbols_Mr.Name = "XMA_Keltner_Pivot_" ; // Name of the indicator label
Enter Smooth_Method XMA_Method=MODE_SMA_; //Method to find the average
Input unit X length = 100 ; // average depth
Input integer X phase = 15 ; // first averaging parameter,
3//----For JJMA in the range of -100...+100, it affects the quality of the transition process;
//----For VIDIA, it is the CMO cycle, for AMA, it is the slow average cycle
Enter double ratio 1= 1.0 ; // deviation 1
Enter double ratio 2 = 3.0 ; // deviation 2
Enter Applied_price_IPC=PRICE_CLOSE_; // price constant
Input color up color = clr sky blue ; // Color of the upper band
Input color DN_color = clr hot pink ; // color of lower band
Enter the unit signal bar = 0 ; // Get the bar index of the indicator value
Input unit signal length = 40 ; // length of indicator band

The indicator uses SmoothAlgorithms.mqh library class (copy it to \MQL5\Include). The use of classes to average price series for intermediate calculations without using additional buffers is described in detail in the article.

XMA_Keltner_Pivot - indicator for MetaTrader 5

Figure 1. XMA_Keltner_Pivot indicator


Attachment download

📎 SmoothAlgorithms.mqh (130.2 KB)

📎 XMA_Keltner_Pivot.mq5 (21.72 KB)

Source: MQL5 #18144

Verification code Refresh