STRASMORE/EXPLORE 3,293 QUERIES
Full options quote history: clean NBBO bid/ask snapshots for any US option contract at the interval you choose, by SQL API, $79 a month. See the options quotes plan

Calendar days from a record close to the next one, SPY

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-11-01, from Investing at All-Time Highs: What the Data Says.

as of ranking 5×4read in context →
Calendar days from a record close to the next one, SPY — 5 rows by 4 columns, computed from US exchange, SIP and OPRA data.
bucketrecord_closesshare_pctcumulative_share_pct
within 1 month41294.194.1
1 to 3 months173.997.9
3 to 6 months40.998.9
6 to 12 months20.599.3
more than 12 months30.7100
Rows × columns
5 × 4
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 Calendar days from a record close to the next one, SPY, derived from the stored result.
ColumnTypeRangeNotes
bucket text 5 distinct values
record_closes number 2 to 412
share_pct number 0.5 to 94.1 percent
cumulative_share_pct number 94.1 to 100 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
    daily AS
    (
        SELECT
            date,
            toFloat64(argMax(close, _ingest_time)) AS close
        FROM global_markets.stocks_daily_aggs
        WHERE ticker = 'SPY'
        GROUP BY date
    ),
    flagged AS
    (
        SELECT
            date,
            close >= max(close) OVER (ORDER BY date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS is_record,
            min(date) OVER ()                                                                          AS series_start,
            max(date) OVER ()                                                                          AS series_end
        FROM daily
    ),
    highs AS
    (
        SELECT
            date,
            series_end,
            leadInFrame(date, 1) OVER (ORDER BY date ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING) AS next_high
        FROM flagged
        WHERE is_record = 1
          AND date >= addYears(series_start, 4)
    ),
    gaps AS
    (
        SELECT
            if(next_high > date, dateDiff('day', date, next_high), 99999) AS gap_days
        FROM highs
        WHERE date <= subtractDays(series_end, 365)
    ),
    bucketed AS
    (
        SELECT
            multiIf(gap_days <= 31,  'within 1 month',
                    gap_days <= 92,  '1 to 3 months',
                    gap_days <= 183, '3 to 6 months',
                    gap_days <= 365, '6 to 12 months',
                                     'more than 12 months') AS bucket,
            count()                                          AS record_closes,
            min(gap_days)                                    AS sort_key
        FROM gaps
        GROUP BY bucket
    )
SELECT
    bucket,
    record_closes,
    round(100 * record_closes / sum(record_closes) OVER (), 1)                                        AS share_pct,
    round(100 * sum(record_closes) OVER (ORDER BY sort_key ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
              / sum(record_closes) OVER (), 1)                                                        AS cumulative_share_pct
FROM bucketed
ORDER BY sort_key
⌘/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 analysisInvesting at All-Time Highs: What the Data Says
Record closes per year, SPY (price basis, first four years of the file excluded) table 20×7 → Deepest closing declines from a record close, SPY table 7×5 → Forward price change after record closes vs all other sessions, SPY table 3×7 → $10,000 in the S&P 500 tracker: price only vs dividends reinvested, year-end 2006 to July 2026 ranking 20×4 → S&P 500 tracker by calendar year: price return vs the points added by reinvested dividends ranking 20×3 → Each SPY death cross and the golden cross that ended it ranking 11×4 → See all 3,293 queries →