SPY Dip Buyer IRA — Backtest
Strategy 1100 · SPY, long only · daily signal, orders at 19:55 ET · Jan 4, 2016 – Nov 13, 2026 · traditional IRA: settled cash only, no margin, no shorting
9.7%
Return per year
1.19
Sharpe ratio
−9.9%
Maximum drawdown
107
Trades (~10 per year)
75%
Winning trades
27%
Time in SPY
Growth of $10,000
SPY Dip Buyer IRABuy and hold SPY
Both lines start at $10,000. The strategy line includes interest on idle cash and trading costs. SPY prices are split- and dividend-adjusted.
Rules
- Signal: z = (close − 5-day average) / 5-day standard deviation, on SPY's daily closes.
- Buy (when flat): z ≤ −1.5 and the close is above its 200-day average.
- Sell (when holding): at the first close where z ≥ +1.5, or 10 trading days have passed, or the close is at least 5% below the entry-day close.
- Re-entry: never on the same day as an exit. Long SPY only.
- Orders: decided after the close, filled at SPY's 19:55 ET price in the extended session.
- IRA restrictions: no margin, no short selling, and buys use settled cash only. Sale proceeds settle the next trading day, so a buy signal on the evening of a sale is skipped.
- Idle money: cash, earning interest in Alpaca's FDIC bank sweep.
Results, Jan 4, 2016 – Nov 13, 2026
| Return per year | Sharpe | Max drawdown | Total return | |
|---|---|---|---|---|
| Dip buyer, interest on idle cash (as traded) | 9.7% | 1.19 | −9.9% | +173% |
| Dip buyer, idle cash earning 0 | 7.8% | 0.97 | −11.2% | +126% |
| Idle money in SGOV, SPY bought after settlement | 7.8% | 1.05 | −10.5% | +126% |
| Idle money in SGOV, instant switching (not possible in an IRA) | 9.2% | 1.14 | −10.0% | +161% |
| Buy and hold SPY | 14.7% | 0.87 | −33.8% | +342% |
Results since 2023
| Return per year | Sharpe | Max drawdown | Total return | |
|---|---|---|---|---|
| Dip buyer, interest on idle cash (as traded) | 16.6% | 1.83 | −6.1% | +81% |
| Dip buyer, idle cash earning 0 | 13.6% | 1.52 | −6.6% | +63% |
| Idle money in SGOV, SPY bought after settlement | 13.6% | 1.68 | −4.5% | +64% |
| Idle money in SGOV, instant switching (not possible in an IRA) | 16.7% | 1.84 | −6.1% | +81% |
| Buy and hold SPY | 20.9% | 1.34 | −18.8% | +108% |
Why idle money stays in cash: in an IRA, money from selling SGOV can't buy SPY until it settles the next day. In the SGOV case above 100% of buys came late, by 2.0 trading days on average, and 3 signals were missed altogether. The bank sweep pays interest with no settlement delay.
Results by year
| Year | Strategy | Buy and hold SPY | Strategy drawdown within the year |
|---|---|---|---|
| 2016 | +3.9% | +13.0% | −1.2% |
| 2017 | +9.7% | +21.7% | −1.7% |
| 2018 | −3.2% | −5.0% | −6.4% |
| 2019 | +7.0% | +31.1% | −5.7% |
| 2020 | +10.5% | +18.5% | −6.2% |
| 2021 | +25.5% | +28.6% | −3.9% |
| 2022 | −7.8% | −18.2% | −9.9% |
| 2023 | +10.3% | +26.2% | −6.1% |
| 2024 | +23.1% | +24.9% | −3.9% |
| 2025 | +24.7% | +17.7% | −4.8% |
| 2026 | +6.7% | +11.5% | −4.4% |
Trades
| Trades | Win rate | Average trade | Best trade | Worst trade |
|---|---|---|---|---|
| 107 | 75% | +0.79% | +5.5% | −5.5% |
Assumptions
- SPY bought and sold at its 19:55 ET price (the regular close for dates after Oct 30, 2026), with a cost of 1.5 basis points per side.
- Alpaca doesn't publish past sweep rates, so interest is modelled as the Treasury bill ETF return (SGOV, BIL before 2020) minus 0.19 points a year. That matches the 3.56% APY shown when the account enrolled in Nov 2026.
- Interest is paid on settled cash only. Prices are Alpaca SIP daily bars, adjusted for splits and dividends.
Risks
- Lower total return. The strategy is out of the market most of the time, so it lags buy and hold in strong years.
- Weak years. See 2018 and 2022 in the table above: few trades, mostly losers.
- Gaps. The 5% stop is checked at the close only, so a single trade can lose more than 5%.
- After-hours fills. Liquidity at 19:55 ET is thinner than in the regular session, and a limit order may fill only in part.
- Chosen in hindsight. The parameters were picked with this history available; live results are usually weaker than a backtest.
Generated Nov 15, 2026 by spy_dip_buyer/backtest_report.py. Backtests use past prices and simple cost assumptions; past results don't guarantee future returns.