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


WATR_HTF_Signal indicator shows the trend direction or the indicator on the selected bar by Watt as a graphical object with colored trend indication or trading direction. It also triggers an alarm and plays an audio signal.
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:
WATR indicator input parameters:
//+------------------------------------------------+ //| Indicator input parameters | //+------------------------------------------------+ Enter string symbol_= ”” ; // Financial assets Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // Calculate indicator time range Input unit WATR_K = 10 ; Input double WATR_M = 4.0 ; Input unit Attenuated Total Reflection = 21 ;
Input parameters of the WATR_HTF_Signal indicator required for indicator visualization:
//----Indicator display settings Enter the unit signal column = 0 ; // Number of bars to get the signal from (0 - current bar) Input stringSymbols_Sirname =INDICATOR_NAME "_label_" ; // Indicator label name Input color Upsymbol_Color= Cleaqua ; // Uptrend symbol color Input color Dnsymbol_Color= magenta ; // Downtrend symbol color Input color IndName_color = gray gray ; // 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 display name = true ; // indicator name display Input ENUM_BASE_CORNER what corner = CORNER_RIGHT_UPPER ; // Display corner points Input unit X_= 0 ; // Horizontal offset Input unit Y_= 20 ; // vertical offset
Input parameters of the WATR_HTF_Signal indicator required to generate alarms and audio signals:
//---- Alarm settings Enter ENUM_ALERT_MODEalert_mode=OnlySound; // indicator trigger options Input unit alarm count = 0 ; // number of alarms
If you want to use multiple WATR_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname string variable value (the name of the indicator label).
Place the compiled indicator file WATR.mq5 into terminal_data_folder\MQL5\Indicators\.

Figure 1. WATR_HTF_Signal indicator. Signal for continuation of uptrend

Figure 2. WATR_HTF_Signal indicator. Signal to open a short position
Attachment download
📎 watr.mq5 (25.85 KB)
📎 watr_htf_signal.mq5 (28.32 KB)
Source: MQL5 #17891
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •