gap_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-26, from msft-premarket-and-after-hours-prices.
| year | sessions | median_abs_gap_pct | over_1pct_share_pct |
|---|---|---|---|
| 2016 | 251 | 0.31 | 11.6 |
| 2017 | 251 | 0.24 | 4 |
| 2018 | 251 | 0.44 | 16.3 |
| 2019 | 252 | 0.43 | 15.9 |
| 2020 | 253 | 0.65 | 31.2 |
| 2021 | 252 | 0.39 | 17.5 |
| 2022 | 251 | 0.64 | 33.5 |
| 2023 | 250 | 0.48 | 18.8 |
| 2024 | 252 | 0.34 | 13.5 |
| 2025 | 250 | 0.4 | 17.2 |
| 2026 | 166 | 0.66 | 30.7 |
- Rows × columns
- 11 × 4
- Computed
- Completeness
- No missing values
- Source
- US exchange, SIP and OPRA market data
- Licence
- Strasmore terms · free, no signup
What each column holds
| Column | Type | Range | Notes |
|---|---|---|---|
year |
text | 11 distinct values (2016, 2017, 2018…) | |
sessions |
number | 166 to 253 | |
median_abs_gap_pct |
number | 0.24 to 0.66 | percent |
over_1pct_share_pct |
number | 4 to 33.5 | 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 bars AS
(
SELECT
date,
any(open) AS open_px,
any(close) AS close_px
FROM global_markets.stocks_daily_aggs
WHERE ticker = 'MSFT'
AND date >= '2016-01-01'
AND date < '2026-09-01'
GROUP BY date
),
gaps AS
(
SELECT
date,
round((toFloat64(open_px) / prev_close - 1) * 100, 3) AS gap_pct
FROM
(
SELECT
date,
open_px,
lagInFrame(toFloat64(close_px)) OVER (ORDER BY date ASC ROWS BETWEEN 1 PRECEDING AND CURRENT ROW) AS prev_close
FROM bars
)
WHERE prev_close > 0
)
SELECT
toString(toYear(date)) AS year,
count() AS sessions,
round(quantileDeterministic(0.5)(abs(gap_pct), toUInt64(toYYYYMMDD(date))), 2) AS median_abs_gap_pct,
round(100.0 * countIf(abs(gap_pct) > 1) / count(), 1) AS over_1pct_share_pct
FROM gaps
GROUP BY year
ORDER BY year ASC
在你的 AI 助理中使用這些資料
開啟即可查詢,已帶入本頁資料。免費,無需帳號。