Relative Strength and Momentum
Sep 10, 2024

The Relative Strength and Momentum indicator is a multi-asset analysis tool designed to help traders identify the strongest symbols and sectors by comparing their performance against a benchmark index. It processes up to 20 different assets simultaneously, presenting their relative strength and momentum rankings in a clear, color-coded table format to streamline market analysis.
Usage
The tool is primarily used for sector rotation analysis and stock selection. By monitoring the tables, users can identify assets that are consistently outperforming a benchmark (like the S&P 500 or Nifty 50).
- Relative Strength Rank Table: Displays the percentile rank (1-100) of each symbol's performance relative to the group. Higher numbers indicate top-tier performers.
- Momentum Table: Displays the Relative Strength Index (RSI) of the relative strength line itself, highlighting the rate of change in outperformance.
- Color Logic:
- Aqua: Indicates the symbol is excelling in both relative strength and momentum (ideal for trend following).
- Green: Indicates stable or improving performance in that specific metric.
- Red: Indicates declining relative strength or weakening momentum.
Details
The script executes several layers of calculation to determine its rankings:
- Relative Strength (RS): Calculated as the ratio between the symbol price and the benchmark price, smoothed with an Exponential Moving Average (EMA).
- Momentum: Derived from a multi-timeframe RSI approach and price proximity to a 9-period EMA.
- Percentile Ranking: The RS Rating is calculated using weighted gains over four different lookback segments (40% for the most recent, 20% for each of the three preceding segments). These ratings are then ranked against all other symbols in the list to produce a percentile score.
Settings
Symbols
- Symbol A-T: Define the 20 symbols you wish to monitor.
- Benchmark Symbol: The base index used for relative strength calculations.
Length
- Lookback Period: The number of bars used to compute the Relative Strength and Momentum metrics.
- Total Bars: Determines how many historical columns of data are displayed in the tables.
Table Options
- Size: Adjusts the visual scale of the tables on the chart.
- Enable Dark Theme: Switches between light and dark UI modes for better visibility depending on your chart theme.
FAQ
How do I access Relative Strength and Momentum?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Can I change the benchmark index?
Yes, the benchmark can be changed in the settings to any symbol, such as SPY for US equities, BTC for crypto markets, or a specific sector ETF.
What does a high RS Rank mean?
A rank near 100 means that symbol is currently outperforming almost all other symbols in your selected list based on the weighted lookback period.
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.

