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


If the trend continues on the selected bar, the indicator will show a right arrow. Its color corresponds to the trend direction. If the trend of the selected bar has changed, the indicator displays diagonal arrows. Its color and direction correspond to the trading direction.
All input parameters can be divided into three major groups:
Enter string symbol_= ”” ; // Financial instrument Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // Calculate indicator time range Input Smooth_Method XMA_Method= Mode_SMA ; //Method for averaging Input integer X length = 3 ; // smoothing depth Input integer X phase = 15 ; // Smoothing parameter //--- XPhase: For JJMA, it changes in the range of -100...+100, affecting the quality of the transient process; //--- Phase X: For VIDIA, it is the CMO period, for AMA, it is the slow MA period. Input Application_Price_IPC= PRICE_CLOSE ; // Price constant Enter double Kf = 1 ; enter double fast = 2 ; enter double sharp = 2 ; enter Alg_Method mode = MODE_OUT; // Breakthrough algorithm Input unit NRatio_UpLevel= 80 ; // Overbought level Input unit NRatio_DnLevel= 20 ;
//----Indicator visualization settings Input unit signal field = 0 ; // Number of bars used to get the signal (0 is the current bar) Input stringSymbols_Sirname =INDICATOR_NAME "_label_" ; // Indicator label name Input color Upsymbol_Color= clr blue-purple ; // Uptrend symbol color Input color Dnsymbol_Color= magenta ; // Downtrend symbol color Input color IndName_color = clr dark orchid ; // indicator name color Input unit symbol_size = 60 ; // signal symbol size Input unit font size = 10 ; // Indicator name font size Input integer X_1= 5 ; // Horizontal name offset Input integer Y_1=- 15 ; // Vertical name offset input boolean displayname = true ; // display indicator name Input ENUM_BASE_CORNER what corner = CORNER_RIGHT_UPPER ; // Display the symbol's corner Input unit X_= 0 ; // Horizontal offset Input unit Y_= 20 ; // vertical offset
//---- Alarm settings Enter ENUM_ALERT_MODEalert_mode=OnlySound; // Options to trigger indication Input unit alarm count = 0 ; // number of alarms
If you want to use multiple NRatio_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname (indicator label name) string variable value.
This indicator requires the compiled indicator file NRatioSign.mq5. Place it in <terminal data folder>\MQL5\Indicators\.

Figure 1. NRatio_HTF_Signal indicator. Trend continuation signal

Figure 2. NRatio_HTF_Signal indicator. signal to close a deal
Attachment download
📎 smoothalgorithms.mqh (130.19 KB)
📎 nratiosign.mq5 (12.21 KB)
📎 nratio_htf_signal.mq5 (16.66 KB)
Source: MQL5 #12695
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •