SPY 5-minute data, 2024 to 2026: the 09:30–10:00 range, out by 15:55 rule, long and short, lost 52.4% after costs over 597 trades, winning 35.7% of them, against +44.4% for holding SPY. Long only it lost 36.7%. The least bad of 6 runs was 09:30–10:00 range, out by 15:55 on QQQ, long only: -28.4%, held-out did not survive. Every run, every trade and the script are on this page.
Answers here: Does the opening range breakout work? · 15 or 30 minutes? · What is the win rate?
SPY 5-minute data, 4 June 2024 to 23 October 2026, long and short: 597 trades, lost 52.4% after costs, 35.7% of trades won, profit factor 0.63, worst drawdown 54.1%, 65% of the time in the market. Holding SPY returned +44.4% over the same period.
Held out on its own, the last third (8 January 2026 to 23 October 2026) lost 25.3% on 198 trades: it did not survive its held-out period.
Long only, the same rule lost 36.7% on 414 trades (38.2% won, profit factor 0.65, held-out did not survive): the short side cost 15.6 points of return in a period when SPY rose 44.4%.
597 trades in 2.4 years is about 251 a year; at 0.15% a round trip, costs alone came to roughly 90% of the account over the period. On minute charts the cost of trading is the first thing a rule has to beat, before any indicator.
Across all 6 runs on this page, 0 made money after costs, 0 survived the held-out third, and 0 beat holding the symbol (1 had too few trades to judge).
The least bad run was 09:30–10:00 range, out by 15:55 on QQQ, long only: -28.4% net on 394 trades, profit factor 0.79, worst drawdown 31.9%, held-out did not survive. The tester's verdict on it reads "lost money on this data".
Opening Range Breakout Strategy, from the strategy library.
The high and low of the first 30 minutes of the session (09:30 to 10:00 New York) set the range; a close above the range goes long, a close below it goes short, and every trade is closed by 15:55. A 15-minute range was run as well. The data comes from the last 600 sessions for 5-minute runs and the last 120 for 1-minute runs.
The indicator itself, with its Pine code drawn on real market data: Opening Range Breakout.
Net and holding the symbol are after costs over the same period. Held-out is the verdict on the last third of the history judged alone: survived, decayed, did not survive, or too few trades to judge.
| Symbol | Timeframe | Settings | Direction | Trades | Win rate | Net | Holding | Profit factor | Max drawdown | Held-out |
|---|---|---|---|---|---|---|---|---|---|---|
| SPY | 5-minute | 09:30–10:00 range, out by 15:55 | long and short | 597 | 35.7% | -52.3% | +44.4% | 0.63 | 54.1% | did not survive |
| QQQ | 5-minute | 09:30–10:00 range, out by 15:55 | long and short | 590 | 38.8% | -51.1% | +55.8% | 0.74 | 57.1% | did not survive |
| SPY | 5-minute | 09:30–09:45 range, out by 15:55 | long and short | 599 | 30.7% | -54.4% | +44.4% | 0.60 | 54.6% | did not survive |
| SPY | 1-minute | 09:30–10:00 range, out by 15:55 | long and short | 118 | 30.5% | -19.6% | +5.2% | 0.32 | 20.3% | did not survive |
| SPY | 5-minute | 09:30–10:00 range, out by 15:55 | long only | 414 | 38.2% | -36.7% | +44.4% | 0.65 | 37.6% | did not survive |
| QQQ | 5-minute | 09:30–10:00 range, out by 15:55 | long only | 394 | 45.7% | -28.4% | +55.8% | 0.79 | 31.9% | did not survive |
09:30–10:00 range, out by 15:55 on SPY, long and short, the same rule long only, and SPY itself, each calendar year after costs. A partial first or last year counts the sessions it has.
| Year | 09:30–10:00 range, out by 15:55, long and short | 09:30–10:00 range, out by 15:55, long only | Holding SPY |
|---|---|---|---|
| 2024 | -13.0% | -8.3% | +11.4% |
| 2025 | -25.0% | -16.3% | +16.0% |
| 2026 | -26.0% | -17.5% | +11.0% |
The newest 400 of the 597 trades of 09:30–10:00 range, out by 15:55 on SPY, long and short, oldest first: side, entry and exit days, fill prices after slippage, and the return after both commissions. The other runs' trades open below.
| Side | In | Out | Entry | Exit | Return |
|---|---|---|---|---|---|
| long | 2025-03-20 | 2025-03-21 | 568.30 | 559.14 | -1.7% |
| long | 2025-03-21 | 2025-03-24 | 561.62 | 570.65 | +1.5% |
| long | 2025-03-24 | 2025-03-25 | 573.17 | 575.15 | +0.2% |
| long | 2025-03-25 | 2025-03-25 | 575.95 | 573.87 | -0.5% |
| short | 2025-03-26 | 2025-03-27 | 572.79 | 567.35 | +0.8% |
| long | 2025-03-27 | 2025-03-28 | 568.66 | 565.37 | -0.7% |
| short | 2025-03-28 | 2025-03-31 | 563.58 | 549.97 | +2.3% |
| long | 2025-03-31 | 2025-04-01 | 551.53 | 557.30 | +0.9% |
| short | 2025-04-01 | 2025-04-01 | 555.40 | 558.73 | -0.7% |
| long | 2025-04-02 | 2025-04-03 | 560.66 | 544.96 | -2.9% |
| short | 2025-04-03 | 2025-04-04 | 543.10 | 523.87 | +3.4% |
| short | 2025-04-04 | 2025-04-07 | 518.28 | 489.32 | +5.5% |
| long | 2025-04-07 | 2025-04-08 | 513.98 | 521.73 | +1.4% |
| long | 2025-04-08 | 2025-04-08 | 524.24 | 517.65 | -1.4% |
| short | 2025-04-09 | 2025-04-09 | 493.09 | 502.18 | -1.9% |
| short | 2025-04-10 | 2025-04-11 | 527.52 | 523.05 | +0.7% |
| short | 2025-04-11 | 2025-04-11 | 520.66 | 528.98 | -1.7% |
| short | 2025-04-14 | 2025-04-15 | 538.50 | 539.82 | -0.3% |
| short | 2025-04-15 | 2025-04-16 | 538.87 | 531.82 | +1.2% |
| long | 2025-04-16 | 2025-04-16 | 534.59 | 529.78 | -1.0% |
| short | 2025-04-17 | 2025-04-17 | 525.90 | 529.45 | -0.8% |
| short | 2025-04-21 | 2025-04-22 | 516.67 | 520.26 | -0.8% |
| long | 2025-04-22 | 2025-04-23 | 523.15 | 540.28 | +3.2% |
| short | 2025-04-23 | 2025-04-24 | 538.45 | 536.88 | +0.2% |
| long | 2025-04-24 | 2025-04-25 | 539.83 | 546.50 | +1.1% |
| short | 2025-04-25 | 2025-04-25 | 544.45 | 548.27 | -0.8% |
| short | 2025-04-28 | 2025-04-29 | 549.36 | 549.06 | 0.0% |
| long | 2025-04-29 | 2025-04-30 | 552.33 | 547.44 | -1.0% |
| long | 2025-04-30 | 2025-05-01 | 547.95 | 560.22 | +2.1% |
| long | 2025-05-01 | 2025-05-01 | 561.90 | 558.50 | -0.7% |
| long | 2025-05-02 | 2025-05-05 | 566.45 | 562.40 | -0.8% |
| long | 2025-05-05 | 2025-05-06 | 563.62 | 557.78 | -1.1% |
| long | 2025-05-06 | 2025-05-07 | 560.11 | 560.00 | -0.1% |
| long | 2025-05-07 | 2025-05-07 | 561.78 | 559.37 | -0.5% |
| short | 2025-05-08 | 2025-05-08 | 563.31 | 565.79 | -0.5% |
| short | 2025-05-09 | 2025-05-12 | 565.60 | 581.65 | -2.9% |
| short | 2025-05-12 | 2025-05-12 | 578.12 | 581.89 | -0.8% |
| long | 2025-05-13 | 2025-05-14 | 585.88 | 587.67 | +0.2% |
| short | 2025-05-14 | 2025-05-15 | 585.98 | 585.72 | -0.1% |
| long | 2025-05-15 | 2025-05-16 | 586.97 | 591.09 | +0.6% |
| short | 2025-05-16 | 2025-05-16 | 589.27 | 591.58 | -0.5% |
| long | 2025-05-19 | 2025-05-20 | 592.17 | 592.95 | +0.0% |
| long | 2025-05-20 | 2025-05-20 | 593.90 | 591.88 | -0.4% |
| long | 2025-05-21 | 2025-05-21 | 590.74 | 588.26 | -0.5% |
| long | 2025-05-22 | 2025-05-23 | 584.83 | 575.83 | -1.6% |
| long | 2025-05-23 | 2025-05-27 | 578.42 | 585.91 | +1.2% |
| long | 2025-05-27 | 2025-05-27 | 586.95 | 584.21 | -0.6% |
| short | 2025-05-28 | 2025-05-29 | 590.30 | 593.22 | -0.6% |
| short | 2025-05-29 | 2025-05-30 | 588.94 | 589.07 | -0.1% |
| long | 2025-05-30 | 2025-05-30 | 589.38 | 586.24 | -0.6% |
| short | 2025-06-02 | 2025-06-02 | 585.72 | 589.90 | -0.8% |
| long | 2025-06-03 | 2025-06-04 | 593.58 | 596.79 | +0.4% |
| short | 2025-06-04 | 2025-06-05 | 596.50 | 597.79 | -0.3% |
| long | 2025-06-05 | 2025-06-05 | 598.54 | 593.75 | -0.9% |
| short | 2025-06-06 | 2025-06-09 | 597.83 | 599.90 | -0.4% |
| long | 2025-06-09 | 2025-06-10 | 600.22 | 600.06 | -0.1% |
| long | 2025-06-10 | 2025-06-10 | 601.39 | 600.00 | -0.3% |
| long | 2025-06-11 | 2025-06-11 | 604.68 | 602.09 | -0.5% |
| long | 2025-06-12 | 2025-06-13 | 601.62 | 598.34 | -0.6% |
| short | 2025-06-13 | 2025-06-13 | 597.64 | 600.53 | -0.6% |
| long | 2025-06-16 | 2025-06-17 | 603.61 | 600.06 | -0.7% |
| long | 2025-06-17 | 2025-06-17 | 601.32 | 599.02 | -0.5% |
| long | 2025-06-18 | 2025-06-18 | 599.76 | 597.20 | -0.5% |
| short | 2025-06-20 | 2025-06-23 | 596.86 | 595.20 | +0.2% |
| long | 2025-06-23 | 2025-06-23 | 597.48 | 593.44 | -0.8% |
| long | 2025-06-24 | 2025-06-25 | 605.82 | 607.75 | +0.2% |
| short | 2025-06-25 | 2025-06-26 | 607.15 | 609.17 | -0.4% |
| long | 2025-06-26 | 2025-06-27 | 609.63 | 612.72 | +0.4% |
| long | 2025-06-27 | 2025-06-27 | 615.27 | 612.54 | -0.5% |
| short | 2025-06-30 | 2025-06-30 | 615.73 | 617.65 | -0.4% |
| long | 2025-07-01 | 2025-07-01 | 617.99 | 616.09 | -0.4% |
| long | 2025-07-02 | 2025-07-03 | 617.84 | 622.28 | +0.6% |
| long | 2025-07-03 | 2025-07-07 | 625.01 | 623.18 | -0.4% |
| short | 2025-07-07 | 2025-07-08 | 622.59 | 621.52 | +0.1% |
| short | 2025-07-08 | 2025-07-08 | 620.37 | 621.84 | -0.3% |
| short | 2025-07-09 | 2025-07-10 | 622.39 | 624.37 | -0.4% |
| long | 2025-07-10 | 2025-07-11 | 624.99 | 622.57 | -0.5% |
| long | 2025-07-11 | 2025-07-14 | 623.75 | 623.00 | -0.2% |
| long | 2025-07-14 | 2025-07-15 | 623.70 | 627.34 | +0.5% |
| short | 2025-07-15 | 2025-07-16 | 625.33 | 623.93 | +0.1% |
| short | 2025-07-16 | 2025-07-16 | 621.73 | 624.29 | -0.5% |
| long | 2025-07-17 | 2025-07-18 | 626.61 | 629.12 | +0.3% |
| short | 2025-07-18 | 2025-07-21 | 628.26 | 628.93 | -0.2% |
| long | 2025-07-21 | 2025-07-21 | 631.05 | 628.50 | -0.5% |
| long | 2025-07-22 | 2025-07-23 | 629.39 | 631.38 | +0.2% |
| long | 2025-07-23 | 2025-07-24 | 631.97 | 634.42 | +0.3% |
| long | 2025-07-24 | 2025-07-25 | 635.58 | 634.89 | -0.2% |
| long | 2025-07-25 | 2025-07-28 | 635.88 | 637.33 | +0.1% |
| long | 2025-07-28 | 2025-07-28 | 638.13 | 636.91 | -0.3% |
| short | 2025-07-29 | 2025-07-30 | 637.03 | 636.13 | +0.0% |
| long | 2025-07-30 | 2025-07-30 | 636.73 | 635.12 | -0.4% |
| short | 2025-07-31 | 2025-08-01 | 637.09 | 626.47 | +1.6% |
| short | 2025-08-01 | 2025-08-04 | 620.88 | 625.84 | -0.9% |
| long | 2025-08-04 | 2025-08-05 | 629.58 | 631.64 | +0.2% |
| short | 2025-08-05 | 2025-08-06 | 630.53 | 629.22 | +0.1% |
| long | 2025-08-06 | 2025-08-06 | 630.47 | 628.10 | -0.5% |
| short | 2025-08-07 | 2025-08-08 | 634.75 | 634.24 | 0.0% |
| long | 2025-08-08 | 2025-08-11 | 636.52 | 637.30 | +0.0% |
| long | 2025-08-11 | 2025-08-11 | 638.12 | 636.71 | -0.3% |
| long | 2025-08-12 | 2025-08-13 | 640.40 | 644.74 | +0.6% |
| short | 2025-08-13 | 2025-08-14 | 644.08 | 642.95 | +0.1% |
| long | 2025-08-14 | 2025-08-15 | 644.66 | 645.82 | +0.1% |
| short | 2025-08-15 | 2025-08-18 | 643.50 | 643.03 | 0.0% |
| long | 2025-08-18 | 2025-08-18 | 644.01 | 642.36 | -0.4% |
| long | 2025-08-19 | 2025-08-19 | 644.26 | 641.81 | -0.5% |
| short | 2025-08-20 | 2025-08-21 | 634.20 | 636.45 | -0.5% |
| long | 2025-08-21 | 2025-08-21 | 636.92 | 634.14 | -0.5% |
| long | 2025-08-22 | 2025-08-25 | 643.10 | 643.86 | +0.0% |
| long | 2025-08-25 | 2025-08-25 | 644.61 | 643.24 | -0.3% |
| long | 2025-08-26 | 2025-08-27 | 643.34 | 644.40 | +0.1% |
| long | 2025-08-27 | 2025-08-28 | 645.83 | 647.10 | +0.1% |
| long | 2025-08-28 | 2025-08-29 | 648.32 | 647.29 | -0.3% |
| short | 2025-08-29 | 2025-09-02 | 644.43 | 637.67 | +0.9% |
| long | 2025-09-02 | 2025-09-02 | 639.62 | 635.88 | -0.7% |
| short | 2025-09-03 | 2025-09-03 | 641.45 | 643.40 | -0.4% |
| short | 2025-09-04 | 2025-09-04 | 643.91 | 645.47 | -0.3% |
| short | 2025-09-05 | 2025-09-08 | 650.33 | 648.79 | +0.1% |
| short | 2025-09-08 | 2025-09-08 | 647.74 | 649.23 | -0.3% |
| short | 2025-09-09 | 2025-09-09 | 647.45 | 649.67 | -0.4% |
| long | 2025-09-10 | 2025-09-10 | 654.31 | 652.51 | -0.4% |
| long | 2025-09-11 | 2025-09-12 | 655.88 | 657.42 | +0.1% |
| long | 2025-09-12 | 2025-09-12 | 658.34 | 656.97 | -0.3% |
| long | 2025-09-15 | 2025-09-15 | 660.99 | 659.30 | -0.4% |
| short | 2025-09-16 | 2025-09-17 | 659.86 | 660.18 | -0.1% |
| short | 2025-09-17 | 2025-09-17 | 659.38 | 660.84 | -0.3% |
| long | 2025-09-18 | 2025-09-19 | 662.92 | 662.15 | -0.2% |
| short | 2025-09-19 | 2025-09-19 | 661.11 | 662.88 | -0.4% |
| long | 2025-09-22 | 2025-09-23 | 663.86 | 666.53 | +0.3% |
| short | 2025-09-23 | 2025-09-24 | 666.28 | 664.68 | +0.1% |
| short | 2025-09-24 | 2025-09-25 | 662.00 | 658.15 | +0.5% |
| long | 2025-09-25 | 2025-09-25 | 658.18 | 654.91 | -0.6% |
| short | 2025-09-26 | 2025-09-26 | 658.65 | 662.08 | -0.6% |
| long | 2025-09-29 | 2025-09-29 | 665.27 | 663.54 | -0.4% |
| short | 2025-09-30 | 2025-09-30 | 661.59 | 663.46 | -0.4% |
| long | 2025-10-01 | 2025-10-02 | 665.71 | 670.29 | +0.6% |
| short | 2025-10-02 | 2025-10-03 | 668.43 | 670.17 | -0.4% |
| long | 2025-10-03 | 2025-10-03 | 671.82 | 669.75 | -0.4% |
| short | 2025-10-06 | 2025-10-06 | 669.42 | 671.83 | -0.5% |
| short | 2025-10-07 | 2025-10-08 | 671.63 | 670.44 | +0.1% |
| long | 2025-10-08 | 2025-10-09 | 671.47 | 673.34 | +0.2% |
| short | 2025-10-09 | 2025-10-10 | 671.36 | 672.32 | -0.2% |
| short | 2025-10-10 | 2025-10-13 | 668.95 | 660.83 | +1.1% |
| long | 2025-10-13 | 2025-10-13 | 663.21 | 659.63 | -0.6% |
| long | 2025-10-14 | 2025-10-15 | 657.73 | 666.64 | +1.3% |
| long | 2025-10-15 | 2025-10-15 | 669.13 | 665.87 | -0.6% |
| short | 2025-10-16 | 2025-10-16 | 665.64 | 668.26 | -0.5% |
| long | 2025-10-17 | 2025-10-17 | 663.31 | 658.06 | -0.9% |
| long | 2025-10-20 | 2025-10-21 | 669.90 | 671.28 | +0.1% |
| long | 2025-10-21 | 2025-10-22 | 672.26 | 671.80 | -0.2% |
| short | 2025-10-22 | 2025-10-23 | 670.26 | 668.27 | +0.2% |
| long | 2025-10-23 | 2025-10-24 | 671.20 | 676.28 | +0.7% |
| long | 2025-10-24 | 2025-10-27 | 677.99 | 682.55 | +0.6% |
| long | 2025-10-27 | 2025-10-28 | 683.54 | 686.89 | +0.4% |
| long | 2025-10-28 | 2025-10-29 | 687.45 | 688.54 | +0.1% |
| short | 2025-10-29 | 2025-10-30 | 687.94 | 684.08 | +0.5% |
| short | 2025-10-30 | 2025-10-31 | 680.84 | 685.22 | -0.7% |
| short | 2025-10-31 | 2025-11-03 | 682.44 | 685.84 | -0.6% |
| short | 2025-11-03 | 2025-11-04 | 681.93 | 676.29 | +0.7% |
| long | 2025-11-04 | 2025-11-04 | 679.18 | 674.49 | -0.8% |
| long | 2025-11-05 | 2025-11-06 | 677.83 | 676.29 | -0.3% |
| short | 2025-11-06 | 2025-11-07 | 672.41 | 668.09 | +0.5% |
| short | 2025-11-07 | 2025-11-07 | 664.06 | 668.16 | -0.7% |
| short | 2025-11-10 | 2025-11-10 | 676.72 | 679.38 | -0.5% |
| short | 2025-11-11 | 2025-11-11 | 678.73 | 681.03 | -0.4% |
| short | 2025-11-12 | 2025-11-13 | 682.90 | 680.69 | +0.2% |
| short | 2025-11-13 | 2025-11-14 | 677.06 | 665.58 | +1.6% |
| long | 2025-11-14 | 2025-11-17 | 669.96 | 669.52 | -0.2% |
| short | 2025-11-17 | 2025-11-18 | 668.49 | 662.27 | +0.8% |
| short | 2025-11-18 | 2025-11-18 | 656.88 | 664.44 | -1.3% |
| long | 2025-11-19 | 2025-11-19 | 666.33 | 659.93 | -1.1% |
| long | 2025-11-20 | 2025-11-20 | 675.47 | 672.29 | -0.6% |
| short | 2025-11-21 | 2025-11-21 | 652.92 | 656.64 | -0.7% |
| long | 2025-11-24 | 2025-11-25 | 666.12 | 668.45 | +0.3% |
| long | 2025-11-25 | 2025-11-26 | 670.61 | 677.42 | +0.9% |
| long | 2025-11-26 | 2025-11-28 | 679.74 | 680.67 | +0.0% |
| long | 2025-11-28 | 2025-11-28 | 682.17 | 680.32 | -0.4% |
| long | 2025-12-01 | 2025-12-02 | 682.24 | 681.74 | -0.2% |
| long | 2025-12-02 | 2025-12-02 | 683.22 | 681.31 | -0.4% |
| long | 2025-12-03 | 2025-12-04 | 682.39 | 685.12 | +0.3% |
| short | 2025-12-04 | 2025-12-05 | 682.49 | 685.63 | -0.6% |
| long | 2025-12-05 | 2025-12-05 | 687.80 | 685.14 | -0.5% |
| short | 2025-12-08 | 2025-12-09 | 684.75 | 683.34 | +0.1% |
| long | 2025-12-09 | 2025-12-09 | 684.74 | 682.64 | -0.4% |
| long | 2025-12-10 | 2025-12-11 | 683.80 | 684.93 | +0.1% |
| long | 2025-12-11 | 2025-12-12 | 686.62 | 687.99 | +0.1% |
| short | 2025-12-12 | 2025-12-15 | 686.52 | 685.90 | 0.0% |
| short | 2025-12-15 | 2025-12-16 | 681.31 | 679.40 | +0.2% |
| short | 2025-12-16 | 2025-12-17 | 677.13 | 680.07 | -0.5% |
| short | 2025-12-17 | 2025-12-18 | 676.77 | 677.78 | -0.2% |
| long | 2025-12-18 | 2025-12-18 | 679.19 | 675.51 | -0.6% |
| long | 2025-12-19 | 2025-12-22 | 680.30 | 683.75 | +0.4% |
| short | 2025-12-22 | 2025-12-22 | 682.71 | 684.71 | -0.4% |
| long | 2025-12-23 | 2025-12-24 | 686.51 | 687.77 | +0.1% |
| long | 2025-12-24 | 2025-12-26 | 689.05 | 690.46 | +0.1% |
| short | 2025-12-26 | 2025-12-29 | 690.07 | 687.73 | +0.2% |
| short | 2025-12-29 | 2025-12-30 | 686.93 | 687.63 | -0.2% |
| short | 2025-12-30 | 2025-12-30 | 686.63 | 688.71 | -0.4% |
| short | 2025-12-31 | 2026-01-02 | 684.96 | 685.89 | -0.2% |
| short | 2026-01-02 | 2026-01-05 | 683.68 | 686.72 | -0.5% |
| long | 2026-01-05 | 2026-01-06 | 688.10 | 687.75 | -0.2% |
| long | 2026-01-06 | 2026-01-07 | 690.37 | 692.02 | +0.1% |
| short | 2026-01-07 | 2026-01-07 | 691.44 | 693.27 | -0.4% |
| long | 2026-01-08 | 2026-01-09 | 689.98 | 690.47 | 0.0% |
| short | 2026-01-09 | 2026-01-09 | 689.44 | 692.48 | -0.5% |
| long | 2026-01-12 | 2026-01-13 | 694.10 | 695.34 | +0.1% |
| short | 2026-01-13 | 2026-01-14 | 693.61 | 691.18 | +0.2% |
| short | 2026-01-14 | 2026-01-15 | 688.08 | 694.75 | -1.1% |
| long | 2026-01-15 | 2026-01-15 | 695.00 | 693.00 | -0.4% |
| short | 2026-01-16 | 2026-01-20 | 691.43 | 681.67 | +1.3% |
| short | 2026-01-20 | 2026-01-20 | 680.93 | 683.49 | -0.5% |
| long | 2026-01-21 | 2026-01-21 | 682.94 | 678.79 | -0.7% |
| short | 2026-01-22 | 2026-01-22 | 687.14 | 690.85 | -0.6% |
| long | 2026-01-23 | 2026-01-26 | 689.47 | 690.29 | +0.0% |
| long | 2026-01-26 | 2026-01-27 | 693.28 | 694.00 | +0.0% |
| long | 2026-01-27 | 2026-01-28 | 695.72 | 696.88 | +0.1% |
| short | 2026-01-28 | 2026-01-29 | 696.43 | 696.53 | -0.1% |
| short | 2026-01-29 | 2026-01-30 | 690.21 | 691.96 | -0.4% |
| short | 2026-01-30 | 2026-02-02 | 690.90 | 689.76 | +0.1% |
| long | 2026-02-02 | 2026-02-03 | 694.68 | 696.03 | +0.1% |
| short | 2026-02-03 | 2026-02-04 | 692.69 | 690.53 | +0.2% |
| short | 2026-02-04 | 2026-02-05 | 687.10 | 681.12 | +0.8% |
| short | 2026-02-05 | 2026-02-06 | 676.68 | 681.64 | -0.8% |
| long | 2026-02-06 | 2026-02-09 | 687.08 | 689.24 | +0.2% |
| long | 2026-02-09 | 2026-02-10 | 691.97 | 694.77 | +0.3% |
| long | 2026-02-10 | 2026-02-10 | 696.39 | 693.27 | -0.5% |
| short | 2026-02-11 | 2026-02-12 | 693.52 | 694.46 | -0.2% |
| short | 2026-02-12 | 2026-02-13 | 691.79 | 681.86 | +1.3% |
| long | 2026-02-13 | 2026-02-17 | 684.28 | 679.94 | -0.7% |
| short | 2026-02-17 | 2026-02-17 | 675.94 | 682.98 | -1.1% |
| long | 2026-02-18 | 2026-02-19 | 687.77 | 683.68 | -0.7% |
| short | 2026-02-19 | 2026-02-20 | 682.24 | 682.50 | -0.1% |
| long | 2026-02-20 | 2026-02-23 | 687.12 | 687.64 | 0.0% |
| short | 2026-02-23 | 2026-02-24 | 685.10 | 682.08 | +0.3% |
| long | 2026-02-24 | 2026-02-25 | 686.50 | 690.01 | +0.4% |
| long | 2026-02-25 | 2026-02-26 | 692.39 | 693.10 | +0.0% |
| short | 2026-02-26 | 2026-02-27 | 690.16 | 683.24 | +0.9% |
| long | 2026-02-27 | 2026-03-02 | 684.90 | 678.52 | -1.0% |
| long | 2026-03-02 | 2026-03-03 | 684.44 | 674.87 | -1.5% |
| short | 2026-03-03 | 2026-03-03 | 670.88 | 677.28 | -1.1% |
| long | 2026-03-04 | 2026-03-05 | 684.64 | 681.89 | -0.5% |
| short | 2026-03-05 | 2026-03-06 | 680.86 | 673.57 | +1.0% |
| long | 2026-03-06 | 2026-03-09 | 674.31 | 666.21 | -1.3% |
| long | 2026-03-09 | 2026-03-10 | 668.30 | 677.53 | +1.3% |
| short | 2026-03-10 | 2026-03-10 | 674.73 | 678.97 | -0.7% |
| short | 2026-03-11 | 2026-03-11 | 675.34 | 678.68 | -0.6% |
| short | 2026-03-12 | 2026-03-13 | 667.88 | 669.46 | -0.3% |
| short | 2026-03-13 | 2026-03-16 | 668.67 | 668.52 | -0.1% |
| long | 2026-03-16 | 2026-03-16 | 671.17 | 667.51 | -0.6% |
| short | 2026-03-17 | 2026-03-18 | 671.64 | 668.51 | +0.4% |
| short | 2026-03-18 | 2026-03-19 | 666.98 | 657.14 | +1.4% |
| long | 2026-03-19 | 2026-03-20 | 659.53 | 656.34 | -0.6% |
| short | 2026-03-20 | 2026-03-23 | 652.75 | 658.21 | -0.9% |
| long | 2026-03-23 | 2026-03-23 | 661.35 | 655.90 | -0.9% |
| long | 2026-03-24 | 2026-03-25 | 653.59 | 658.51 | +0.7% |
| short | 2026-03-25 | 2026-03-26 | 654.98 | 652.22 | +0.3% |
| short | 2026-03-26 | 2026-03-27 | 650.19 | 642.70 | +1.1% |
| short | 2026-03-27 | 2026-03-30 | 638.15 | 640.29 | -0.4% |
| short | 2026-03-30 | 2026-03-31 | 634.37 | 639.11 | -0.8% |
| long | 2026-03-31 | 2026-04-01 | 645.04 | 653.71 | +1.2% |
| long | 2026-04-01 | 2026-04-02 | 656.36 | 646.25 | -1.6% |
| long | 2026-04-02 | 2026-04-06 | 650.46 | 655.69 | +0.7% |
| long | 2026-04-06 | 2026-04-06 | 658.84 | 655.35 | -0.6% |
| short | 2026-04-07 | 2026-04-07 | 653.33 | 657.75 | -0.8% |
| short | 2026-04-08 | 2026-04-09 | 673.56 | 675.02 | -0.3% |
| short | 2026-04-09 | 2026-04-09 | 674.24 | 675.97 | -0.4% |
| long | 2026-04-10 | 2026-04-10 | 682.13 | 679.99 | -0.4% |
| long | 2026-04-13 | 2026-04-14 | 679.91 | 687.51 | +1.0% |
| long | 2026-04-14 | 2026-04-15 | 690.55 | 695.08 | +0.6% |
| long | 2026-04-15 | 2026-04-16 | 696.82 | 700.87 | +0.5% |
| long | 2026-04-16 | 2026-04-17 | 701.61 | 705.96 | +0.5% |
| long | 2026-04-17 | 2026-04-20 | 709.05 | 708.60 | -0.2% |
| short | 2026-04-20 | 2026-04-21 | 707.92 | 710.47 | -0.5% |
| long | 2026-04-21 | 2026-04-21 | 711.22 | 708.56 | -0.5% |
| long | 2026-04-22 | 2026-04-23 | 709.72 | 709.31 | -0.2% |
| long | 2026-04-23 | 2026-04-23 | 711.67 | 709.03 | -0.5% |
| long | 2026-04-24 | 2026-04-27 | 711.36 | 712.98 | +0.1% |
| short | 2026-04-27 | 2026-04-27 | 712.37 | 714.60 | -0.4% |
| short | 2026-04-28 | 2026-04-29 | 709.89 | 711.19 | -0.3% |
| long | 2026-04-29 | 2026-04-29 | 711.56 | 709.47 | -0.4% |
| long | 2026-04-30 | 2026-05-01 | 715.49 | 721.06 | +0.7% |
| long | 2026-05-01 | 2026-05-01 | 724.55 | 720.55 | -0.7% |
| long | 2026-05-04 | 2026-05-04 | 721.17 | 719.06 | -0.4% |
| long | 2026-05-05 | 2026-05-06 | 723.37 | 727.98 | +0.5% |
| long | 2026-05-06 | 2026-05-07 | 730.28 | 734.86 | +0.5% |
| long | 2026-05-07 | 2026-05-07 | 735.38 | 733.36 | -0.4% |
| long | 2026-05-08 | 2026-05-11 | 736.93 | 736.27 | -0.2% |
| long | 2026-05-11 | 2026-05-12 | 739.67 | 736.71 | -0.5% |
| short | 2026-05-12 | 2026-05-12 | 733.85 | 737.41 | -0.6% |
| long | 2026-05-13 | 2026-05-14 | 738.85 | 743.46 | +0.5% |
| long | 2026-05-14 | 2026-05-15 | 746.27 | 741.60 | -0.7% |
| long | 2026-05-15 | 2026-05-18 | 742.30 | 739.63 | -0.5% |
| short | 2026-05-18 | 2026-05-19 | 737.23 | 734.94 | +0.2% |
| short | 2026-05-19 | 2026-05-19 | 732.71 | 736.49 | -0.6% |
| long | 2026-05-20 | 2026-05-21 | 737.49 | 738.48 | +0.0% |
| long | 2026-05-21 | 2026-05-21 | 740.59 | 737.22 | -0.6% |
| short | 2026-05-22 | 2026-05-22 | 745.35 | 748.36 | -0.5% |
| long | 2026-05-26 | 2026-05-26 | 751.52 | 748.93 | -0.4% |
| short | 2026-05-27 | 2026-05-28 | 748.95 | 750.45 | -0.3% |
| long | 2026-05-28 | 2026-05-29 | 750.83 | 755.70 | +0.5% |
| short | 2026-05-29 | 2026-06-01 | 754.92 | 755.54 | -0.2% |
| long | 2026-06-01 | 2026-06-02 | 757.25 | 756.82 | -0.2% |
| long | 2026-06-02 | 2026-06-03 | 757.98 | 757.94 | -0.1% |
| short | 2026-06-03 | 2026-06-04 | 753.92 | 752.30 | +0.1% |
| long | 2026-06-04 | 2026-06-05 | 754.39 | 752.11 | -0.4% |
| short | 2026-06-05 | 2026-06-08 | 748.11 | 743.56 | +0.5% |
| long | 2026-06-08 | 2026-06-08 | 745.18 | 740.60 | -0.7% |
| short | 2026-06-09 | 2026-06-10 | 741.35 | 733.58 | +0.9% |
| long | 2026-06-10 | 2026-06-10 | 737.35 | 731.31 | -0.9% |
| short | 2026-06-11 | 2026-06-11 | 725.38 | 731.75 | -1.0% |
| long | 2026-06-12 | 2026-06-15 | 741.83 | 751.65 | +1.2% |
| long | 2026-06-15 | 2026-06-16 | 754.40 | 754.38 | -0.1% |
| short | 2026-06-16 | 2026-06-17 | 753.79 | 751.49 | +0.2% |
| long | 2026-06-17 | 2026-06-17 | 752.31 | 749.66 | -0.5% |
| short | 2026-06-22 | 2026-06-23 | 747.29 | 733.93 | +1.7% |
| long | 2026-06-23 | 2026-06-24 | 738.21 | 734.95 | -0.5% |
| long | 2026-06-24 | 2026-06-24 | 738.51 | 734.11 | -0.7% |
| long | 2026-06-26 | 2026-06-26 | 732.39 | 726.67 | -0.9% |
| short | 2026-06-29 | 2026-06-29 | 734.89 | 740.10 | -0.8% |
| long | 2026-06-30 | 2026-07-01 | 744.72 | 744.76 | -0.1% |
| long | 2026-07-01 | 2026-07-02 | 745.62 | 747.20 | +0.1% |
| short | 2026-07-02 | 2026-07-06 | 746.69 | 748.89 | -0.4% |
| long | 2026-07-06 | 2026-07-07 | 749.87 | 750.07 | -0.1% |
| short | 2026-07-07 | 2026-07-08 | 746.81 | 743.36 | +0.4% |
| short | 2026-07-08 | 2026-07-08 | 742.07 | 745.13 | -0.5% |
| long | 2026-07-09 | 2026-07-10 | 749.70 | 751.85 | +0.2% |
| short | 2026-07-10 | 2026-07-10 | 750.78 | 753.44 | -0.5% |
| short | 2026-07-13 | 2026-07-14 | 751.31 | 751.09 | -0.1% |
| long | 2026-07-14 | 2026-07-15 | 752.24 | 754.04 | +0.1% |
| short | 2026-07-15 | 2026-07-16 | 752.88 | 752.94 | -0.1% |
| long | 2026-07-16 | 2026-07-16 | 754.07 | 750.47 | -0.6% |
| long | 2026-07-17 | 2026-07-20 | 745.52 | 746.86 | +0.1% |
| short | 2026-07-20 | 2026-07-21 | 745.14 | 746.49 | -0.3% |
| long | 2026-07-21 | 2026-07-22 | 747.05 | 746.42 | -0.2% |
| long | 2026-07-22 | 2026-07-23 | 749.17 | 739.16 | -1.4% |
| short | 2026-07-23 | 2026-07-24 | 737.97 | 738.73 | -0.2% |
| long | 2026-07-24 | 2026-07-24 | 740.79 | 737.24 | -0.6% |
| short | 2026-07-27 | 2026-07-28 | 740.77 | 739.43 | +0.1% |
| long | 2026-07-28 | 2026-07-29 | 740.77 | 739.77 | -0.2% |
| short | 2026-07-29 | 2026-07-29 | 735.22 | 740.59 | -0.8% |
| long | 2026-07-30 | 2026-07-30 | 738.88 | 734.44 | -0.7% |
| short | 2026-07-31 | 2026-07-31 | 740.10 | 746.51 | -1.0% |
| long | 2026-08-03 | 2026-08-04 | 754.09 | 760.42 | +0.7% |
| long | 2026-08-04 | 2026-08-05 | 764.08 | 775.64 | +1.4% |
| short | 2026-08-05 | 2026-08-06 | 773.72 | 770.41 | +0.3% |
| long | 2026-08-06 | 2026-08-06 | 771.73 | 768.85 | -0.5% |
| short | 2026-08-07 | 2026-08-07 | 770.20 | 772.57 | -0.4% |
| long | 2026-08-10 | 2026-08-10 | 773.88 | 772.30 | -0.3% |
| short | 2026-08-11 | 2026-08-12 | 772.25 | 774.91 | -0.4% |
| short | 2026-08-12 | 2026-08-13 | 771.74 | 775.07 | -0.5% |
| long | 2026-08-13 | 2026-08-14 | 778.43 | 778.34 | -0.1% |
| short | 2026-08-14 | 2026-08-17 | 777.33 | 776.38 | +0.0% |
| short | 2026-08-17 | 2026-08-18 | 774.87 | 768.90 | +0.7% |
| short | 2026-08-18 | 2026-08-19 | 767.58 | 770.56 | -0.5% |
| long | 2026-08-19 | 2026-08-20 | 771.36 | 765.75 | -0.8% |
| short | 2026-08-20 | 2026-08-20 | 765.24 | 767.95 | -0.5% |
| long | 2026-08-21 | 2026-08-24 | 766.45 | 764.56 | -0.3% |
| long | 2026-08-24 | 2026-08-25 | 765.15 | 765.97 | +0.0% |
| short | 2026-08-25 | 2026-08-26 | 765.26 | 764.88 | -0.1% |
| short | 2026-08-26 | 2026-08-26 | 763.95 | 767.10 | -0.5% |
| long | 2026-08-27 | 2026-08-28 | 770.42 | 771.56 | +0.0% |
| short | 2026-08-28 | 2026-08-28 | 770.79 | 773.07 | -0.4% |
| short | 2026-08-31 | 2026-08-31 | 764.81 | 767.82 | -0.5% |
| long | 2026-09-01 | 2026-09-01 | 763.12 | 760.97 | -0.4% |
| long | 2026-09-02 | 2026-09-03 | 763.94 | 767.66 | +0.4% |
| short | 2026-09-03 | 2026-09-03 | 767.63 | 770.25 | -0.4% |
| short | 2026-09-04 | 2026-09-08 | 771.33 | 769.26 | +0.2% |
| short | 2026-09-08 | 2026-09-09 | 766.21 | 764.28 | +0.2% |
| short | 2026-09-09 | 2026-09-09 | 762.84 | 764.58 | -0.3% |
| long | 2026-09-10 | 2026-09-11 | 759.58 | 764.49 | +0.5% |
| short | 2026-09-11 | 2026-09-14 | 763.84 | 759.19 | +0.5% |
| long | 2026-09-14 | 2026-09-14 | 761.07 | 758.25 | -0.5% |
| short | 2026-09-15 | 2026-09-16 | 758.30 | 759.70 | -0.3% |
| long | 2026-09-16 | 2026-09-16 | 760.72 | 758.52 | -0.4% |
| short | 2026-09-17 | 2026-09-17 | 760.02 | 763.61 | -0.6% |
| short | 2026-09-18 | 2026-09-18 | 758.88 | 761.96 | -0.5% |
| long | 2026-09-21 | 2026-09-22 | 767.99 | 773.83 | +0.7% |
| short | 2026-09-22 | 2026-09-23 | 773.33 | 772.99 | -0.1% |
| short | 2026-09-23 | 2026-09-24 | 769.81 | 764.27 | +0.6% |
| long | 2026-09-24 | 2026-09-24 | 766.17 | 763.42 | -0.5% |
| short | 2026-09-25 | 2026-09-25 | 767.39 | 770.51 | -0.5% |
| short | 2026-09-28 | 2026-09-28 | 766.24 | 768.81 | -0.4% |
| short | 2026-09-29 | 2026-09-30 | 764.32 | 766.61 | -0.4% |
| long | 2026-09-30 | 2026-09-30 | 768.79 | 765.80 | -0.5% |
| short | 2026-10-01 | 2026-10-01 | 759.88 | 765.54 | -0.8% |
| long | 2026-10-02 | 2026-10-02 | 772.54 | 768.87 | -0.6% |
| long | 2026-10-05 | 2026-10-06 | 772.01 | 777.96 | +0.7% |
| long | 2026-10-06 | 2026-10-07 | 780.22 | 775.57 | -0.7% |
| short | 2026-10-07 | 2026-10-07 | 773.69 | 776.35 | -0.4% |
| long | 2026-10-08 | 2026-10-08 | 776.01 | 774.25 | -0.3% |
| long | 2026-10-09 | 2026-10-12 | 777.27 | 778.58 | +0.1% |
| short | 2026-10-12 | 2026-10-13 | 777.53 | 777.54 | -0.1% |
| short | 2026-10-13 | 2026-10-14 | 776.80 | 775.13 | +0.1% |
| short | 2026-10-14 | 2026-10-15 | 772.83 | 766.44 | +0.7% |
| long | 2026-10-15 | 2026-10-16 | 767.73 | 773.04 | +0.6% |
| short | 2026-10-16 | 2026-10-19 | 770.69 | 767.43 | +0.3% |
| long | 2026-10-19 | 2026-10-19 | 768.55 | 766.00 | -0.4% |
| long | 2026-10-20 | 2026-10-21 | 768.94 | 770.98 | +0.2% |
| short | 2026-10-21 | 2026-10-21 | 768.65 | 771.54 | -0.5% |
| short | 2026-10-22 | 2026-10-23 | 764.22 | 760.10 | +0.4% |
| long | 2026-10-23 | 2026-10-23 | 761.83 | 759.72 | -0.4% |
Pine v6, exactly as it ran for 09:30–10:00 range, out by 15:55 on SPY, long and short. The variants change only the inputs listed in the table.
//@version=6
strategy("Opening Range Breakout Strategy", overlay=true, default_qty_type=strategy.percent_of_equity, default_qty_value=100, initial_capital=100000, commission_type=strategy.commission.percent, commission_value=0.05, slippage=1, margin_long=0, margin_short=0)
sess = input.session("0930-1000", "Opening window (exchange time)", group="Session")
exitHour = input.int(15, "Flat at hour (exchange time)", minval=0, maxval=23, group="Session")
exitMinute = input.int(55, "Flat at minute", minval=0, maxval=59, group="Session")
useLong = input.bool(true, "Trade longs", group="Direction")
useShort = input.bool(true, "Trade shorts", group="Direction")
// the window and the exit run on the exchange clock, never GMT
inWindow = not na(time(timeframe.period, sess, syminfo.timezone))
newDay = timeframe.change("D")
flatTime = hour == exitHour and minute >= exitMinute
var float orHigh = na
var float orLow = na
var bool traded = false
if newDay
orHigh := na
orLow := na
traded := false
if inWindow
orHigh := na(orHigh) ? high : math.max(orHigh, high)
orLow := na(orLow) ? low : math.min(orLow, low)
rangeSet = not inWindow and not na(orHigh) and not flatTime
longSig = rangeSet and not traded and close > orHigh and barstate.isconfirmed
shortSig = rangeSet and not traded and close < orLow and barstate.isconfirmed
plot(rangeSet ? orHigh : na, "Opening range high", color=color.new(#16A56A, 0), linewidth=1, style=plot.style_linebr)
plot(rangeSet ? orLow : na, "Opening range low", color=color.new(#E5484D, 0), linewidth=1, style=plot.style_linebr)
bgcolor(inWindow ? color.new(#E3A008, 92) : na, title="Opening window")
if longSig and useLong
strategy.entry("Long", strategy.long)
strategy.exit("Long stop", "Long", stop=orLow)
traded := true
if shortSig and useShort
strategy.entry("Short", strategy.short)
strategy.exit("Short stop", "Short", stop=orHigh)
traded := true
if flatTime and barstate.isconfirmed
strategy.close_all()
Alpaca 5-minute data from the last 600 sessions, and 1-minute data from the last 120 sessions, 0.05% commission and 0.025% slippage on every fill, the last third of the history held out, textbook settings and nothing tuned. The engine, fills and what it does not model are written out once, in data and methodology.
Describe the rule in your own words or paste the script. The Free plan writes the Pine v6 script with the AI, runs it on any US stock or ETF with the same costs and the same held-out check, and shows every trade on the chart. No card.
Seventeen popular rules through the same engine, the same costs and the same held-out check, with every trade listed. Next: VWAP strategy, Time-of-day strategy, Donchian breakout (turtle) strategy.
SPY, 5-minute data, 2024 to 2026, long and short: 09:30–10:00 range, out by 15:55 lost 52.4% after costs over 597 trades (35.7% won, profit factor 0.63) against +44.4% for holding SPY, and the held-out third did not survive. Long only it lost 36.7%. Across all 6 runs on the page, 0 made money after costs, 0 survived their held-out third and 0 beat holding the stock.
From 30.5% to 45.7% across the 6 runs. The classic setting, 09:30–10:00 range, out by 15:55 on SPY long and short, won 35.7% of 597 trades. The win rate alone does not decide the result: that run's profit factor was 0.63, so its losers outweighed its winners, and the net return was -52.3%.
Of the 2 settings tested, 09:30–10:00 range, out by 15:55 on QQQ (long only) did least badly: -28.4% net, profit factor 0.79, held-out did not survive. That is the best of 6 tries on 2.4 years of 5-minute data of one symbol, which is already a fitted number. A setting that works on one symbol or one period only is a coincidence, not a setting; run it on your own symbol and timeframe before trusting it.
0 of the 6 runs did. SPY itself returned +44.4% between 4 June 2024 and 23 October 2026, so a rule that is out of the market part of the time has a lot to make up; what a timing rule usually gets you is a smaller drawdown, not a bigger return. The classic run's worst drawdown was 54.1% with 65% of the time in the market.
The last third of every run's history (8 January 2026 to 23 October 2026 for the lead run) was judged on its own, with no fitting on it: 0 of 6 runs survived, 0 decayed, 6 did not survive and 0 had too few trades there to judge. Survived means a positive Sharpe ratio on the held-out part at least half the fitted period's; it is a check on one later stretch, not a forecast.
With the free Alpha Charts tester's own engine: the Pine v6 scripts on this page, run on Alpaca 5-minute data from the last 600 sessions, and 1-minute data from the last 120 sessions, split-adjusted and not dividend-adjusted, one position at a time with the whole account, fills at the next candle's open, a commission of 0.05% and slippage of 0.025% on every fill, the last third of the history held out. The settings are the textbook ones and every variant is stated; nothing was tuned to make the page look better.
Every number on this page is the output of the Alpha Charts backtest engine on 25 October 2026, on Alpaca market data; the scripts are the strategy library's templates, shown as they ran. Symbols are US-listed ETFs and stocks; results are price returns after the costs stated. Past results are not a forecast and nothing here is investment advice. TradingView and Pine Script belong to TradingView, Inc.; Alpha Charts is not affiliated with it.