All indicators

MT4 MACD

Aug 17, 2019

Static chart image
SignalsOscillatorsMoving Averages

The MT4 MACD indicator provides a visual representation of the Moving Average Convergence Divergence similar to the default version found on the MetaTrader 4 platform, offering enhanced color-coding for trend momentum analysis.

Usage

The Usage of the MT4 MACD involves identifying trend direction, momentum shifts, and potential reversal points through the interaction of histogram bars and a signal line.

  • Histogram Analysis: Unlike the standard TradingView MACD which uses a line for the MACD value, this tool uses columns. When the columns are above the zero line, the trend is generally bullish; when below, it is bearish.
  • Color Transitions: The bars feature light and dark variations to indicate momentum. A light green bar signifies increasing bullish momentum, while a dark green bar indicates waning bullish strength. Conversely, light red represents increasing bearish momentum, and dark red shows weakening bearish pressure.
  • Signal Line Crossovers: Traders can look for crossovers between the histogram and the signal line (a simple moving average of the MACD) to identify entry or exit points.

Details

The script replicates the MT4 calculation style where the MACD line is displayed as a histogram. It calculates the difference between a fast and slow exponential moving average of the price source. A signal line is then derived by taking a simple moving average of that difference. The visual logic is optimized to highlight the rate of change between the current MACD value and the previous value, allowing users to see momentum acceleration or deceleration at a glance.

Settings

  • Source: Determines the price data used for the calculations (e.g., Close, Open, HL2).
  • Fast moving average: The period for the shorter-term EMA used in the MACD calculation.
  • Slow moving average: The period for the longer-term EMA used in the MACD calculation.
  • Signal Length: The period for the simple moving average applied to the MACD result to create the signal line.

FAQ

How do I interpret the different colors?

Light colors indicate that the current momentum is stronger than the previous bar (accelerating), while dark colors indicate that the current momentum is weaker than the previous bar (decelerating).

What are the default values used?

The indicator uses the standard 12, 26, and 9 settings, which are common for most MACD interpretations, though these can be adjusted in the settings menu.

How can I access this tool?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.