JMACandleTrend_HTF_Signal - MetaTrader 5 Script - MT4/MT5 Resources


JMACandleTrend_HTF_Signal indicator shows the trend direction or execution of the indicator on the selected bar by JMAC Candle Trend as a graphical object with a colored indication of the trend or trade direction, generates an alert or sound notification if there is a signal to execute a trade or sends a push notification to the smartphone.
If the trend continues on the selected bar, the indicator will alert via a graphical object in the form of a right arrow, the color of which corresponds to the direction of the trend. If the trend on the selected bar changes, the indicator will sound an alert through a flower object, the color of which corresponds to the direction of the executed trade.
All input parameters can be divided into three major groups:
Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // Time range for calculating the indicator 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 point difference
//----Indicator display settings Input unit signal column = 0 ; // Bar index for getting the signal (0 - current bar) Input stringSymbols_Sirname =INDICATOR_NAME "_label_" ; // Indicator label name input color on symbol_color = clr dodge-blue ; // grow label color Input color DnSymbol_Color= magenta ; // Autumn label color Input color IndName_color = clr dark orchid ; // indicator name color Input unit symbol_size = 60 ; // Signal label size Input unit font size = 10 ; // Indicator name font size Input integer X_1= 5 ; // Name horizontal movement Input integer Y_1=- 15 ; // Name the vertical shift input boolean displayname = true ; // display indicator name Input ENUM_BASE_CORNER what corner = CORNER_RIGHT_UPPER ; // corner Input unit X_= 0 ; // horizontal movement Input unit Y_= 20 ; // vertical translation
//---- Alarm settings Enter ENUM_ALERT_MODEalert_mode=OnlySound; // Trigger indication options Input unit alarm count = 0 ; // number of alarms Input boolean push = true ; // Allow push notifications
If you want to use multiple JMACandleTrend_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname string variable value (the name of the indicator label).
In order for the indicator to work, the JMACandleTrend.ex5 indicator should be added to

Figure 2. Position opening signal based on JMACandleTrend indicator data

Figure 2. Position opening signal based on JMACandleTrend indicator data
Attachment download
📎 JMACandleTrend_HTF_Signal.mq5 (31.43 KB)
📎 SmoothAlgorithms.mqh (130.2 KB)
📎 JMACandleTrend.mq5 (18.63 KB)
Source: MQL5 #22569
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •