STRASMORE/EXPLORE 3,022 QUERIES 22Y EQUITIES · 12Y OPTIONS

3,022 answered market questions

every one with its exact SQL, its result and the date it was computed · free, no signup

Event-Driven vs Vectorized Backtesting
Median shares per executed print, 2024ranking · 2026-10-04 · 5×2Preview: 5 ranked values, largest first. Distance from the signal close to the next session's open, 2024ranking · 2026-10-04 · 5×3Preview: 5 ranked values, largest first. How far SPY travels after the minute your signal fired (June 2024)ranking · 2026-10-04 · 5×3Preview: 5 ranked values, smallest first. One rule, two fill conventions: SPY equity curves through 2024series · 2026-10-04 · 12×4Preview: a 12-point series, ending higher.
Median shares per executed print, 2024

Median shares per executed print, 2024

most recentas of ranking 5×2read in context →
Median shares per executed print, 2024 — 5 rows by 2 columns, computed from US exchange, SIP and OPRA data.
tickermedian_shares_per_print
NVDA164
SPY117
KO94
AAPL82
MSFT51
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
$