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

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

author EAcpu | 6 reads | 0 comments |

HLR_HTF_Signal - indicator for MetaTrader 5

HLR_HTF_Signal - indicator for MetaTrader 5

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 assets
Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // Calculate indicator time range
Input Alg_Method mode=MODE_IN; // Breakthrough algorithm
Input unit HLR_range = 40 ; // indicator average period
Input unit HLR_UpLevel= 80 ; // Overbought level
Input unit HLR_Dn level = 20 ; // Oversold level
  • HLR_HTF_Signal input parameters required for visualizing indicators:
     //----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 UpSymol_Color=lime; // Uptrend symbol color
    Input color DnSymol_Color=magenta; // Downtrend symbol color
    Input color IndName_Color=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
    
  • HLR_HTF_Signal indicator input parameters required to trigger alarms and audio signals:
     //---- 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 HLR_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 HLRSign.mq5. Place it in <terminal data folder>\MQL5\Indicators\.

    HLR_HTF_Signal - indicator for MetaTrader 5

    Figure 1. HLR_HTF_Signal indicator. Trend continuation signal

    HLR_HTF_Signal - indicator for MetaTrader 5

    Figure 2. HLR_HTF_Signal indicator. signal to close a deal


    Attachment download

    📎 hlrsign.mq5 (7.91 KB)

    📎 hlr_htf_signal.mq5 (14.69 KB)

    Source: MQL5 #12574

    Verification code Refresh