Moving Average Ribbon
Dec 17, 2017

The Moving Average Ribbon indicator provides a dynamic trend-tracking visualization by utilizing fast, slow, and signal moving averages to identify momentum shifts and trend-following opportunities.
Usage
The Usage section focuses on interpreting the relationship between the moving averages and the resulting ribbon color changes. The indicator primarily uses the crossover between the Fast and Slow averages to define the primary trend.
- Trend Identification: When the Fast MA is above the Slow MA, the ribbon is colored green, indicating a bullish trend. Conversely, when the Fast MA is below the Slow MA, the ribbon turns red, indicating a bearish trend.
- Momentum Strength: The Signal MA introduces a secondary layer of analysis. If the trend is bullish (Green) and the Signal MA is below the Fast MA, the ribbon adopts a brighter green hue, suggesting strong upward momentum. If the trend is bearish (Red) and the Signal MA is above the Fast MA, the ribbon becomes a brighter red, indicating strong downward momentum.
- Pullback Opportunities: "Fishhook" pullbacks, where the Fast MA briefly deviates toward the Signal MA before resuming the dominant trend, are often used by traders to identify high-probability entry points within a trend.
Details
The script offers various calculation methods beyond the standard Exponential Moving Average (EMA). Users can select from Simple (SMA), Hull (HMA), Weighted (WMA), Volume Weighted (VWMA), and Exponential Volume Weighted (EVWMA) options to suit different market conditions.
A key technical feature is the Zero-Lag algorithm. This implementation applies a mathematical offset (calculated as 2 * EMA(src, len) - EMA(EMA(src, len), len)) to significantly reduce the inherent lag found in traditional moving averages. Enabling this for the Fast or Signal lines allows the indicator to react more sensitively to price volatility.
Settings
- Type: Selects the mathematical model for all moving averages (Exponential, Simple, Hull, Weighted, Volume Weighted, or Exponential Volume Weighted).
- Fast: Sets the period length for the Fast moving average.
- Fast Series: Determines the price source (e.g., Close, Open, High) for the Fast MA.
- Slow: Sets the period length for the Slow moving average.
- Slow Series: Determines the price source for the Slow MA.
- Signal: Sets the period length for the Signal moving average.
- Signal Series: Determines the price source for the Signal MA.
- Offset: Shifts the plots forward or backward in time on the horizontal axis.
- Show Signal Line?: Toggles the visibility of the Signal moving average on the chart.
- Zero-Lag Fast?: Applies the zero-lag algorithm to the Fast moving average calculation.
- Zero-Lag Signal?: Applies the zero-lag algorithm to the Signal moving average calculation.
FAQ
How do I interpret the different shades of green and red in the ribbon? The darker shades represent a standard trend alignment between the fast and slow averages. The brighter shades appear when the Signal MA confirms that the current momentum is accelerating in the direction of the primary trend.
What is the benefit of using the Zero-Lag option? The Zero-Lag setting reduces the delay between price movement and the indicator's reaction. This can be beneficial for scalping or fast-paced trading, though it may result in more frequent false signals in sideways markets.
How can I access the Moving Average Ribbon? 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.

