Momentum Rotation Indicator

Apr 28, 2021

Static chart image
Signals
Oscillators
Moving Averages
Repainting Functionality

The Momentum Rotation Indicator [CC] indicator provides a relative strength analysis by comparing the momentum of an individual asset against a benchmark index to identify market leadership and rotation trends.

Usage

The Usage section focuses on identifying shifts in relative performance. The indicator appears as an oscillator in a separate pane, changing color based on the directional momentum of the asset relative to a benchmark (typically the S&P 500).

  • Bullish Signals: When the oscillator line turns green, it indicates that the asset's momentum is outperforming the benchmark's momentum over the selected lookback periods, suggesting a potential breakout or period of outperformance.
  • Bearish Signals: When the oscillator line turns red, it suggests the asset is underperforming the benchmark, which may precede a trend reversal or a period of relative weakness.

Users can monitor the slope and color of the line to gauge whether a stock is gaining or losing traction compared to the broader market.

Details

This tool is loosely based on the Sector Rotation Model proposed by Giorgos E. Siligardos. It functions by calculating the Rate of Change (ROC) for both the current asset and a benchmark symbol (defaulting to "SPY") across two different time horizons (Length1 and Length2).

The script calculates the average ROC for both the asset and the benchmark, finds the difference between these averages, and then applies an Exponential Moving Average (EMA) to smooth the resulting value. This smoothing helps filter out noise and highlights the underlying trend in relative momentum.

Settings

  • Length1: The primary lookback period used for the short-term Rate of Change calculation and the final EMA smoothing.
  • Length2: The secondary lookback period used for the long-term Rate of Change calculation.
  • S&P 500 Symbol: The benchmark ticker used for comparison (defaults to SPY).
  • Source: The price data used for calculations (e.g., Close, Open, High, Low).
  • Resolution: The timeframe from which the data is pulled.
  • Allow Repainting?: Toggles whether the indicator uses data from the current unconfirmed bar.
  • Allow Bar Color Change?: Enables or disables the changing of candle colors on the main chart based on the indicator's state.

FAQ

How do I interpret the colors?

A green line signifies that the asset's relative momentum is increasing, while a red line indicates that the relative momentum is decreasing compared to the previous bar.

Can I change the benchmark?

Yes, you can change the "S&P 500 Symbol" in the settings to any other index or asset to compare your current ticker against a different sector or market.

How can I access the Momentum Rotation Indicator [CC]?

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.