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

StrategyTimeframeDirectionReturnProfit factorWin rateMax drawdownLast 12 months
QQQ Keltner channel breakout1 hourLong only+71.7%1.9854.8%−3.2%+1.5%
QQQ 4h Donchian breakout4 hoursLong only+61.9%1.4648.7%−6.2%+3.9%
DIA 1h Williams %R cross1 hourLong only+56.5%1.5233.8%−6.5%+4.8%
QQQ 4h swing high/low breakout (swing length 3)4 hoursLong only+49.4%2.2357.1%−6.8%+5.7%
DIA 1h Supertrend flip1 hourLong and short+45.8%1.9137.3%−3.9%+9.9%
QQQ 4h Donchian breakout (US open)4 hoursLong only+42.8%1.3843.6%−7.8%+5.0%
IWM 4h Williams %R cross4 hoursLong only+38.8%1.8145.3%−7.5%+7.2%
QQQ 4h swing high/low breakout4 hoursLong only+37.0%1.8369.9%−3.9%+1.3%
QQQ 15m Donchian breakout15 minutesLong and short+35.5%1.3631.4%−10.4%+12.0%
SPY 1h Keltner channel breakout1 hourLong only+26.1%1.4847.7%−3.5%+1.5%
IWM 4h Williams %R cross (length 14)4 hoursLong only+22.5%1.4645.8%−8.0%+3.8%
SPY 4h fair value gap4 hoursLong and short+17.8%1.7361.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

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.

TesseraFAQ

S&P 500 and index ETF trading strategies questions

Backtest any of these strategies free

Copy a prompt into TES and Strategy Lab rebuilds and backtests it on your own markets. No code, no card.