SPY low-IBS + RSI(21) dip: buy the close, sell on the first up close
When SPY closes near the bottom of its day's range and its 21-day RSI is below 45, buy at the close and sell at the first close above the prior day's close.
What they did
QuantifiedStrategies posted a classic S&P 500 mean-reversion test with four rules on daily bars: IBS (where the close sits in the day's range) below 0.25, RSI(21) below 45, go long at the close when both are true, and exit when the close is higher than the previous day's close. The test starts in January 2000 with $100,000, puts 100% of equity into every trade (compounding) and doesn't deduct taxes.
How it went
Per the author: the post shows an equity curve since 2000, plus a curve with the rules inverted to show the parameters matter, but it gives no return, win rate or drawdown figures in the text.
Sources:
Worth knowing
- No figures in the post itself, so paper-test it before trusting it.
- IBS = (close − low) ÷ (high − low). You need the day's final high, low and close, so act in the last minutes before the bell and accept a small difference from the backtest.
- 100% of equity per trade is aggressive. Size down while you test.
- Short-hold dip-buying tends to suffer in long, grinding sell-offs. Consider an optional trend or VIX filter, but test it separately.
The prompt
Monitor SPY on daily bars. Shortly before the close (around [3:55 PM ET]), using today's high, low and current price as the close:
1. IBS = (close − low) ÷ (high − low). Is it below [0.25]?
2. Is RSI([21]) below [45]?
If both are true and I'm flat, propose buying $[amount] of SPY at the close (market-on-close, or a limit near the last price).
Exit: near the close on the first day the price is above yesterday's close, propose selling the whole position at the close.
Optional filter (off by default): [none / only when SPY is above its 200-day average / skip if the VIX is above X].
Each day report SPY's high, low, near-close price, IBS, RSI(21), and whether the entry or exit triggers.
SAFETY DEFAULTS (keep unless you deliberately change them):
- Use the PAPER trading account only. Never touch a live account.
- Before every order, show me: symbol, side, size, order type, limit price, stop, and the rule that triggered it. Then WAIT for my "approve".
- Hard limits: max [$500] per trade, max [3] open positions, stop all trading for the day after a loss of [$300].
- Log every signal, decision and fill to [a running log / spreadsheet] with timestamps.To go fully autonomous: (1) run on paper for at least [4–8 weeks] or [30+ trades]; (2) delete the 'WAIT for my approve' line and keep the hard limits; (3) switch to live keys or account. On Robinhood, turn off trade approvals in your agent settings, but note that some orders can still require in-app approval or acknowledging a pre-trade alert, so unattended execution isn't guaranteed for every order. On IBKR, standard AI Integration asks for approval on every order. Its new Autonomous Trading mode (eligible individual non-margin accounts, after 10 approved trades) lets the AI trade a funded AI Partition without per-order approval. Never remove the daily loss limit.