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

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

author EAcpu | 2 reads | 0 comments |

Stalin_HTF_Signal - indicator for MetaTrader 5

Stalin_HTF_Signal - indicator for MetaTrader 5

Indicator Stalin_HTF_Signal displays the trend direction or indicator on the bar selected by Stalin 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 alert via a star graphical object, the color of which corresponds to the direction of the trend. If the trend of the selected bar changes, the indicator will alert with a diagonal arrow, the color and direction of which correspond to the direction of the executed trade.

All input parameters can be divided into three major groups:

 Enter string symbol_= ”” ; // Financial assets
Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // Time range for calculating the indicator
Enter ENUM_MA_METHOD MA METHOD = MODE_EMA ; Enter integer Moving Average = 0 ; Enter integer Fast = 14 ; Enter integer Slow = 21 ; Enter integer RSI = 17 ; Enter integer Confirm = 0.0 ; Enter integer Flat = 0.0 ;

  • Input parameters of the indicator Stalin_HTF_Signal required for indicator visualization:
     //----Indicator display settings
    Enter the unit signal column = 0 ; // Get the number of bars for the signal (0 - current bar)
    Input stringSymbols_Sirname =INDICATOR_NAME "_label_" ; // Indicator label name
    Enter color upper symbol_color = clelem ; // 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 ; // position angle
    Input unit X_= 0 ; // Horizontal offset
    Input unit Y_= 20 ; // vertical offset
    

  • Input parameters of the Stalin_HTF_Signal indicator, which are required to generate alerts and audio signals:
    //---- Alarm settings
    Enter ENUM_ALERT_MODEalert_mode=OnlySound; // Trigger options
    Input unit alarm count = 0 ; // number of alarms
    
  • If multiple indicators SilverTrend_HTF_Signal are used on one chart, each indicator should have its own symbol_sirname (indicator label name) string variable value.

    In order for the indicator to run, the indicator's compiled file Stalin.mq5 should be available in the terminal data folder\MQL5\Indicators\ folder.

    Stalin_HTF_Signal - indicator for MetaTrader 5

    Figure 1. Indicator Stalin_HTF_Signal. Signal for opening a position.

    Stalin_HTF_Signal - indicator for MetaTrader 5

    Figure 2. Indicator Stalin_HTF_Signal. Signal for trend continuation.


    Attachment download

    📎 stalin.mq5 (19.47 KB)

    📎 stalin_htf_signal.mq5 (28.56 KB)

    Source: MQL5 #23382

    Verification code Refresh