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

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

author EAcpu | 3 reads | 0 comments |

JMACandle_Chl - indicator for MetaTrader 5

JMAC Candles has an indicator with two colored channels, based on the standard deviation of the highest and lowest prices of the indicator candle. In order for the indicator to display properly, select the "Foreground Chart" checkbox in the chart properties.

 //+------------------------------------------------------------------------+
//| Indicator input |
//+------------------------------------------------------------------------+
Enter Smooth_Method MA_Method1=MODE_JJMA; //Smoothing method
Input integer length 1= 12 ; //Smoothing depth
Input integer stage 1= 15 ; //smoothing parameter,
//---- For JJMA, it changes within the range of -100...+100, which affects the quality of the transient process;
//---- For VIDIA this is the CMO period, for AMA this is a slow average
Input unit gap = 10 ; //Do not consider integral gap
Input unit BB length = 10 ; // Bollinger band period
Enter double the band deviation = 1.0 ; // deviation

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

JMACandle_Chl - indicator for MetaTrader 5

Figure 1. JMACandle_Chl indicator


Attachment download

📎 JMACandle_Chl.mq5 (21.26 KB)

📎 SmoothAlgorithms.mqh (130.2 KB)

Source: MQL5 #22534

Verification code Refresh