STRASMORE/EXPLORE 2,469 QUERIES

yearly_sharpe

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 open-source-tradingview-optimizer.

as of ranking 9×2read in context →
yearly_sharpe — 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 yearly_sharpe, 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
More from this analysisopen-source-tradingview-optimizer
walk_forward ranking 24×4 ma_grid ranking 24×2 surface ranking 6×4 Top 25 weekly-options underlyings by distinct contracts traded, with expiration weekdays ranking 25×4 Annualized volatility vs total return, 25 large caps, calmest to wildest (~2 years) ranking 25×3 SPY options median spread by expiration date, near-the-money strikes only ranking 25×4 See all 2,469 queries →