What is relative strength? The RS line explained
The RS line divides a stock’s price by a benchmark’s price, bar by bar. The number itself does not matter, only its direction. Hypothetical: a stock at $50 and SPY at $500 give a ratio of 0.100. If the stock rises to $60 (+20%) while SPY rises to $525 (+5%), the ratio becomes 60 ÷ 525 = 0.114, up about 14%, because 1.20 ÷ 1.05 = 1.143. The stock beat the market by that margin.
Choose the benchmark that matches what you trade. SPY or the S&P 500 is the usual choice for large US stocks, QQQ for technology, and a sector ETF when you want to know whether a stock leads its own group. A stock can beat the market only because its whole sector is strong; dividing by the sector ETF separates the stock’s own strength from its group’s.
On TradingView, type the ratio straight into the symbol search, for example NVDA/SPY, and press Enter: the chart shows the stock divided by SPY as one line. Read its slope over weeks and months, not days. An RS line that rises while the market pulls back, with the stock holding up as the index slides, often says more than outperformance in a rally, when many stocks rise together.
Relative strength vs RSI: not the same thing
The names cause endless confusion. The RSI indicator (Relative Strength Index) is a momentum oscillator from 0 to 100 that compares a stock’s recent gains with its own recent losses. It never looks at another market. Relative strength analysis compares two markets: the stock against an index or a sector.
They can disagree. A stock can show an RSI above 70, overbought on its own terms, while its RS line is flat because the whole market rallied just as hard. Or the RSI can sit at 45 while the RS line makes new highs, because the stock dipped less than the index. On stock screeners, a column called Relative Strength Index is the RSI, not strength against the market. A short glossary:
- Relative strength (RS) line
- A stock’s price divided by a benchmark’s price, plotted as a line. Rising means the stock is outperforming the benchmark; falling means it is lagging.
- Relative Strength Index (RSI)
- A 0 to 100 momentum oscillator that compares a stock’s recent gains with its recent losses. It does not compare the stock with the market.
- Mansfield relative strength
- The RS ratio expressed as a percentage above or below its own long moving average, usually 52 weeks, so that zero separates leading from lagging.
- RS rank (RS rating)
- A percentile score, often from 1 to 99, that ranks a stock’s price performance over a set period against all other stocks. A rank of 80 means it beat about 80% of them.
Why an RS line that makes a new high before price matters
Many growth traders watch for the RS line to reach a new high before the stock price does. It means the stock is already beating the market while its price is still inside a base, often because it held up during a market pullback. When the price later breaks out, the move has leadership behind it rather than being a stock merely catching up.
The drawing at the top of the page shows the pattern: the RS line clears its earlier high several weeks before the price clears its own. The opposite is a warning sign: a price breakout to a new high with an RS line well below its high means the stock is rising less than the market.
Treat it as a filter, not a trigger. An RS new high says the stock has been leading so far; the entry still comes from the pattern, such as a cup and handle or a volatility contraction pattern, and the stop from the chart.
Mansfield relative strength: RS above or below its own average
The raw RS line has no zero line, which makes it hard to say whether a stock is leading or lagging. Mansfield relative strength, used in Stan Weinstein’s stage analysis, solves that by comparing the ratio with its own long moving average. A common formula: Mansfield RS = (RS ratio ÷ its 52-week simple moving average − 1) × 100. On daily charts, about 200 days stands in for 52 weeks.
Hypothetical: the ratio is 0.115 and its 52-week average is 0.100, so Mansfield RS = (0.115 ÷ 0.100 − 1) × 100 = +15. Above zero, the stock has been leading over the past year; below zero, lagging. Weinstein looked for relative strength turning from negative to positive around a stage 2 breakout, and passed on stocks whose relative strength stayed negative however good the chart looked.
On TradingView, chart a ratio such as NVDA/SPY on the weekly timeframe and add a 52-period simple moving average: the ratio above its average is the same as a positive Mansfield reading. Community scripts also plot it as an oscillator around zero.
How to rank stocks and sectors by relative strength
Ranking turns relative strength into a shortlist. The simplest version compares each stock’s return with the index over the same period, such as 3, 6 or 12 months. Hypothetical, over six months with the index up 10%: stock A +30%, stock B +12%, stock C −5% and stock D +18%. Relative to the index: A 1.30 ÷ 1.10 = 1.18 (+18%), D +7%, B +2% and C 0.95 ÷ 1.10 = 0.86 (−14%). The ranking is A, D, B, C.
A percentile rank does the same across the whole market: a rank of 80 means the stock outperformed about 80% of all stocks over the period, and CAN SLIM favors stocks ranked 80 or better. On TradingView’s stock screener, the performance columns, for example over 3, 6 or 12 months, let you sort by return and compare each figure with the S&P 500’s.
Do the same for sectors: divide each sector ETF, such as XLK, XLE, XLF or XLV, by SPY and see which ratios are rising. Leaders often come from leading groups, so many traders rank sectors first and then look for the strongest stocks inside the top two or three. A simple routine:
- Pick a period and a benchmark, for example 6 months against SPY.
- Calculate each stock’s relative return: (1 + stock return) ÷ (1 + index return).
- Sort from highest to lowest and keep roughly the top fifth.
- Check each RS line on the weekly chart: is it rising and near its high?
- Check the sector ratio: is the stock’s group leading too?
Sector rotation and four-quadrant rotation charts
Leadership rotates. A rotation chart plots each sector on two axes: how strong its relative strength is compared with the benchmark (horizontal) and whether that relative strength is improving or fading (vertical). Both are usually normalized so that 100 sits in the middle. That gives four quadrants: leading (strong and improving), weakening (strong but fading), lagging (weak and fading) and improving (weak but getting stronger).
Sectors often travel clockwise through the quadrants, from improving to leading, weakening, lagging and back to improving, as the hypothetical tail in the drawing shows. Traders use the chart to spot groups moving from improving into leading, and to notice when a leader starts to weaken. It is still a picture of the past: the path can reverse, stall or jump, and a sector can stay in one quadrant for months. The stock market sectors guide covers the textbook economic-cycle version of rotation.
How relative strength fits CAN SLIM and stage analysis
In CAN SLIM, the L stands for leader or laggard: William O’Neil wanted the leaders of leading groups, with a high relative strength rank and an RS line near its highs at the breakout. In stage analysis, Weinstein wanted relative strength positive, or turning positive, for stage 2 buys, and negative for short sales in stage 4.
Both methods put the market first. Relative strength is a ranking tool inside a healthy market; in a falling market, the stocks with the best RS often fall too, just less. Momentum trading and trend following rest on the same idea: own what is already working and cut what is not.
A worked example: from RS to a watchlist (hypothetical)
You start with the sector ratios. Over the past three months XLK/SPY has risen 6% and XLE/SPY has fallen 4%, so technology is leading. Inside the sector you rank stocks by six-month return against SPY: stock T is up 34% against 10% for SPY, a relative return of 1.34 ÷ 1.10 = 1.22, or about 22% ahead of the market.
On T’s weekly chart, the RS line (T/SPY) made a new high two weeks ago while the price is still about 6% below its old high of $120, in a tight base. Mansfield RS is +18 and rising. That combination puts T on the watchlist; it is not yet a trade.
The trade plan comes from the chart: a hypothetical buy above $120 on rising volume, a stop below the base at $111, so a risk of $9 a share. With a $50,000 account and a 1% risk limit, $500 ÷ $9 = 55 shares, a position of about $6,600. If T breaks out while its RS line falls back, that weaker picture is a reason to pass or to size down. See risk management for the sizing step. On daily and weekly charts, the UpTickFlow Strategy uses three gates; a leading RS line is useful context next to any such signal, and none of it removes the risk of a loss.
Common mistakes with relative strength
Relative strength is a powerful filter, and most of its failures come from reading it alone:
- RS rising because the index falls faster: if the stock drops 10% while the index drops 20%, the RS line rises 12.5% (0.90 ÷ 0.80 = 1.125), yet you still lost 10%. A rising RS line in a falling market is not a buy signal on its own, as the drawing below shows.
- Confusing RS with RSI: a screen for “Relative Strength Index above 70” finds overbought stocks, not market leaders.
- Using the wrong benchmark: a small biotech stock measured against the S&P 500 may look strong only because small caps or biotech are rallying; compare it with its sector too.
- Reading short windows: a week of outperformance is noise; read the RS line over months on weekly charts.
- Chasing the RS leader after a huge run: the strongest stocks can also be the most extended, and RS says nothing about the entry price or the stop.