All indicators

Zero Lag MACD Enhanced - Version 1.2

Dec 19, 2017

Static chart image
SignalsOscillatorsMoving Averages

The Zero Lag MACD Enhanced - Version 1.2 indicator reduces the inherent lag of the traditional Moving Average Convergence Divergence oscillator by utilizing zero-lag moving average calculations, providing traders with faster trend identification and earlier momentum shift signals.

Usage

The Zero Lag MACD Enhanced is used to identify trend reversals and momentum shifts with higher sensitivity than a standard MACD. Traders typically look for crossovers between the MACD line and the signal line to determine entry or exit points. The inclusion of a histogram provides a visual representation of the distance between these two lines, highlighting the strength of the current momentum.

The indicator features visual symbols (circles) that appear during a crossover to provide immediate feedback on trend changes. Additionally, an EMA applied to the MACD line is included to help smooth the output and offer a secondary trend verification tool. Users can adjust the "Symbols distance factor" to reposition these visual cues for better chart clarity.

Details

This script is based on the ZeroLag EMA concept described in the April 2000 issue of Technical Analysis of Stocks and Commodities. It builds upon original versions developed by users Glaz and yassotreyo, with further refinements by Albert Callisto.

The core logic employs a mathematical formula—(2 * Moving Average 1) - Moving Average 2—to effectively cancel out the delay associated with standard smoothing techniques. This version allows users to choose between the "real" original zero-lag calculation and the specific algorithmic variation popularized by Glaz. By applying this lag-reduction technique to both the fast and slow components of the MACD, the resulting oscillator reacts significantly faster to price action.

Settings

Main Settings

  • Fast MM period: Sets the lookback period for the fast zero-lag calculation.
  • Slow MM period: Sets the lookback period for the slow zero-lag calculation.
  • Signal MM period: Determines the smoothing length applied to the MACD line to create the signal line.
  • MACD EMA period: Sets the length for the additional EMA plotted over the MACD line for trend smoothing.
  • Use EMA (otherwise SMA): Toggles whether the underlying calculations use Exponential Moving Averages or Simple Moving Averages.
  • Use Glaz algo: Switches between the standard zero-lag formula and the alternative algorithm variation.

Visual Settings

  • Show symbols to indicate crossing: Enables or disables the visual dots that appear when the MACD and Signal lines cross.
  • Symbols distance factor: Adjusts the vertical offset of the crossover symbols relative to the signal curve.

FAQ

How does this differ from a standard MACD? A standard MACD uses basic Exponential Moving Averages which naturally lag behind price action. This version uses a zero-lag calculation that offsets that delay, resulting in crossovers that occur closer to price pivots.

What does the "Use Glaz algo" setting change? When enabled, the signal line calculation switches to a Simple Moving Average approach as defined in earlier iterations of this tool, whereas the default setting uses a zero-lag EMA approach for the signal line.

How can I access the Zero Lag MACD Enhanced - Version 1.2? 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.