Skip to content
StatAlphaDocumentation

ORB — Opening Range Breakout

The Opening Range Breakout (ORB) module identifies when price breaks above or below the initial range of the trading day.
It is a key statistical component for analyzing market momentum, volatility, and directional bias.


  • The opening range is defined by the high and low of the first N minutes after the market opens.
  • A breakout occurs when price moves above or below this range.
  • Double breakouts (both directions) are detected and tracked with sequence information (up-down or down-up).
  • The algorithm measures:
    • Breakout size and percentage
    • Breakout timing
    • Direction frequency (up/down/double)
  • Weekday behavior patterns
  • Execution quality and outcome distributions for confirmed up and down breakouts, including MFE, MAE, retests, false breakouts, target hits, and time-to-target

Parameter Type Description
symbol string Asset symbol (e.g. AAPL, BTCUSD)
start_date / end_date string For /stats/orb: must be the same day (YYYY-MM-DD)
time_window string For /stats/orb/summary: predefined range (1M, 3M, 6M, 12M, 24M, 5Y)
start_time / end_time string UTC session range; by default the US equity session follows New York market hours
orb_minutes int Opening range duration (e.g. 1, 2, 5, 15)
include_extended_hours bool Include pre-/post-market data
orb_reentry_candles int Number of candles required to confirm reentry after breakout
top_n int Limit for /top endpoint
min_breakout_size float Threshold for /top-picks filtering (price units)

Endpoint Description
GET /stats/orb Returns full ORB details for a single day and symbol
GET /stats/orb/summary Aggregated statistics over a selected range
GET /stats/orb/top Lists top N breakout symbols for a given day
GET /stats/orb/top-picks Returns all symbols with breakouts above threshold
GET /stats/orb/doc Returns documentation of all ORB fields

Terminal window
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
"https://api.statalpha.io/stats/orb?symbol=AAPL&start_date=2025-09-12&orb_minutes=5"
Terminal window
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
"https://api.statalpha.io/stats/orb/summary?symbol=TSLA&time_window=12M&orb_minutes=5"
Terminal window
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
"https://api.statalpha.io/stats/orb/top?start_date=2025-09-12&orb_minutes=5&top_n=10"
Terminal window
curl -s -H "Authorization: Bearer $ACCESS_TOKEN" \
"https://api.statalpha.io/stats/orb/top-picks?date=2025-09-12&orb_minutes=5&min_breakout_size=0.5"

{
"symbol": "AAPL",
"orb_minutes": 5,
"total_days": 245,
"any_breakout_up_rate": 58.7,
"any_breakout_down_rate": 41.3,
"exclusive_no_breakout_rate": 12.4,
"avg_breakout_up_size": 0.83,
"avg_breakout_down_size": 0.79,
"avg_breakout_up_size_pct": 0.74,
"avg_breakout_down_size_pct": 0.69,
"avg_breakout_up_time": "14:22:00 UTC",
"avg_breakout_down_time": "15:08:00 UTC",
"breakout_summary": {
"double_breakout_rate": 8.3,
"only_up_rate": 52.7,
"only_down_rate": 39.0,
"no_breakout_rate": 12.4
},
"outcome_metrics": {
"up": {
"breakout_events": 137,
"breakout_size": {
"median": 1.14,
"stddev": 0.72,
"quartiles": {"q1": 0.58, "q2": 1.14, "q3": 1.62},
"percentiles": {"p10": 0.22, "p25": 0.58, "p50": 1.14, "p75": 1.62, "p90": 2.31}
},
"mfe_orb_multiple": {"median": 1.42},
"mae_orb_multiple": {"median": 0.38},
"retest_rate_pct": 24.8,
"false_breakout_rate_pct": {"5m": 9.7, "10m": 14.6, "15m": 18.2},
"target_hit_probabilities_pct": {"0.5x": 84.7, "1x": 62.0, "1.5x": 39.4, "2x": 24.1},
"close_in_breakout_direction_rate_pct": 67.9,
"time_to_target_seconds": {"1x": {"median": 1320.0}}
},
"down": {"breakout_events": 96}
},
"time_window": "12M"
}

Metric Meaning
any_breakout_up_rate / down_rate % of sessions where breakout occurred in each direction
exclusive_no_breakout_rate % of sessions with no breakout at all
avg_breakout_up/down_size_pct Average breakout size relative to opening range
avg_breakout_up/down_time Average breakout time (UTC)
double_breakout_rate % of sessions with both up and down breakouts
weekday_summary Shows breakout tendencies per weekday (only in summary endpoint)
outcome_metrics Direction-separated execution quality and chart-ready distributions for confirmed breakouts

outcome_metrics.up and outcome_metrics.down always use separate event populations. A double-breakout day may therefore contribute one event to each direction; no directional metric pools the two sides.

Field Meaning
breakout_size Existing canonical breakout-size distribution in price units, including median, population standard deviation, quartiles, and p10/p25/p50/p75/p90. This is chart-ready for a box plot or percentile band.
mfe / mae Maximum favourable/adverse excursion after first directional confirmation, measured from the corresponding opening-range boundary in price units.
mfe_orb_multiple / mae_orb_multiple MFE/MAE normalized by opening_high - opening_low. This is the Phase-1 ORB-multiple unit, not an R-multiple.
retest_rate_pct Rate of confirmed returns to the relevant opening-range boundary under the configured orb_reentry_candles rule.
false_breakout_rate_pct Retest/failed-breakout rate within 5, 10, and 15 minutes from the first directional confirmation.
target_hit_probabilities_pct Probability of touching 0.5x, 1x, 1.5x, or 2x opening-range width after confirmation.
close_in_breakout_direction_rate_pct Percentage of events whose final available session close is still beyond the corresponding ORB boundary. It is null if close data is unavailable.
time_to_target_seconds Distribution of elapsed seconds to the first touch of each ORB-multiple target. Only events that hit that target are included.

The summary does not introduce a second ORB confirmation rule. A directional event starts at the existing canonical first crossing: candle high > opening_high for up and low < opening_low for down. Retest and false-breakout metrics use that same high/low-based consecutive-candle re-entry definition, starting their 5/10/15-minute clocks at the directional confirmation timestamp. For an upward break, the highs of the configured consecutive candles must each be at or below the opening high; for a downward break, their lows must each be at or above the opening low. The default is two candles. A touch alone is not a confirmed re-entry; this does not by itself show whether the level held.

When a direction has no confirmed events, rate fields are null and every distribution has count: 0 with null descriptive values. Clients should render this as insufficient data rather than as a zero-quality signal.


  • ORB analysis helps identify momentum continuation and volatility expansion early in the session.
  • Double breakouts often indicate indecision or high volatility days.

The existing Movement panel can group historical ORB outcomes by prior-session trend regime/confidence, normalized range size or breakout time, with explicit combined filters. The unconditional baseline, sample reliability, Wilson intervals and absolute/relative lift remain visible. See Movement analysis for event definitions, coverage and interpretation. Legacy ORB endpoints and calculations are unchanged.