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

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

author EAcpu | 4 reads | 0 comments |

XMA_BB_Pivot - indicator for MetaTrader 5

Two colored filled rectangles drawn between two Bollinger Band values ​​on a bar.

Indicator input parameters:

 //+------------------------------------------------+
//| Indicator input parameters |
//+------------------------------------------------+
Enter StringSymbols_MrName = "XMA_BB_PIVOLE_" ; // 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 the band deviation 1 = 2.0 ; // deviation 1
Enter double the band deviation 2 = 4.0 ; // deviation 2
Enter Applied_price_IPC=PRICE_CLOSE_; // price constant
input color up color = clr aquamarine ; // color for the upper band
Input color DN_color = plum blossom ; // 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_BB_Pivot - indicator for MetaTrader 5

Figure 1. XMA Bollinger Bands Pivot Indicator


Attachment download

📎 SmoothAlgorithms.mqh (130.2 KB)

📎 XMA_BB_Pivot.mq5 (20.94 KB)

Source: MQL5 #18143

Verification code Refresh