Two candles set the whole plan

For the first half hour of the New York session, the S&P 500 Opening Range Breakout strategy does one job. It records the high and low of the 9:30 and 9:45 candles. On Friday those levels were $717.27 and $711.72. At 10:00, with the range complete, the default setup can place a buy stop at the high and a sell stop at the low.

Friday tested the buy side first. At the range high, a 0.4% stop works out to about $714.40. The breakout candle itself closed below that level. The next candle pushed through $711.72, but the first entry had already canceled the other pending order and used the day’s one trade. If you replay the session, the strategy has a clear answer to the temptation to flip short after a losing long.

The same rule caught a very different morning

Go back one session to Thursday, November 19. The opening range was $735.42 to $739.90. At 10:00 the first break went the other way. SPY dropped through $735.42 and kept moving lower. It stayed below the modeled short stop near $738.36 through the scheduled exit, and the 15:45 candle opened at $716.92.

November 19 SPY chart showing the break below $735.42 at 10:00 and the 15:45 bar opening at $716.92.
Thursday’s SPY session. The first break held below the modeled stop through the scheduled 15:45 exit.

Thursday shows why the strategy leaves a surviving trade open until the timed exit. Friday shows why it stops after one entry. Together, the sessions give you two concrete behaviors to test: how often the first break carries far enough to hold, and how often it reverses before the next candle.

What I’d compare in Strategy Tester

Start with the default 30-minute opening range, then rerun the same dates with long-only and short-only enabled separately. Open the trade list and look for Fridays like this one. If the losing trades tend to come from one side, you’ll know which setups to inspect before changing a stop or adding a filter.

Strategy settingDefault behavior
Opening range09:30–10:00 Eastern on a 15-minute chart
EntryFirst eligible break of the range high or low, up to one entry per day
Stop and exit0.4% stop or a scheduled 15:45 Eastern exit. The opposite range boundary is an optional stop.
ControlsEditable range and exit times, long/short toggles, fixed or risk-based sizing, and entry and exit alert templates

The charts reconstruct the setup from historical SPY candles. The levels show where the rules act. Strategy Tester uses the chart feed and its fill settings to calculate exact executions and costs.

Premium Pine Script v6 · Lifetime membership

Test the first break on your own chart

Download the full S&P 500 Opening Range Breakout source and change the opening window, direction, and stop from TradingView’s inputs. The lifetime pass includes the script library and setup and testing support.

Get the S&P 500 strategy Included in the lifetime pass