STRASMORE/EXPLORE 2,707 QUERIES

Sample coverage and next-session medians, year by year

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 4×5read in context →
Sample coverage and next-session medians, year by year — 4 rows by 5 columns, computed from US exchange, SIP and OPRA data.
yearsessionsmover_rowsmedian_next_cc_pctmean_next_cc_pct
2023641280-0.360.14
20242525040-1.25-0.96
20252505000-2.25-1.62
20261833660-1.44-1.13
Rows × columns
4 × 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 Sample coverage and next-session medians, year by year, derived from the stored result.
ColumnTypeRangeNotes
year text 4 distinct values (2023, 2024, 2025…)
sessions number 64 to 252
mover_rows number 1,280 to 5,040
median_next_cc_pct number -2.25 to -0.36 percent
mean_next_cc_pct number -1.62 to 0.14 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,
        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 * (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
    toString(toYear(date))                                                                AS year,
    countDistinct(date)                                                                   AS sessions,
    count()                                                                               AS mover_rows,
    round(quantileDeterministic(0.5)(next_cc_pct, cityHash64(ticker, toString(date))), 2)  AS median_next_cc_pct,
    round(avg(next_cc_pct), 2)                                                            AS mean_next_cc_pct
FROM movers
WHERE rnk <= 20
GROUP BY year
ORDER BY year 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 → Overnight gap versus intraday run: what the next session did table 3×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 →