Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | MACD with Histogram

This indicator modifies the original MACD.mq5 from MetaTrader 5 Indicators/Examples folder.

It presents MACD Main and Signal in Lines Style, and includes the MACD Histogram in visualization.

Periods of EMA Fast, EMA Slow and Signal are freely customizable, as well as applied price.

Input parameters:

input int                InpFastEMA=12;               // Fast EMA period
input int                InpSlowEMA=26;               // Slow EMA period
input int                InpSignalSMA=9;              // Signal SMA period
input ENUM_APPLIED_PRICE InpAppliedPrice=PRICE_CLOSE; // Applied price

MetaTrader Experts, Indicators, Scripts and Libraries

14669

Best MetaTrader Indicators + Profitable Expert Advisors