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

X2MA_HTF_Signal displays the trend direction of the X2MA indicator (Double Smoothed Universal Moving Average) from the last three bars as three graphical objects whose colors determine the trend direction.

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 required for the visual display of the X2MA_HTF_Signal indicator:
//--- Indicator display settings Input stringSymbols_Mr.Name = "X2MA_label_" ; // Indicator label name Input color UpSymbol_Color=blue; // 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 = 34 ; // signal symbol size Input unit font size = 15 ; // Indicator name font size Input integer X_3= 120 ; // horizontal movement of name Input integer Y_3= 10 ; // 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_= 0 ; // vertical translation
If you want to use multiple X2MA_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname (indicator label name) string variable value.
Place the X2MA 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 the class "Average price series for intermediate calculations without using additional buffers" is described in detail in the article.
Attachment download
📎 smoothalgorithms.mqh (134.03 KB)
📎 x2ma.mq5 (7.96 KB)
📎 x2ma_htf_signal.mq5 (12.31 KB)
Source: MQL5 #667
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •