S&P 500 and index ETF trading strategies, backtested
We backtested the index ETF strategies across 12 strategies in Strategy Lab. Every one below is profitable after costs and stayed profitable on a final 12 months it was never tuned on. The best, QQQ Keltner channel breakout, made +71.7% from Feb 2020 to Nov 2026; the median profit factor is 1.63.
- 12Backtested strategies
- +71.7%Best return after costs
- 1.63Median profit factor
- +12.0%Best last 12 months
Results compared
| Strategy | Timeframe | Direction | Return | Profit factor | Win rate | Max drawdown | Last 12 months |
|---|---|---|---|---|---|---|---|
| QQQ Keltner channel breakout | 1 hour | Long only | +71.7% | 1.98 | 54.8% | −3.2% | +1.5% |
| QQQ 4h Donchian breakout | 4 hours | Long only | +61.9% | 1.46 | 48.7% | −6.2% | +3.9% |
| DIA 1h Williams %R cross | 1 hour | Long only | +56.5% | 1.52 | 33.8% | −6.5% | +4.8% |
| QQQ 4h swing high/low breakout (swing length 3) | 4 hours | Long only | +49.4% | 2.23 | 57.1% | −6.8% | +5.7% |
| DIA 1h Supertrend flip | 1 hour | Long and short | +45.8% | 1.91 | 37.3% | −3.9% | +9.9% |
| QQQ 4h Donchian breakout (US open) | 4 hours | Long only | +42.8% | 1.38 | 43.6% | −7.8% | +5.0% |
| IWM 4h Williams %R cross | 4 hours | Long only | +38.8% | 1.81 | 45.3% | −7.5% | +7.2% |
| QQQ 4h swing high/low breakout | 4 hours | Long only | +37.0% | 1.83 | 69.9% | −3.9% | +1.3% |
| QQQ 15m Donchian breakout | 15 minutes | Long and short | +35.5% | 1.36 | 31.4% | −10.4% | +12.0% |
| SPY 1h Keltner channel breakout | 1 hour | Long only | +26.1% | 1.48 | 47.7% | −3.5% | +1.5% |
| IWM 4h Williams %R cross (length 14) | 4 hours | Long only | +22.5% | 1.46 | 45.8% | −8.0% | +3.8% |
| SPY 4h fair value gap | 4 hours | Long and short | +17.8% | 1.73 | 61.7% | −3.0% | +4.1% |
Backtests in Strategy Lab at 1% risk per trade, after each market's typical spread. Last 12 months were locked away during the search and tested once.
What worked
Timeframes
4 hours (7), 1 hour (4), 15 minutes (1).Setups
Keltner channel breakout (2), Donchian breakout (2), Williams %R cross (2), swing high/low breakout (swing length 3) (1), Supertrend flip (1), Donchian breakout (US open) (1), swing high/low breakout (1), Williams %R cross (length 14) (1), fair value gap (1).Targets
3R (6), 1.5R (2), 1R (2), 2R (1), 2.5R (1). Wider targets win less often but pay more per winner.Filters and direction
6 with no filter, 3 with a high-volatility filter, 2 with the 200 EMA trend filter, 1 with trend50; 9 long only, 3 long and short.
Algo trading the US index ETFs
SPY, QQQ, DIA and IWM track the S&P 500, the Nasdaq 100, the Dow Jones and the Russell 2000. They trade like a single stock in a normal brokerage account, in US market hours, with no futures contract or rollover to manage.
Each strategy was tested on the ETF's own bars with a typical 0.03% spread and no leverage, and checked on a final 12 months locked away during the search.
Every strategy
- QQQ
+71.7%
Feb 2020 to Nov 2026
Profit factor
1.98
Win rate
54.8%
Max DD
−3.2%
Breakout · 1 hour
Keltner channel breakout
Buy QQQ when an hourly candle closes above the upper Keltner band, with a tight stop and a 1.5R target.
See the rules and results - QQQ
+61.9%
Feb 2020 to Nov 2026
Profit factor
1.46
Win rate
48.7%
Max DD
−6.2%
Breakout · 4 hours
QQQ 4h Donchian breakout
Buy when the close breaks above the highest high of the last 10 bars. QQQ 4-hour candles, long only, 2R target.
See the rules and results - DIA
+56.5%
Feb 2020 to Nov 2026
Profit factor
1.52
Win rate
33.8%
Max DD
−6.5%
Momentum · 1 hour
DIA 1h Williams %R cross
Buy when Williams %R(28) crosses above -80. DIA 1-hour candles, long only, 3R target.
See the rules and results - QQQ
+49.4%
Feb 2020 to Nov 2026
Profit factor
2.23
Win rate
57.1%
Max DD
−6.8%
Breakout · 4 hours
QQQ 4h swing high/low breakout (swing length 3)
Buy when the close breaks above the last confirmed swing high (swing length 3), with the 50 EMA trend. QQQ 4-hour candles, long only, 2.5R target.
See the rules and results - DIA
+45.8%
Feb 2020 to Nov 2026
Profit factor
1.91
Win rate
37.3%
Max DD
−3.9%
Trend · 1 hour
DIA 1h Supertrend flip
Enter when Supertrend(10, 2) flips up for longs, down for shorts, only when volatility is higher than usual. DIA 1-hour candles, long and short, 3R target.
See the rules and results - QQQ
+42.8%
Feb 2020 to Nov 2026
Profit factor
1.38
Win rate
43.6%
Max DD
−7.8%
Breakout · 4 hours
QQQ 4h Donchian breakout (US open)
Buy when the close breaks above the highest high of the last 10 bars. QQQ 4-hour candles, long only, 3R target.
See the rules and results - IWM
+38.8%
Feb 2020 to Nov 2026
Profit factor
1.81
Win rate
45.3%
Max DD
−7.5%
Momentum · 4 hours
IWM 4h Williams %R cross
Buy when Williams %R(14) crosses above -80, with the 200 EMA trend. IWM 4-hour candles, long only, 3R target.
See the rules and results - QQQ
+37.0%
Feb 2020 to Nov 2026
Profit factor
1.83
Win rate
69.9%
Max DD
−3.9%
Breakout · 4 hours
QQQ 4h swing high/low breakout
Buy when the close breaks above the last confirmed swing high (swing length 2). QQQ 4-hour candles, long only, 1R target.
See the rules and results - QQQ
+35.5%
Nov 2023 to Nov 2026
Profit factor
1.36
Win rate
31.4%
Max DD
−10.4%
Breakout · 15 minutes
QQQ 15m Donchian breakout
Enter when the close breaks above the highest high of the last 55 bars for longs, below the lowest low for shorts, only when volatility is higher than usual. QQQ 15-minute candles, long and short, 3R target.
See the rules and results - SPY
+26.1%
Feb 2020 to Nov 2026
Profit factor
1.48
Win rate
47.7%
Max DD
−3.5%
Breakout · 1 hour
SPY 1h Keltner channel breakout
Buy when the close crosses above the upper Keltner channel(40, 2). SPY 1-hour candles, long only, 1.5R target.
See the rules and results - IWM
+22.5%
Feb 2020 to Nov 2026
Profit factor
1.46
Win rate
45.8%
Max DD
−8.0%
Momentum · 4 hours
IWM 4h Williams %R cross (length 14)
Buy when Williams %R(14) crosses above -80, with the 200 EMA trend. IWM 4-hour candles, long only, 3R target.
See the rules and results - SPY
+17.8%
Feb 2020 to Nov 2026
Profit factor
1.73
Win rate
61.7%
Max DD
−3.0%
ICT and SMC · 4 hours
SPY 4h fair value gap
Enter when a fair value gap forms (a strong middle candle leaves a gap between the first and third candles): bullish gap for longs, bearish for shorts, only when volatility is higher than usual. SPY 4-hour candles, long and short, 1R target.
See the rules and results
More backtested strategies
By indicator
By market
- Gold trading strategies
- Ethereum trading strategies
- Crypto trading strategies
- Forex trading strategies
- Stock trading strategies
- NVDA trading strategies
- QQQ and Nasdaq trading strategies
- AAPL trading strategies
- AMD trading strategies
- GOOGL trading strategies
- MSFT trading strategies
- META trading strategies
- AMZN trading strategies
Backtests are hypothetical: they apply fixed rules to historical data with assumed costs and fills. Past results don't predict future results, and leveraged trading carries a high risk of loss. This is an educational description, not a recommendation.