Zero Lag MACD Enhanced - Version 1.2
Dec 19, 2017

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.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

