What Is Backtesting in Trading?
Distance from one close to the next open, liquid names, 2025 (basis points)ranking ·
2026-09-16 · 5×3
Does Dividend Capture Actually Work?
Quarterly dividend as a share of price vs typical daily move: ten large payers, Jul 2023 to Jun 2026ranking ·
2026-08-01 · 10×4
Coca-Cola (KO): overnight decline vs dividend on each ex-dividend date, Sep 2023 to Jun 2026series ·
2026-08-01 · 12×4
Ex-dividend openings sorted by decline as a multiple of the dividend: US quarterly payers, Jan 2024 to Jun 2026ranking ·
2026-08-01 · 5×3
Overnight decline vs dividend paid: ten large payers, 12 ex-dividend dates each, Jul 2023 to Jun 2026table ·
2026-08-01 · 10×5
Distance from one close to the next open, liquid names, 2025 (basis points)
Distance from one close to the next open, liquid names, 2025 (basis points)
| ticker | avg_abs_gap_bps | median_abs_gap_bps |
|---|---|---|
| AAPL | 73.3 | 36.4 |
| MSFT | 66.3 | 39.8 |
| TLT | 47.1 | 37.5 |
| SPY | 46.7 | 28.5 |
| KO | 38.1 | 23.5 |
the exact SQL behind every number
WITH
px AS
(
SELECT
ticker,
date,
toFloat64(open) AS open_px,
toFloat64(close) AS close_px
FROM global_markets.stocks_daily_aggs
WHERE ticker IN ('SPY', 'AAPL', 'MSFT', 'KO', 'TLT')
AND date >= '2025-01-01'
AND date <= '2025-12-31'
),
gaps AS
(
SELECT
ticker,
date,
close_px,
leadInFrame(open_px) OVER (PARTITION BY ticker ORDER BY date ROWS BETWEEN CURRENT ROW AND 1 FOLLOWING) AS next_open
FROM px
)
SELECT
ticker,
round(avg(abs(next_open / close_px - 1)) * 10000, 1) AS avg_abs_gap_bps,
round(median(abs(next_open / close_px - 1)) * 10000, 1) AS median_abs_gap_bps
FROM gaps
WHERE next_open > 0
GROUP BY ticker
ORDER BY avg_abs_gap_bps DESC, ticker ASC
Related queries
When market headlines publish, by New York clock hour
ranking 24×2
→
Growth of one dollar: holding all year vs holding only November through April
ranking 21×3
→
S&P 500 tracker: May to October vs November to April, season by season
ranking 21×3
→
SPY distributions by ex-dividend month: inside the May to October window vs outside it
ranking 19×3
→
See all 3,256 queries →