XLP dip-buy: close below a range band with low IBS, sell above yesterday's high
Buy the consumer staples ETF (XLP) at the close when it falls well below its recent high relative to its normal daily range and closes in the lower part of the day's range.
What they did
QuantifiedStrategies republished a 2013 mean-reversion rule on XLP with minor changes. Compute the 25-day average of (high − low). Compute IBS = (close − low) / (high − low). Band = the 25-day highest high − 2.25 × that average range. If XLP closes below the band and IBS is below 0.6, go long at the close. Exit when the close is higher than yesterday's high.
How it went
The poster's claims: $100,000 compounded from inception produced 'decent returns', shown only in an image. No figures in the text, and the post says the rules were also tested on other ETFs.
Sources:
Worth knowing
- No stated figures in the text, so treat this as rules to test, not a result.
- Staples move slowly. Expect few signals and small average gains, so costs matter.
- No stop in the original rules. Decide on one (time stop or % stop) before paper trading.
The prompt
Monitor [XLP] on daily bars. Check about [10] minutes before the close.
1. AvgRange = average of (high − low) over the last [25] days
2. Band = highest high of the last [25] days − [2.25] × AvgRange
3. IBS = (close − low) / (high − low) for today (use the live price as the close)
Entry: if I'm flat, the price is below Band and IBS < [0.6], propose buying $[amount] of [XLP] at the close.
Exit: while holding, if today's close is above yesterday's high, propose selling at the close.
Optional stop (off by default): [none / exit after X days / exit on a close X% below entry].
Each day report AvgRange, Band, IBS, the price, 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.