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

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

author EAcpu | 5 reads | 0 comments |

JMACandleTrend - indicator for MetaTrader 5

The JMAC candle changes direction when the semaphore signal indicator triggers.

 //+------------------------------------------------------------------------+
//| Indicator input |
//+------------------------------------------------------------------------+
Enter Smooth_Method MA_Method1=MODE_JJMA; //Smoothing method
Input integer length 1= 30 ; //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
Enter unit purchase symbol = 171 ; //Buy symbol
Enter Unit Sales Symbol = 171 ; //Sell Symbol

To replace the last two entered values, use the Wingdings font symbol table.

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.

JMACandleTrend - indicator for MetaTrader 5

Figure 1. JMACandleTrend indicator


Attachment download

📎 JMACandleTrend.mq5 (18.63 KB)

📎 SmoothAlgorithms.mqh (130.2 KB)

Source: MQL5 #22560

Verification code Refresh