STRASMORE/EXPLORE 2,707 QUERIES

The full spread of next-session returns for top-20 daily gainers

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 ranking 5×3read in context →
The full spread of next-session returns for top-20 daily gainers — 5 rows by 3 columns, computed from US exchange, SIP and OPRA data.
percentileclose_to_close_pctopen_to_close_pct
p05-26.28-18.68
p25-8.05-6.2
p50-1.6-0.9
p754.213.85
p9521.818.8
Rows × columns
5 × 3
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 The full spread of next-session returns for top-20 daily gainers, derived from the stored result.
ColumnTypeRangeNotes
percentile text 5 distinct values (p05, p25, p50…)
close_to_close_pct number -26.28 to 21.8 percent
open_to_close_pct number -18.68 to 18.8 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 / 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
),
picks AS
(
    SELECT
        date,
        ticker,
        next_cc_pct,
        next_oc_pct,
        arrayJoin(['p05', 'p25', 'p50', 'p75', 'p95']) AS percentile
    FROM movers
    WHERE rnk <= 20
)
SELECT
    percentile,
    round(multiIf(percentile = 'p05', quantileDeterministic(0.05)(next_cc_pct, cityHash64(ticker, toString(date))),
                  percentile = 'p25', quantileDeterministic(0.25)(next_cc_pct, cityHash64(ticker, toString(date))),
                  percentile = 'p50', quantileDeterministic(0.5)(next_cc_pct, cityHash64(ticker, toString(date))),
                  percentile = 'p75', quantileDeterministic(0.75)(next_cc_pct, cityHash64(ticker, toString(date))),
                                      quantileDeterministic(0.95)(next_cc_pct, cityHash64(ticker, toString(date)))), 2) AS close_to_close_pct,
    round(multiIf(percentile = 'p05', quantileDeterministic(0.05)(next_oc_pct, cityHash64(ticker, toString(date))),
                  percentile = 'p25', quantileDeterministic(0.25)(next_oc_pct, cityHash64(ticker, toString(date))),
                  percentile = 'p50', quantileDeterministic(0.5)(next_oc_pct, cityHash64(ticker, toString(date))),
                  percentile = 'p75', quantileDeterministic(0.75)(next_oc_pct, cityHash64(ticker, toString(date))),
                                      quantileDeterministic(0.95)(next_oc_pct, cityHash64(ticker, toString(date)))), 2) AS open_to_close_pct
FROM picks
GROUP BY percentile
ORDER BY percentile 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 → Overnight gap versus intraday run: what the next session did table 3×5 → Annualized volatility and worst single session, trailing two years ranking 10×3 → 20-session return versus SPY across a nine-fund ETF universe ranking 9×3 → See all 2,707 queries →