STRASMORE/EXPLORE 2,707 QUERIES

Overnight gap versus intraday run: what the next session did

Answered against 22 years of US equities and 12 years of US options data and published with the query that produced it. This result is stored as of 2026-09-27, from What Happens After a Big One-Day Gain.

as of table 3×5read in context →
Overnight gap versus intraday run: what the next session did — 3 rows by 5 columns, computed from US exchange, SIP and OPRA data.
move_shapeobservationsmedian_next_cc_pctmedian_next_oc_pctmean_next_cc_pct
mostly intraday7551-1.6-1.07-0.56
mixed3790-0.89-0.83-0.61
mostly overnight gap3638-1.95-0.43-2.84
Rows × columns
3 × 5
Computed
Completeness
No missing values
Source
US exchange, SIP and OPRA market data
Licence
Strasmore terms · free, no signup
Formats
JSON · CSV · the SQL below

What each column holds

Column definitions for Overnight gap versus intraday run: what the next session did, derived from the stored result.
ColumnTypeRangeNotes
move_shape text 3 distinct values
observations number 3,638 to 7,551
median_next_cc_pct number -1.95 to -0.89 percent
median_next_oc_pct number -1.07 to -0.43 percent
mean_next_cc_pct number -2.84 to -0.56 percent

Computed from Strasmore's warehouse of US exchange, SIP and OPRA market data. Equity prices are delayed; options greeks and implied volatility are end-of-day. This result is stored, not recomputed on load — it is exactly the numbers that were returned on , and the query below is what returned them.

Run it yourself

This is the exact query behind the result above. Change a ticker, a date or a column and run it against the warehouse — no account, no key. The no-signup tier is smaller than the one this page was computed on; a query that reaches past it comes back saying which plan runs it.

WITH bars AS
(
    SELECT
        ticker,
        date,
        max(toFloat64(open))   AS o,
        max(toFloat64(close))  AS c,
        max(toFloat64(volume)) AS vol
    FROM global_markets.stocks_daily_aggs
    WHERE date >= today() - 1095
      AND date <= today() - 2
      AND ifNull(otc, 0) = 0
      AND ticker NOT IN ('SPCX')
    GROUP BY ticker, date
),
seq AS
(
    SELECT
        ticker,
        date,
        o,
        c,
        vol,
        lagInFrame(c)     OVER (PARTITION BY ticker ORDER BY date ASC ROWS BETWEEN 1 PRECEDING AND 1 PRECEDING) AS prev_c,
        leadInFrame(o)    OVER (PARTITION BY ticker ORDER BY date ASC ROWS BETWEEN 1 FOLLOWING AND 1 FOLLOWING) AS next_o,
        leadInFrame(c)    OVER (PARTITION BY ticker ORDER BY date ASC ROWS BETWEEN 1 FOLLOWING AND 1 FOLLOWING) AS next_c,
        leadInFrame(date) OVER (PARTITION BY ticker ORDER BY date ASC ROWS BETWEEN 1 FOLLOWING AND 1 FOLLOWING) AS next_date
    FROM bars
),
movers AS
(
    SELECT
        date,
        ticker,
        100 * (c / prev_c - 1)                        AS gain_pct,
        (o / prev_c - 1) / (c / prev_c - 1)           AS gap_share,
        100 * (next_c / next_o - 1)                   AS next_oc_pct,
        100 * (next_c / c - 1)                        AS next_cc_pct,
        row_number() OVER (PARTITION BY date ORDER BY c / prev_c DESC, ticker ASC) AS rnk
    FROM seq
    WHERE prev_c >= 5
      AND next_o > 0
      AND next_c > 0
      AND c * vol >= 5000000
      AND dateDiff('day', date, next_date) <= 6
)
SELECT
    multiIf(gap_share >= 0.7, 'mostly overnight gap',
            gap_share >= 0.3, 'mixed',
                              'mostly intraday')                                     AS move_shape,
    count()                                                                          AS observations,
    round(quantileDeterministic(0.5)(next_cc_pct, cityHash64(ticker, toString(date))), 2) AS median_next_cc_pct,
    round(quantileDeterministic(0.5)(next_oc_pct, cityHash64(ticker, toString(date))), 2) AS median_next_oc_pct,
    round(avg(next_cc_pct), 2)                                                       AS mean_next_cc_pct
FROM movers
WHERE rnk <= 20
  AND gain_pct >= 5
GROUP BY move_shape
ORDER BY min(gap_share) ASC
⌘/Ctrl + Enter

Work with this data in your AI assistant

Opens ready to query, with this page's data. Free, no account.

More from this analysisWhat Happens After a Big One-Day Gain
How the next session split: gapped up, gapped up and faded, closed higher table 5×5 → Next-session returns after a big one-day gain, by size of the gain table 5×5 → Sample coverage and next-session medians, year by year table 4×5 → The full spread of next-session returns for top-20 daily gainers ranking 5×3 → MSFT straddle prices at the close before the gap: Jan 28, 2026, Jan 30 expiry table 4×5 → What crossed the wire during SPY's biggest overnight gap of H1 2026 table 2×3 → See all 2,707 queries →