S&P 500 stocks: limit-buy a 2.5-SD Bollinger flush in an uptrend, exit when RSI(2) > 70
Each evening, find S&P 500 stocks in a confirmed uptrend that are short-term oversold, rest a limit buy at the lower 2.5-standard-deviation band, and sell once 2-day RSI snaps back above 70.
What they did
SetupAlpha published the full rules of a free S&P 500 mean-reversion model on daily bars, long only, up to 10 positions at 10% of equity each. LowerBand = 20-day average close − 2.5 × the 20-day standard deviation. A stock qualifies at the close when it is above its 200-day average, the 200-day average is rising, the 50-day average is above the 100-day, and both SPY's and the stock's RSI(2) are below 50. Next day, a resting limit buy sits at LowerBand (the price must trade 0.1% below it to count as filled). If more stocks qualify than free slots, the highest 200-day return goes first. Exit at the next open after a close with the stock's RSI(2) above 70.
How it went
The poster's claims: 2000–2024 on historical S&P 500 members, $0.005/share commission ($1 minimum): 67.1% winners over 1,419 trades, 14.2% average market exposure, −18.37% max drawdown, +17.0% in 2022 and −3.1% in 2008. In a separate test the same author says a mean-reversion system run on today's S&P 500 members instead of the members at the time ended at $1.88M instead of $963k (11.5% vs 8.8% a year), so survivorship bias can double a result.
Sources:
Worth knowing
- The rules need the stock list as it was at the time. Test on today's S&P 500 members and your result will look much better than it really was.
- The author calls this a demo strategy he doesn't trade live.
- Resting limits mean many days with no fill. The 14.2% exposure is the point: most of the time you are in cash.
- Earnings gaps can jump straight through the band. Decide whether to skip names with earnings in the next [2] days.
The prompt
After each US market close, scan [the current S&P 500 members] on daily bars. Do NOT place orders without my approval.
For each stock compute: MA(close,200), MA(close,50), MA(close,100), RSI(2), and LowerBand = MA(close,20) − [2.5] × StdDev(close,20). Also compute SPY's RSI(2).
A stock qualifies when ALL are true:
1. Close > MA(200), and MA(200) is higher than yesterday's MA(200)
2. MA(50) > MA(100)
3. SPY RSI(2) < [50] and the stock's RSI(2) < [50]
Rank qualifiers by 200-day return (highest first). Fill free slots up to [10] open positions at [10]% of strategy equity each.
For each one, propose a DAY limit buy at LowerBand for tomorrow (count it as filled only if the price trades at least [0.1]% below the limit).
Exit: after any close where a held stock's RSI(2) > [70], propose selling it at the next open.
Optional filter (off by default): [none / skip stocks with earnings in the next 2 trading days].
Each evening report: qualifiers with their LowerBand, open positions with RSI(2), and proposed orders.
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.