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

MACD MA Price - MetaTrader 4 Script | Forex Indicator Download - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

MACD MA Price - indicator for MetaTrader 4

The calculation formula of the standard MACD indicator is:

Signal = SMA(MACD, 9),

The main line (MACD) is drawn on the exponential moving average (EMA), the signal line (SIGNAL) is drawn on the simple moving average (SMA), and the applied price is limited to the closing price (CLOSE).

The suggested indicator MACD MA Price is more elastic in terms of input parameters. It will allow you to apply prices using other moving averages and standard spectrum. This indicator is compiled based on the Moving Average Convergence and Divergence template.

Taking into account the other input parameters in the MACD MA price indicator, the formula is as follows:

MACD = MACD_MA_method (apply price, 12) - MACD_MA_method (apply price, 26)
Signal = Signal_MA_method (MACD, 9),

For those who wish to select a separate moving average pattern in formula (1), an additional modification of the indicator MACD MA Price-2 is prepared:

Signal = Signal_MA_method (MACD, 9),

Input parameters:

MACD_MA_method, MACD_MA_method_1, MACD_MA_method_2 and Signal_MA_method:

MACD MA Price - indicator for MetaTrader 4

After receiving the suggestions, I prepared some additional modifications using color histograms. Get them from a zip file with a description of the input parameters.


Attachment download

📎 MACD_MA_Price-2.mq4 (3.73 KB)

📎 MACD_MA_Price.mq4 (3.5 KB)

Source: MQL5 #10786

Verification code Refresh