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 Multi-color Histogram with Signal Line | MQL5 Code

Explore the latest free tools from the MQL5 community. Here's a new indicator, expert advisor, or script for MetaTrader.

The histogram is designed to change color based on its position relative to the zero level: it turns Green when the MACD value is positive (bullish territory) and Salmon when it is negative (bearish territory). This allows traders to instantly identify the current market bias and zero-line crossovers.

The indicator is highly customizable, allowing users to select different Moving Average methods (SMA, EMA, SMMA, or LWMA) for the signal line and choose the applied price for calculations. This flexibility makes it suitable for various trading strategies, from trend-following to mean reversion.

Indicator components include:

Experience adaptive trading with the Fluid Expert Advisor for MT4/MT5. Dynamic money management and trend detection. Click for info.

  • Main MACD Line: The difference between the Fast and Slow EMAs.
  • Signal Line: A Moving Average of the MACD line.
  • Color Histogram: A visual representation of the MACD line’s value with color alerts for trend direction.

Input parameters:

  • Fast EMA Period: Period for the fast moving average (default: 12).
  • Slow EMA Period: Period for the slow moving average (default: 26).
  • Signal MA Period: Period for the signal line (default: 9).
  • Signal MA Method: Choice of EMA, SMA, SMMA, or LWMA for the signal line.
  • Applied Price: Price type used for calculations (default: Median Price).


Image:


Image for MACD Multi-color Histogram with Signal Line


Recommendations:

  • Zero-Line Crossover: Use the histogram’s color change to identify potential shifts in long-term momentum (Green for bullish, Salmon for bearish).
  • Signal Line Crossover: Look for the intersection of the Black (Main) and Blue (Signal) lines for entry or exit signals.
  • Divergence: This indicator is excellent for spotting classical MACD divergences between price action and the MACD line/histogram.
  • Multi-Market Use: The indicator works effectively across all timeframes and asset classes, including Forex, Stocks, Commodities, and Cryptocurrencies.
  • Confirmation: Combine this indicator with price action or volume-based indicators for higher probability trade setups.

  • Build better strategies with RobotFX professional tools – check them out.

    73046

    Best MetaTrader Indicators + Profitable Expert Advisors