Find Relative-Strength Leaders
Relative strength (RS) ranks every stock's trailing performance against the rest of the market, as a percentile from 1 to 99. A stock with an RS of 95 has outperformed 95% of the market. Leaders tend to keep leading, which makes RS the backbone of many momentum and trend-following methods.
This guide gets you leaders three ways: a ranked list, a scan that combines RS with trend filters, and a history that shows whose RS is rising.
You'll need: a Power User or Business token for the RS endpoints. The scans in step 2 run on any plan.
1. The ranked list
POST /api/v2/stocks/relative-strength returns the strongest stocks in a scope, best first:
Rank inside a group by setting scope to sector or industry and naming it in value (names from GET /api/v2/stocks/sectors and /stocks/industries). The ranking then uses rs_sector_score or rs_industry_score:
Set "ascending": true for the weakest stocks instead: laggards to avoid, or short candidates.
Thinly traded names can top an unfiltered list. Set min_market_cap (USD, fund AUM counts as market cap) to rank only names above a size floor:
For any other condition (volume, trend, distance from the high), scan instead.
2. Scan for leaders
The scanner combines RS with any other condition. This is a leadership screen in the spirit of a trend template: top-decile RS, price above the 50-day average, the 50-day above the 200-day, within 25% of the 52-week high, and real liquidity.
Get the payload. Send the screen as a sentence to /scan/natural, or ask your agent, which calls the natural_scan tool:
Read the response's reasoning before you run it; a generated payload can differ from the one below in detail. If you already run a screen like this in the scanr.ai scanner, export it instead (Filters → Export filters) and save it as leaders.json. Written out, the payload is:
Run it, and keep the matches for step 3:
Keep leaders.json. Re-running it costs one request and no AI credits.
Variations
Leaders of their industry, not just the market
Require both: strong against the market, and the strongest within the industry. Refine leaders.json with "market relative strength of 80 or more and industry relative strength of 90 or more" (/scan/refine), or replace the Indicator block by hand:
Leaders in strong groups
A leader whose whole group is also strong is more robust than a lone outlier. GroupStrength reads the regime of the stock's sector or thematic ETF; positive means the group is extended above its mean. Refine with "market relative strength of 80 or more, and group strength of 10 or more", or set the Indicator block by hand:
This is scanr.ai's Leaders in Strong Groups preset. GroupStrength settles once a day, so during the session it reflects the previous close.
Only when the market itself is healthy
MarketStrength is the same regime reading for the broad market, identical for every stock. Adding it makes the whole screen return nothing when the market is below its adaptive mean, which is often when breakouts fail. Refine with "only when market strength is above 0", or add it by hand:
Add it inside the Indicator block.
3. Find rising RS
A stock whose RS climbed from 60 to 85 over a month is often more interesting than one that has sat at 95 for a year. POST /api/v2/stocks/get-stock-indicators returns RS history for a list of tickers; pass from and to as Unix milliseconds:
Reading RS well
- RS is relative. In a falling market, an RS of 90 can belong to a stock that is down, just less than nearly everything else. Pair it with a trend filter (price above its averages) as in step 2.
- RS updates through the day. Intraday values move with prices and settle after the close; rows carry
realtime: trueuntil then. Screen after the close for a stable list. - Sector and industry RS answer different questions. Market RS finds the strongest stocks; industry RS finds the strongest stock in a group, useful when you've already chosen the group.


