NR7 narrow-range long on an index ETF
Buy an index ETF at the close on the quietest day of the last seven, and sell at the first close above the prior day's high.
What they did
QuantifiedStrategies backtested the Narrow Range 7 rule on an ETF since its 1993 inception, compounding $100,000: if today's high-low range is the lowest of the past seven trading days, go long at the close; exit at the close when the close is above the previous day's high.
How it went
Per the author: it 'performs reasonably well' and they say an extra parameter improves it. The post shows an equity curve but no figures; their article has the details.
Sources:
Worth knowing
- The post doesn't name the ETF in its text (it starts in 1993, which matches SPY). Test on the one you plan to trade.
- No stop loss in the stated rules.
- Entry and exit happen at the close, so your agent needs to act in the last minutes of the session.
- The 'improved' version adds a parameter that isn't in the post. Don't guess it into the rules without checking.
The prompt
Monitor [SPY] on daily bars. Shortly before the close (around [3:50 PM ET]), using today's near-close high, low and price:
1. Today's range = high − low.
2. Entry: if today's range is the smallest of the last [7] trading days (including today) and I'm flat, propose buying $[amount] of [SPY] at the close.
3. Exit: near the close on any day the price is above the previous day's high, propose selling at the close.
4. Optional protective stop: [none / X% below entry / exit after N days].
Each day report today's range, the 7-day minimum range, the prior day's high, and whether the entry or exit rule 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.