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

Slow-Stoch_HTF_Signal - MetaTrader 5 Script - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

Slow-Stoch_HTF_Signal - indicator for MetaTrader 5

Slow-Stoch_HTF_Signal - indicator for MetaTrader 5

Slow-Stoch_HTF_Signal displays data-based trend direction information Slow-Stoch indicator on the selected bar as a graphical object with a colored indication of the trend or trading direction and generates alerts or audio signals and sends push notifications on smartphones when a signal to place a trade occurs.

The indicator sends alerts and push notifications only if the value of the input parameter meets the following conditions:

 Input unit signal field = 0 ; // Number of bars to receive the signal (0 - current bar)

greater than one. For zero bars, sound signals and push notifications are of no use, since the indicator signal on the zero bar may change and disappear!

All input parameters can be divided into three major groups:

 Enter string symbol_= ”” ; // Symbol
Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // time range for indicator calculation

Input unit K period = 5 ; Input unit DP period = 3 ; Input unit deceleration = 3 ; Input ENUM_MA_METHOD STO_method = mode_SMA ; Input ENUM_STO_PRICE price field = STO_LOWHIGH ; Input Smooth_Method XMA_Method=MODE_JJMA; //Method to find the average
Input unit X length = 5 ; // smoothing depth
Input integer X phase = 15 ; // Smoothing parameter
//---- For JJMA, it changes in the range of -100...+100 and affects the quality of the transient process;
//---- It is the CMO period for VIDIA and the slow moving average period for AMA
  • Input parameters of the Slow-StochI_HTF_Signal indicator 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_" ; // Name of the indicator label
    Input color UpSymol_Color=lime; // Color of the growth symbol
    Input color DnSymol_Color=magenta; //Color of down symbol
    Input color IndName_Color=Dark Orchid; // Color of indicator name
    Input unit symbol_size = 60 ; // Size of indicator symbol
    Input unit font size = 10 ; // Indicator name font size
    Input integer X_1= 5 ; // horizontal movement of name
    Input integer Y_1=- 15 ; // Name moves vertically
    input boolean displayname = true ; // display indicator name
    Input ENUM_BASE_CORNER what corner = CORNER_RIGHT_UPPER ; // position angle
    Input unit X_= 0 ; // horizontal movement
    Input unit Y_= 20 ; // vertical translation
    
  • The input parameters of the Slow-Stoch_HTF_Signal indicator are necessary to generate alerts and audio signals:
     //---- Alarm settings
    Enter ENUM_ALERT_MODEalert_mode=OnlySound; // Options to trigger indication
    Input boolean push = true ; // Allow push notifications
    Input unit alarm count = 0 ; //Number of alarms generated
  • If you want to use multiple Slow-Stoch_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 Slow-Stoch.mq5 to run. Place it into terminal_data_folder\MQL5\Indicators\.

    Slow-Stoch_HTF_Signal - indicator for MetaTrader 5

    Figure 1 Trend continuation signal based on Slow-Stoch_HTF_Signal indicator data

    Slow-Stoch_HTF_Signal - indicator for MetaTrader 5

    Figure 2. Position opening signal based on Slow-Stoch_HTF_Signal data


    Attachment download

    📎 smoothalgorithms.mqh (134.03 KB)

    📎 slow-stoch.mq5 (7.49 KB)

    📎 slow-stoch_htf_signal.mq5 (14.94 KB)

    Source: MQL5 #2184

    Verification code Refresh