STRASMORE/EXPLORE 2,170 QUERIES 22Y EQUITIES · 12Y OPTIONS

2,170 answered market questions

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

Wash Sale Rule and Options: The 61-Day Window
How many trading sessions fit inside a 61 day wash sale windowseries · 2026-08-13 · 30×4Preview: a 16-point series, roughly flat. One full 61 day wash sale window on the tape: AAPL, Dec 1 2025 through Jan 30 2026series · 2026-08-13 · 42×3Preview: a 16-point series, ending lower. Average call and put delta by strike distance, AAPL, 20 to 45 days to expiry, June 2026ranking · 2026-08-13 · 5×4Preview: 5 ranked values, largest first. Every December session and how far its wash sale window reaches into the new yearseries · 2026-08-13 · 22×4Preview: a 16-point series, ending higher.
Selling Mutual Funds at a Loss: How Basis Works
Daily tracking difference against SPY: broad US equity funds, first half of 2026ranking · 2026-08-01 · 4×3Preview: 4 ranked values, smallest first. The same monthly lots ranked by per share result at the December 2022 priceranking · 2026-08-01 · 18×3Preview: 16 ranked values, largest first. Distribution cadence: index and income funds, twelve months to June 30, 2026ranking · 2026-08-01 · 9×4Preview: 9 ranked values, largest first. A monthly buyer's lot prices and running average cost: VTI, July 2021 to December 2022series · 2026-08-01 · 18×4Preview: a 16-point series, ending lower.
How many trading sessions fit inside a 61 day wash sale window

How many trading sessions fit inside a 61 day wash sale window

most recentas of series 30×4read in context →
How many trading sessions fit inside a 61 day wash sale window — 30 rows by 4 columns, computed from US exchange, SIP and OPRA data.
monthlast_sessionsessions_in_windowcalendar_days_in_window
2024-01-012024-01-314261
2024-02-012024-02-294261
2024-03-012024-03-284361
2024-04-012024-04-304361
2024-05-012024-05-314161
2024-06-012024-06-284161
2024-07-012024-07-314461
2024-08-012024-08-304261
2024-09-012024-09-304261
2024-10-012024-10-314361
2024-11-012024-11-294161
2024-12-012024-12-314061
2025-01-012025-01-313961
2025-02-012025-02-284261
2025-03-012025-03-314261
2025-04-012025-04-304361
2025-05-012025-05-304161
2025-06-012025-06-304161
2025-07-012025-07-314361
2025-08-012025-08-294261
2025-09-012025-09-304361
2025-10-012025-10-314261
2025-11-012025-11-284161
2025-12-012025-12-314261
2026-01-012026-01-304061
2026-02-012026-02-274261
2026-03-012026-03-314361
2026-04-012026-04-304261
2026-05-012026-05-294161
2026-06-012026-06-304261
the exact SQL behind every number
WITH sessions AS
(
    SELECT DISTINCT date AS d
    FROM global_markets.stocks_daily_aggs
    WHERE ticker = 'SPY'
      AND date >= '2023-11-01'
),
month_ends AS
(
    SELECT
        toStartOfMonth(d) AS m,
        max(d)            AS anchor
    FROM sessions
    WHERE d >= '2024-01-01'
      AND d <  '2026-07-01'
    GROUP BY m
)
SELECT
    toString(me.m)                                            AS month,
    toString(me.anchor)                                       AS last_session,
    countIf(s.d >= me.anchor - 30 AND s.d <= me.anchor + 30)   AS sessions_in_window,
    61                                                        AS calendar_days_in_window
FROM month_ends AS me
CROSS JOIN sessions AS s
GROUP BY me.m, me.anchor
ORDER BY me.m
$