Home / Free RealTest Codes / SPY & QQQ 15-Minute Intraday Breakout Strategy (Free RealTest Script)

Skip to product information
SPY & QQQ 15-Minute Intraday Breakout Strategy (Free RealTest Script)

SPY & QQQ 15-Minute Intraday Breakout Strategy (Free RealTest Script)

$0.00

Download the RealTest script from my YouTube walkthrough and run the same intraday backtest on SPY and QQQ. The script imports five-minute data for both ETFs and uses 15-minute bars to make trading decisions.

The strategy looks for a close above the upper Keltner band after price crosses it from below. It can buy at the next bar’s open and holds one ETF at a time. If both qualify together, the one with the stronger 78-bar return gets priority. The exit rules use a 15-bar exponential moving average and a time cutoff that moves earlier on half days. The backtest includes commissions and slippage.

To run it yourself, open the .rts file in a version of RealTest that supports intraday bars. Point the two CSVFile lines to your downloaded files, then set SaveAs and DataFile to the same .rtd path. Click Import, then Test. You can get both data files for free. Download the QQQ data · Download the SPY data

Trading edges

For traders choosing which edge their portfolio is missing.

See all strategies

Candlestick chart of a short term pullback in an uptrend

Daily mean reversion

Buys short-term pullbacks in uptrending stocks. 2-4 day holds.

Candlestick chart of a stock in a strong uptrend

Momentum rotation

Holds the top-ranked liquid Nasdaq stocks and rotates when leaders shift.

Candlestick chart of a dip after a new all time high

All-time high pullbacks

Enters strong dips in stocks that recently broke out to new all-time highs.

Five ETF equity lines rotating in and out of a monthly portfolio realtest

Monthly ETF rotation

Rotates across major liquid asset class ETFs once a month. No daily work.

Multi-strategy portfolios,

or build your own.

Run complete diversified RealTest strategies together, or learn to research and validate your own models.

Multi-strategy portfolios

Run multiple systems together

Claude, the AI used to build strategies in the RealTest course

RealTest AI Course

Build your own with Claude

The full live record is on every strategy page

Three SetupAlpha RealTest strategies and SPY buy and hold, equity from 2000 to 2026
See all strategies