Skip to content
Back to strategies

Breakout Rider

Buys a U.S. stock fund when it matches its highest close over 63 trading days. Sells when it matches its lowest close over 21 days.

Backtest this strategyFree account required
RiskHolding timeFor players who want
MediumWeeks to MonthsA rule based on recent highs and lows

How it works

Two closing-price records decide when to hold SPY or cash.

When it buys SPY is a fund tracking large U.S. companies in the S&P 500. While in cash, buy when its close matches the highest close of the last 63 trading days, including today.

When it sells While holding SPY, sell when its close matches the lowest close of the last 21 trading days, including today. Tying an earlier high or low counts. Between signals, keep the current position.

Checks each trading close. Orders fill at the next trading open. The entry rule runs while in cash. The exit rule runs while holding SPY.

Rules at a glance

Eligible assets
Fixed list: SPY.
Schedule
Checks its rule at every trading close.
Money split
All the money in one asset.
Automatic loss limit
None.
DetailWhat it means
HoldsSPY, a U.S. stock fund, or cash
StyleFollows recent closing highs and lows
Trade timingChecks each trading close; trades at the next open when the target changes
Money splitTargets 100% SPY or 100% cash
RiskMedium
Automatic loss limitNone; a 21-day closing low signals a sale

What to watch out for

  • A high can reverse. Buying at a recent high does not show that prices will keep rising. The next sale can lock in a loss.
  • The low is not a fixed loss limit. SPY can fall sharply before the exit rule acts, and the next opening price can differ from the signal close.
  • Tied records count. Flat or uneven markets can trigger repeated switches. Cash can also miss a recovery and earns no interest in this game.

Source

Uses a breakout rule: buy at a recent closing high and sell at a shorter-window closing low.

Full rulebook

1. Strategy overview

  • Name: Breakout Rider
  • Goal: Hold SPY after a 63-day closing high until a 21-day closing low. Hold cash between those signals.
  • Idea: Use closing-price records over two different windows to decide when to buy and sell.

2. Investments it can hold

  • Fund: SPY, the SPDR S&P 500 ETF Trust, which tracks large U.S. companies
  • An ETF is a fund that trades on an exchange like a stock.
  • Other investments: none

3. Data and schedule

  • Data: daily closing prices; no company financial data
  • History needed: 63 trading days
  • Check: after every trading day's close
  • Trades: when the target changes, at the next trading day's open

4. When it buys

  • While holding no SPY, find the highest closing price in the last 63 trading days, including today.
  • If today's close equals that highest price, target 100% SPY. The purchase fills at the next trading day's open.
  • A tie with an earlier high qualifies. The price does not have to exceed every earlier close.
  • If today's close or the required window is unavailable, keep cash.
  • Maximum holdings: one fund
  • When you start: check that day's close. It can already qualify for a purchase at the next trading open; otherwise wait in cash.

5. When it sells

  • While holding SPY, find the lowest closing price in the last 21 trading days, including today.
  • If today's close equals that lowest price, sell the whole position at the next trading day's open.
  • A tie with an earlier low qualifies.
  • If today's close or the exit window is unavailable, keep SPY.
  • Time limit: none. The closing-low rule determines the sale.

6. How it divides the money

  • Target: 100% SPY when invested, or 100% cash when out
  • Cash: earns no interest in this game. Rounding leftovers and dividend cash stay in cash while SPY is held. They can join the next entry after a sale.
  • Stop loss: none. The 21-day-low rule is not a fixed percentage-loss limit.
  • Take profit: none

7. Moon's notes

  • Only the rule for the current position runs. While in cash, check the high; while invested, check the low.
  • If a flat price matches both records, the rule buys while in cash and sells while invested. The two conditions do not cancel each other.
  • Dividends on shares held at the previous close enter cash on the ex-dividend date. This is the first day a new buyer no longer qualifies for that dividend, and it can be earlier than payment day.