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

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

author EAcpu | 6 reads | 0 comments |

GMACD - indicator for MetaTrader 5

Two-line MACD. Many trading platforms offer this indicator by default. But can't find it in Metatrader 5.

The indicator was first implemented in MQL4 and released in the code base on July 2, 2012.

The indicator uses classes from the SmoothAlgorithms.mqh library (to be copied to terminal_data_directory\MQL5\Include). Detailed usage instructions for the class are given in the article " Intermediate calculations of average price series without using additional buffers ".

Input parameters:

//+------------------------------------------------+
//|Indicator input parameters |
//+------------------------------------------------+
Enter Smooth_Method XMA_Method=MODE_T3; // Histogram smoothing method
Enter integer fast_XMA = 12 ; // fast moving average period
Input integer Slow_XMA = 26 ; // Slow moving average period
Input integer X phase = 100 ; // moving average smoothing parameter
Enter Smooth_Method Signal_Method=MODE_JJMA; // Signal line smoothing method
Input integer signal_XMA= 9 ; // signal line period
Input integer signal phase = 100 ; // signal line parameters
Enter integer application price = PRICE_CLOSE_; // price constant

illustration:

GMACD - indicator for MetaTrader 5

Figure 1 GXMACD indicator


Attachment download

📎 colorgxmacd.mq5 (11.53 KB)

📎 smoothalgorithms.mqh (133.8 KB)

Source: MQL5 #959

Verification code Refresh