STRASMORE/EXPLORE 2,433 QUERIES

ath_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-20, from investing-at-all-time-highs.

as of table 20×7read in context →
ath_by_year — 20 rows by 7 columns, computed from US exchange, SIP and OPRA data.
yearcloses_countedrecord_closesrecord_share_pctseries_start_labelcounting_from_labellast_session_label
20077922.5Sep 10, 2003Sep 10, 2007Dec 31, 2007
200825300Sep 10, 2003Sep 10, 2007Dec 31, 2008
200925200Sep 10, 2003Sep 10, 2007Dec 31, 2009
201025200Sep 10, 2003Sep 10, 2007Dec 31, 2010
201125200Sep 10, 2003Sep 10, 2007Dec 30, 2011
201225000Sep 10, 2003Sep 10, 2007Dec 31, 2012
20132524819Sep 10, 2003Sep 10, 2007Dec 31, 2013
20142525220.6Sep 10, 2003Sep 10, 2007Dec 31, 2014
2015252114.4Sep 10, 2003Sep 10, 2007Dec 31, 2015
2016252187.1Sep 10, 2003Sep 10, 2007Dec 30, 2016
20172515421.5Sep 10, 2003Sep 10, 2007Dec 29, 2017
2018251197.6Sep 10, 2003Sep 10, 2007Dec 31, 2018
20192523413.5Sep 10, 2003Sep 10, 2007Dec 31, 2019
20202533313Sep 10, 2003Sep 10, 2007Dec 31, 2020
20212527128.2Sep 10, 2003Sep 10, 2007Dec 31, 2021
202225110.4Sep 10, 2003Sep 10, 2007Dec 30, 2022
202325000Sep 10, 2003Sep 10, 2007Dec 29, 2023
20242525823Sep 10, 2003Sep 10, 2007Dec 31, 2024
20252504016Sep 10, 2003Sep 10, 2007Dec 31, 2025
20261792614.5Sep 10, 2003Sep 10, 2007Sep 18, 2026
Rows × columns
20 × 7
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 ath_by_year, derived from the stored result.
ColumnTypeRangeNotes
year number 2,007 to 2,026
closes_counted number 79 to 253
record_closes number 0 to 71
record_share_pct number 0 to 28.2 percent
series_start_label text 1 distinct value (Sep 10, 2003)
counting_from_label text 1 distinct value (Sep 10, 2007)
last_session_label text 20 distinct values (Dec 29, 2017, Dec 29, 2023, Dec 30, 2011…)

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,
            close >= max(close) OVER (ORDER BY date ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS is_record,
            min(date) OVER ()                                                                          AS series_start
        FROM daily
    )
SELECT
    toYear(date)                                                 AS year,
    count()                                                      AS closes_counted,
    countIf(is_record = 1)                                       AS record_closes,
    round(100 * countIf(is_record = 1) / count(), 1)             AS record_share_pct,
    any(formatDateTime(series_start, '%b %e, %Y'))               AS series_start_label,
    any(formatDateTime(addYears(series_start, 4), '%b %e, %Y'))  AS counting_from_label,
    formatDateTime(max(date), '%b %e, %Y')                       AS last_session_label
FROM flagged
WHERE date >= addYears(series_start, 4)
GROUP BY year
ORDER BY year
⌘/Ctrl + Enter
More from this analysisinvesting-at-all-time-highs
drawdowns table 7×5 forward_returns table 3×7 next_ath ranking 5×4 The 2s10s spread, every print of the half table 124×2 The 2s10s spread, every print of the half table 124×2 Every half-year since 1976: the 2y and 10y change, the twist between them, and the half's lowest 2s10s print table 100×7 See all 2,433 queries →