STRASMORE/EXPLORE 2,170 QUERIES

Same fund, five lookback windows: SPY maximum drawdown by sample length to July 31, 2026

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-08-05, from What Is Maximum Drawdown? Depth vs Recovery.

as of ranking 5×3read in context →
Same fund, five lookback windows: SPY maximum drawdown by sample length to July 31, 2026 — 5 rows by 3 columns, computed from US exchange, SIP and OPRA data.
lookbackmax_drawdown_pctworst_point
1 year9.1Mar 2026
2 years19Apr 2025
3 years19Apr 2025
5 years25.4Oct 2022
10 years34.2Mar 2020
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 Same fund, five lookback windows: SPY maximum drawdown by sample length to July 31, 2026, derived from the stored result.
ColumnTypeRangeNotes
lookback text 5 distinct values (1 year, 10 years, 2 years…)
max_drawdown_pct number 9.1 to 34.2 percent
worst_point text 4 distinct values (Apr 2025, Mar 2020, Mar 2026…)

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.

the exact SQL behind every number
WITH daily AS (
    SELECT toDate(toTimeZone(window_start, 'America/New_York')) AS session_date,
           argMax(toFloat64(close), window_start) AS close_px
    FROM global_markets.delayed_stocks_minute_aggs
    WHERE ticker = 'SPY'
      AND toDate(toTimeZone(window_start, 'America/New_York')) >= toDate('2016-07-01')
      AND toDate(toTimeZone(window_start, 'America/New_York')) <= toDate('2026-07-31')
      AND (toHour(toTimeZone(window_start, 'America/New_York')) * 60
           + toMinute(toTimeZone(window_start, 'America/New_York'))) BETWEEN 570 AND 959
    GROUP BY session_date
),
scoped AS (
    SELECT arrayJoin([1, 2, 3, 5, 10]) AS lookback_years,
           session_date,
           close_px
    FROM daily
),
windowed AS (
    SELECT lookback_years, session_date, close_px
    FROM scoped
    WHERE session_date >= subtractYears(toDate('2026-07-31'), lookback_years)
),
runs AS (
    SELECT lookback_years,
           session_date,
           close_px,
           max(close_px) OVER (PARTITION BY lookback_years ORDER BY session_date
                               ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) AS running_peak
    FROM windowed
)
SELECT concat(toString(lookback_years), if(lookback_years = 1, ' year', ' years')) AS lookback,
       round(100 * max(1 - close_px / running_peak), 1) AS max_drawdown_pct,
       formatDateTime(argMax(session_date, 1 - close_px / running_peak), '%b %Y') AS worst_point
FROM runs
GROUP BY lookback_years
ORDER BY lookback_years

Run your own version of this

The same 22 years of US equities and 12 years of options data are queryable in SQL or plain English. A free account runs 100 queries a day and takes no card.

More from this analysisWhat Is Maximum Drawdown? Depth vs Recovery
Maximum drawdown against annualized volatility: eight large caps, five years to July 31, 2026 ranking 8×3 SPY underwater curve: month end close against its running peak, 2016 to 2026 series 127×2 Completed SPY drawdowns since 2016: depth, days falling, days climbing back table 8×5 The calmest large caps: annualized realized volatility over the past year, lowest first ranking 15×2 Symbols that printed a final daily bar, by year ranking 10×3 The January 2019 universe, grouped by what happened to each name ranking 9×4 See all 2,170 queries →