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

trend_arrows_HTF_Signal - MetaTrader 5 Script - MT4/MT5 Resource

author EAcpu | 3 reads | 0 comments |

trend_arrows_HTF_Signal - indicator for MetaTrader 5

trend_arrows_HTF_Signal - indicator for MetaTrader 5

trend_arrow_HTF_Signal Displays the trend direction or signal generated by executing a trade Trend Arrow Indicator on the selected bar as a graphical object with colored trend indication or trade direction and sends alerts or audio signals at market entry moments.

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 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:

 //+------------------------------------------------+
//| Indicator input parameters |
//+------------------------------------------------+
Enter string symbol_= ”” ; // Financial assets
Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // Calculate indicator time range
Input unit i period = 15 ; // indicator period
Input unit iFullPeriods= 1 ;

  • Input parameters of trend_arrows_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= clear blue ; // Uptrend symbol color
    Input color Dnsymbol_Color= red blood cells ; // 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 corner points
    Input unit X_= 0 ; // Horizontal offset
    Input unit Y_= 20 ;
  • The input parameters of the trend_arrows_HTF_Signal indicator are required to generate alerts and audio signals:
     //---- Alarm settings
    Enter ENUM_ALERT_MODEalert_mode=OnlySound; // indicator trigger options
    Input unit alarm count = 0 ; //Number of alarms generated
    
  • If you want to use multiple trend_arrows_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname (indicator label name) string variable value.

    Place the indicator compiled file trend_arrows.mq5 into terminal_data_folder\MQL5\Indicators\ of the client.

    trend_arrows_HTF_Signal - indicator for MetaTrader 5

    Figure 1. trend_arrows_HTF_Signal. Trend continuation signal

    trend_arrows_HTF_Signal - indicator for MetaTrader 5

    Figure 2. trend_arrows_HTF_Signal. signal to close a deal


    Attachment download

    📎 trend_arrows.mq5 (13.66 KB)

    📎 trend_arrows_htf_signal.mq5 (14.24 KB)

    Source: MQL5 #15558

    Verification code Refresh