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

XMACD_HTF_Signal displays the trend direction from the last three bars of the XMACD indicator as three graphical objects whose colors determine the trend direction.

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 display settings Enter string Symols_Mr.Name = "XMACD_label_" ; // Indicator label name Input color UpSymol_Color=lime; // Growth symbol color Input color DnSymol_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 XMACD_HTF_Signal indicators on one chart, each indicator should have its own Symbols_Sirname (indicator label name) string variable value.
Place the XMACD indicator compiled file and save it to 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)
📎 xmacd.mq5 (8.61 KB)
📎 xmacd_htf_signal.mq5 (12.72 KB)
Source: MQL5 #666
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •