Skip to content

Add log returns and gamma scalping cookbook recipes#392

Merged
javier merged 5 commits intomainfrom
jv/gamma_scalping_cookbook
Mar 18, 2026
Merged

Add log returns and gamma scalping cookbook recipes#392
javier merged 5 commits intomainfrom
jv/gamma_scalping_cookbook

Conversation

@javier
Copy link
Contributor

@javier javier commented Mar 17, 2026

Add three cookbook additions:

  • Log returns recipe under Math Utilities (core_price, tick-by-tick and sampled variants)
  • Gamma scalping signal recipe under Market Microstructure (vol-spread ratio from core_price)
  • Realized volatility updated with fx_trades variant and cross-links to new recipes
  • Cookbook index and sidebar entries updated

…volatility

- New recipe: log returns (Math Utilities) with tick-by-tick and sampled examples
- New recipe: gamma scalping signal (Market Microstructure) with vol-spread ratio
- Add fx_trades variant to realized volatility recipe
- Update cookbook index and sidebar entries
@github-actions
Copy link

github-actions bot commented Mar 17, 2026

🚀 Build success!

Latest successful preview: https://preview-392--questdb-documentation.netlify.app/docs/

Commit SHA: 43408ec

📦 Build generates a preview & updates link on each commit.

javier and others added 4 commits March 17, 2026 18:58
- Fix vol-spread ratio unit mismatch by normalizing spread to relative terms
- Add ECN filter to tick-by-tick log returns to avoid cross-venue artifacts
- Add microstructure noise warning for tick-level returns
- Fix symmetry claim with concrete numeric example
- Change FX annualization from 252 to 260 (weekdays/year)
- Add population vs sample variance note
- Explain differing window lengths between realized vol variants
- Tone down theta decay claim in gamma scalping recipe
- Add PARTITION BY symbol consistently across all window functions
- Fix "hourly" to "daily" vol description in gamma scalping (factor 1440 = minutes/day)
- Add named WINDOW clause to realized volatility (both queries)
- Align main realized vol lookback with market_data_ohlc_15m TTL (2d)
@javier javier merged commit b0e0845 into main Mar 18, 2026
3 checks passed
@javier javier deleted the jv/gamma_scalping_cookbook branch March 18, 2026 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant