SPONSOR · Your brand here — Sponsor SetupHitsSPONSOR · Your brand here — Sponsor SetupHitsSPONSOR · Your brand here — Sponsor SetupHitsSPONSOR · Your brand here — Sponsor SetupHitsSPONSOR · Your brand here — Sponsor SetupHitsSPONSOR · Your brand here — Sponsor SetupHitsSPONSOR · Your brand here — Sponsor SetupHitsSPONSOR · Your brand here — Sponsor SetupHits
SetupHits
Screens / Momentum

Relative Strength vs SPY

Stock 20-day return beats SPY by 10+ pts and closes at a 20-day high.

TradingViewThinkorSwim

Exact criteria (as backtested)

UniverseS&P 500 + Nasdaq 100 (current members)
Price> $5
20d avg $ volume> $5M
20d return − SPY 20d≥ +10 pts
Close≥ 20-day high close

Backtest · 2021-10-13 → 2026-10-12

How we test
Hit rate (5d > 0)
51.3%
Avg 5-day move
+0.33%
Max drawdown
-30.6%
Signals
24,211
Median 5d: +0.15%
SPY 5d same days: +0.18%
Curve CAGR: +24.3%
Days in market: 100%
2021202220232024202520263.36×0.76×

Equal-weight trade curve (weekly, 1.0× = start). Each signal held 5 sessions; daily return = mean of open positions. No fees, slippage or taxes. Survivorship-biased universe. Not indicative of future results.

Copyable platform settings

TradingViewPine: (close/close[20]) - (spy/spy[20]) >= 0.10 using request.security('SPY')
ThinkorSwimclose/close[20]-close("SPY")/close("SPY")[20]>=0.10 and close>=Highest(close,20)

Finviz strings are URL filter codes (append to finviz.com/screener.ashx?v=111&f=). ThinkorSwim strings are thinkScript scan conditions. Platform equivalents may differ slightly from the backtested definition; verify before use.

Most recent signals in backtest

ON 2026-10-05P 2026-10-05PANW 2026-10-05PTC 2026-10-05RVTY 2026-10-05SPCX 2026-10-05TXN 2026-10-05VLO 2026-10-05

How the Relative Strength vs SPY screen works

The Relative Strength vs SPY screen is a momentum setup: stock 20-day return beats SPY by 10+ pts and closes at a 20-day high. A stock qualifies on a given day when every condition is true at the close: 20d return − spy 20d ≥ +10 pts; close ≥ 20-day high close. To keep results tradable, only S&P 500 and Nasdaq-100 members above $5 with more than $5M of average daily dollar volume are included.

Across 518 tickers from 2021-10-13 to 2026-10-12, the screen fired 24,211 times on 515 different stocks. 51.3% of signals were higher five sessions later, ranking #22 of 25 screens on SetupHits by hit rate. The average 5-day move was +0.33% (median +0.15%), ahead of SPY's +0.18% over the same days, and the equal-weight trade curve's worst drawdown was -30.6%.

Setup is copy-paste: TradingView, ThinkorSwim versions are listed above. In TradingView use the string in the Stock Screener filter or a Pine condition; in Finviz append the filter codes to the screener URL; in ThinkorSwim paste the thinkScript into a Stock Hacker custom study filter. Platforms compute indicators slightly differently, so expect small differences in the hit list.

Treat these numbers as context, not a forecast. The backtest uses daily bars, ignores commissions and slippage, overlaps signals on the same stock, and tests today's index members back in time, which adds survivorship bias. A mostly rising 2021–2026 market also lifted most long setups.

Full test rules: methodology. Compare every setup in our ranked list of stock screeners.

FAQ

What is the Relative Strength vs SPY stock screener?

Stock 20-day return beats SPY by 10+ pts and closes at a 20-day high. It is a momentum screen evaluated on daily closes for S&P 500 and Nasdaq-100 stocks.

What is the Relative Strength vs SPY backtest hit rate?

51.3% of 24,211 signals between 2021-10-13 and 2026-10-12 closed higher 5 trading days later, with an average 5-day move of +0.33% and a max drawdown of -30.6%.

How do I set up the Relative Strength vs SPY screen in TradingView, Finviz or ThinkorSwim?

Copy the platform string on this page: TradingView, ThinkorSwim settings are provided. Results can differ slightly because each platform calculates indicators its own way.

Is the Relative Strength vs SPY screen good for day trading?

It is an end-of-day screen measured over a 5-day hold, so it suits swing trading or building a next-day watchlist more than intraday entries. Past, simulated results do not predict future returns.

Related screens

All Momentum screens →