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

ASCtrend_HTF_Signal - MetaTrader 5 Script - MT4/MT5 Resource

author EAcpu | 3 reads | 0 comments |

ASCtrend_HTF_Signal - indicator for MetaTrader 5

ASCtrend_HTF_Signal - indicator for MetaTrader 5

ASCtrend_HTF_Signal Displays the trend direction or the signal used to execute trades generated by the ASC Trend indicator as a graphical object with colored trend indication or trade direction.

If there is no entry signal at the current bar, the indicator will sound an alert with a filled triangle, the color of which corresponds to the direction of the trend:

ASCtrend_HTF_Signal - indicator for MetaTrader 5

If an entry signal appears on the current bar, the indicator will alert with an arrow, color and direction corresponding to the direction of the executed trade:

ASCtrend_HTF_Signal - indicator for MetaTrader 5

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 integer risk = 4 ;

  • ASCtrend_HTF_Signal Indicator input parameters required for indicator visualization:
     //----Indicator display settings
    Enter StringSymbols_MrName = "ASC Trend_Label_" ; // Indicator Label Name
    Input color UpSymbol_Color=lime; // Growth symbol color
    Input color DnSymbol_Color=red; //Color of downfall symbol
    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 movement of name
    Input integer Y_1=- 15 ; // Name moves 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_= 20 ; // vertical translation

  • If you want to use multiple ASCtrend_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname (indicator label name) string variable value.

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


    Attachment download

    📎 asctrend.mq5 (8.45 KB)

    📎asctrend_htf_signal.mq5 (11.19 KB)

    Source: MQL5 #675

    Verification code Refresh