Event-Driven vs Vectorized Backtesting
Median shares per executed print, 2024ranking ·
2026-10-04 · 5×2
Distance from the signal close to the next session's open, 2024ranking ·
2026-10-04 · 5×3
How far SPY travels after the minute your signal fired (June 2024)ranking ·
2026-10-04 · 5×3
One rule, two fill conventions: SPY equity curves through 2024series ·
2026-10-04 · 12×4
Median shares per executed print, 2024
Median shares per executed print, 2024
| ticker | median_shares_per_print |
|---|---|
| NVDA | 164 |
| SPY | 117 |
| KO | 94 |
| AAPL | 82 |
| MSFT | 51 |
the exact SQL behind every number
WITH daily AS
(
SELECT
ticker,
date,
toFloat64(any(volume)) AS volume,
toFloat64(any(transactions)) AS transactions
FROM global_markets.stocks_daily_aggs
WHERE ticker IN ('SPY', 'AAPL', 'MSFT', 'NVDA', 'KO')
AND date >= '2024-01-01'
AND date < '2025-01-01'
GROUP BY ticker, date
)
SELECT
ticker,
round(quantileDeterministic(0.5)(volume / transactions, toUInt32(toRelativeDayNum(date))), 0) AS median_shares_per_print
FROM daily
WHERE transactions > 0
GROUP BY ticker
ORDER BY median_shares_per_print DESC
More from this analysisEvent-Driven vs Vectorized Backtesting
Distance from the signal close to the next session's open, 2024
ranking 5×3
→
How far SPY travels after the minute your signal fired (June 2024)
ranking 5×3
→
One rule, two fill conventions: SPY equity curves through 2024
series 12×4
→
Three runs of backtest.py on the illustrative 60-bar file
ranking 3×4
→
See all 3,022 queries →