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

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

author EAcpu | 5 reads | 0 comments |

BBflat_sw - indicator for MetaTrader 5

Simple explanation of the Bollinger Bands indicator in a separate window.

Indicator input parameters:

 //+------------------------------------------------+
//|Indicator input parameters |
//+------------------------------------------------+
Input Smooth_Method XMA_Method= Mode_SMA ; //Method for averaging
Input integer X length = 100 ; // average depth
Input integer X phase = 15 ; // average parameter
Input integer band period = 100 ; // BB average period
Enter double the band difference = 2.0 ; // deviation
Input Application_Price_IPC= PRICE_CLOSE ; // Price constant
Enter integer shift = 0 ; // horizontal movement of the indicator in bars

The indicator was first implemented in MQL4 and published in the code base on May 7, 2008.

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.

BBflat_sw - indicator for MetaTrader 5

Figure 1. BBflat_sw indicator


Attachment download

📎bbflat_sw.mq5 (8.68 KB)

📎 smoothalgorithms.mqh (134.03 KB)

Source: MQL5 #1729

Verification code Refresh