RedK Dual-Color Zero-Lag Moving Average (RedK ZLMA v1)

Mar 12, 2021

Static chart image
Signals
Moving Averages

The RedK Dual-Color Zero-Lag Moving Average (RedK ZLMA v1) indicator provides a highly responsive trend-following tool that minimizes price lag to help traders identify market direction and momentum shifts more accurately.

Usage

The Usage of the RedK ZLMA focuses on trend identification and timing market entries based on momentum changes. The indicator changes color dynamically to reflect the current direction of the price: a green line indicates a bullish trend (upward slope), while a red line indicates a bearish trend (downward slope).

Traders can use this tool to:

  • Identify Trend Direction: The dual-color plot allows for immediate visual confirmation of the current market bias.
  • Spot Potential Reversals: A change in the color of the ZLMA often precedes or coincides with a shift in price momentum.
  • Configure Alerts: The script is optimized with alert conditions that trigger when the MA turns up or down, allowing for automated notifications of trend changes.

The responsiveness of the indicator is controlled primarily by the Length and Smoothing settings. A shorter length increases sensitivity to price action, while a higher smoothing value reduces noise at the expense of adding some lag back into the calculation.

Details

The RedK ZLMA is constructed using a zero-lag mathematical approach applied to a Weighted Moving Average (WMA). The core concept involves calculating a primary average and then subtracting a secondary, more smoothed average from it to compensate for the time delay inherent in standard moving averages.

The implementation follows these steps:

  1. A smoothed price source is created by applying a WMA to the input source, further refined by the "Smoothing" parameter.
  2. The zero-lag calculation is applied using the formula: (2 * Smooth_Price) - WMA(Smooth_Price, Length).
  3. The indicator then determines the slope of the resulting line to assign the appropriate color and trigger alerts.

This specific implementation by RedKTrader utilizes WMAs to provide a front-weighted response, making it more reactive to recent price changes compared to a Simple Moving Average (SMA) based zero-lag calculation.

Settings

  • Source: Determines the price data used for the calculation (e.g., Close, Open, HL2, HLC3).
  • Length: Sets the lookback period for the Zero-Lag Moving Average. Lower values are more reactive, while higher values provide a smoother, long-term trend view.
  • Smoothing: Applies an initial smoothing factor to the price source. It is recommended to keep this value low (e.g., 3 or 4) to maintain the "zero-lag" characteristics of the indicator.

FAQ

What is the advantage of using a Zero-Lag Moving Average over a standard MA? Traditional moving averages always lag behind the price because they are based on historical data. The ZLMA uses a mathematical offset to reduce this delay, allowing the indicator to track price action much more closely and react faster to reversals.

How do the alerts work in this script? Alerts are triggered specifically when the ZLMA changes its direction. A "ZLMA Up!" alert occurs when the slope turns positive (color changes to green), and a "ZLMA Down!" alert occurs when the slope turns negative (color changes to red).

How can I access the RedK Dual-Color Zero-Lag Moving Average? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free access on the following platforms
tradingviewSymbolTradingView
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

ninjatraderNinjaTrader
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

metatrader4MetaTrader 4/5
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

thinkorswimThinkorswim
Open in your browser

This in-app browser is not compatible with Get Access from the library.

Tap the menu (...) at the top of your screen and select "Open in Browser", "Open in Safari", or "Open in Chrome" to continue.

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.