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

StepXCCX_HTF_Signal - MetaTrader 5 Script - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

StepXCCX_HTF_Signal - indicator for MetaTrader 5

StepXCCX_HTF_Signal Displays the trend direction color StepXCCX indicator from the last three bars as three graphical objects with trend color indication.

Unlike the original, four color indicators are used here. Uptrend signals color the object in lime within the overbought zone defined by the Up1Level input parameter threshold, and in green for uptrend signals outside the overbought zone. Downtrend signals color the object magenta within the oversold zone defined by the Dn1Level input parameter threshold, and red for downtrend signals outside the oversold zone.

Indicator input parameters :

The time frame and name of the financial assets used for indicator calculations can be changed through the appropriate input parameters of the indicator. If the Symbol_(financial asset) input parameter is empty, the current chart symbol will be used as the financial asset.

All input parameters can be divided into two major groups:

 //+------------------------------------------------+
//| Indicator input parameters |
//+------------------------------------------------+
Enter string symbol_= ”” ; // Financial assets
Input ENUM_TIMEFRAMES time range = PERIOD_H6 ; // Indicator time range for indicator calculation
Input Smooth_Method DSmoothMethod=MODE_JJMA; // Price smoothing method
Input integer DP period = 30 ; // moving average period
Input integer D phase = 100 ; // Smoothing parameter
Input Smooth_Method MSmoothMethod=MODE_T3; // Deviation smoothing method
Input integer median period = 7 ; // Average deviation period
Input integer MP phase = 15 ; // Deviation smoothing parameter
Enter APPLIED_PRICE IPC= Price_TYPICAL ; // Apply price
Enter integer step size fast = 5 ; // fast step
Enter integer step size slow = 30 ; // slow step
  • StepXCCX_HTF_Signal Indicator input parameters required for indicator visualization:
     //----Indicator display settings
    Enter String Symbols_Mr. Name = "StepXCCX_" ; // Indicator Label Name
    Enter integer Previous level = + 50 ; // Overbought level
    Enter integer Dn1 level = - 50 ; // Oversold level
    Input color Up1Symbol_Color=lime; // Maximum growth symbol color
    Input color UpSymbol_Color=cyan; // Growth symbol color
    Input color DnSymbol_Color=red; //Color of downfall symbol
    Input color Dn1Symbol_Color=magenta; // Maximum failure symbol color
    Input color IndName_Color=Dark Orchid; // Indicator name color
    Input unit symbol_size = 40 ; // signal symbol size
    Input unit font size = 12 ; // Indicator name font size
    Input integer X_3= 110 ; // horizontal movement of name
    Input integer Y_3= No. 17 ; // Move the name vertically
    Input boolean display name = true ; // indicator name display
    Input ENUM_BASE_CORNER what corner = CORNER_RIGHT_UPPER ; // position angle
    Input unit X_= 0 ; // horizontal movement
    Input unit Y_= 0 ; // vertical translation
  • If you want to use multiple StepXCCX_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname (indicator label name) string variable value.

    Place the ColorStepXCCX indicator compiled file into terminal_data_folder\MQL5\Indicators\.

    The indicator uses the SmoothAlgorithms.mqh library class (must be copied to terminal_data_folder\MQL5\Include). The use of these classes is described in detail in the article " Averaging price series for intermediate calculations without using additional buffers ".

    ColorStepXCCX_.mq5 is just an intermediate version of the final indicator with two color indications.

    StepXCCX_HTF_Signal - indicator for MetaTrader 5


    Attachment download

    📎 colorstepxccx.mq5 (10.46 KB)

    📎stepxccx_htf_signal.mq5 (13.79 KB)

    📎 stepxccx_htf_signal_.mq5 (12.81 KB)

    📎 smoothalgorithms.mqh (134.03 KB)

    Source: MQL5 #674

    Verification code Refresh