Home Technical Indicator Post

Unlocking Trading Insights: The X2MA_HTF_Signal Indicator for MetaTrader 5

Attachments
667.zip (23.36 KB, Download 0 times)

The X2MA_HTF_Signal is a powerful tool that showcases trend directions based on the last three bars of the X2MA indicator, which stands for Universal Moving Average with double smoothing. This indicator presents trend data in a visually appealing way, utilizing three graphical objects where colors indicate the trend direction.

X2MA HTF Signal

Input Parameters:

You can easily customize the timeframe and financial asset for the indicator through its input parameters. If the Symbol_ input is left empty, it will default to the current chart's symbol.

The input parameters can be categorized into two main groups:

  1. For detailed information on the X2MA indicator's input parameters, check out its description in the X2MA indicator section.
  2. Here are the input parameters needed for the visual display of the X2MA_HTF_Signal indicator:

    //--- indicator display settings
    input string Symbols_Sirname="X2MA_Label_";  // Indicator labels name
    input color UpSymbol_Color=Blue;           // Growth symbol color
    input color DnSymbol_Color=Red;            // Downfall symbol color
    input color IndName_Color=DarkOrchid;      // Indicator name color
    input uint Symbols_Size=34;                // Signal symbols size
    input uint Font_Size=15                   // Indicator name font size
    input int X_3=120                         // Horizontal shift of the name
    input int Y_3=10                          // Vertical shift of the name
    input bool ShowIndName=true               // Indicator name display
    input ENUM_BASE_CORNER  WhatCorner=CORNER_RIGHT_UPPER; // Location corner
    input uint X_=0;                           // Horizontal shift
    input uint Y_=0                           // Vertical shift

If you're planning to use multiple X2MA_HTF_Signal indicators on the same chart, make sure each one has a unique Symbols_Sirname to avoid any mix-ups.

To install the X2MA indicator, simply place the compiled file in the terminal_data_folder\MQL5\Indicators\ directory.

Additionally, this indicator utilizes the SmoothAlgorithms.mqh library classes, which must be copied to the terminal_data_folder\MQL5\Include. For more details on these classes, check out the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".

Related Posts

Comments (0)