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

Buy-and-hold SPY: the same rule, scored 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-22, from The Open-Source TradingView Optimizer.

as of ranking 9×2read in context →
Buy-and-hold SPY: the same rule, scored year by year — 9 rows by 2 columns, computed from US exchange, SIP and OPRA data.
yearspy_sharpe
20160.77
20172.67
2018-0.3
20192.08
20200.62
20211.9
2022-0.78
20231.73
20241.73
Rows × columns
9 × 2
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 Buy-and-hold SPY: the same rule, scored year by year, derived from the stored result.
ColumnTypeRangeNotes
year text 9 distinct values (2016, 2017, 2018…)
spy_sharpe number -0.78 to 2.67

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
        d,
        px / prev_px - 1 AS ret
    FROM
    (
        SELECT
            date                AS d,
            toFloat64(close)    AS px,
            lagInFrame(toFloat64(close)) OVER (ORDER BY date ASC ROWS BETWEEN 1 PRECEDING AND CURRENT ROW) AS prev_px
        FROM global_markets.stocks_daily_aggs
        WHERE ticker = 'SPY'
          AND date >= '2015-12-31'
          AND date <= '2024-12-31'
    )
    WHERE prev_px > 0
)
SELECT
    toString(toYear(d))                                        AS year,
    round(avg(ret) / stddevPop(ret) * sqrt(252), 2)            AS spy_sharpe
FROM daily
GROUP BY year
ORDER BY year
⌘/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 analysisThe Open-Source TradingView Optimizer
In-sample rank versus out-of-sample Sharpe, same 24 cells ranking 24×4 → A 24-cell moving-average grid on SPY, ranked by Sharpe ranking 24×2 → The parameter surface: Sharpe by fast length, one line per slow length ranking 6×4 → US tickers trading in a June week, and how many still traded in June 2026 ranking 11×4 → A 20/50 moving-average crossover on SPY, year by year, against holding ranking 9×4 → Same rule, prior-session signal against same-session signal, SPY by year ranking 9×4 → See all 3,293 queries →