I trade QQQ/SPX options and wanted to see dealer gamma (GEX) levels live, like the paid flow sites show, but from my own data. So I built a small web app that runs on my PC and pulls option chains, prices and positions from my broker's API with my own keys.
What it does:
• GEX by strike, call wall / put wall, gamma flip, and the top levels drawn on a live chart
• Heatmap of GEX across expirations
• Candles on 1m to monthly with pre/post market, VWAP, EMAs, Bollinger Bands, RSI, MACD, TTM-style squeeze
• Expected-move bands from the ATM straddle, IV-based event detection
• "Close estimate" for 0DTE: open-interest pin + max pain
• Trade view: trade planner (P/L at target/stop with Black-Scholes), spread builder with realistic fills and liquidity flags, option chain, 0DTE decay tracker
• Positions with Greeks (read-only), a rough bought/sold flow estimate, and a log of how levels held or broke
• Scanner across tickers, and export of the levels as thinkScript and Pine Script
How it works:
• Python (Flask) backend + HTML/JS front end with TradingView Lightweight Charts
• Runs on my own PC; my keys never leave it
• Read-only: it can't place, change or cancel orders. I place trades in my trading platform.
Sanity check: I compared the per-strike GEX to a paid service on the same morning and the levels lined up closely (641 +$141M vs +$144M, 640 −$108M vs −$112M), with differences mainly from timing and gamma source.
Caveats: GEX uses the standard assumption (dealers long calls, short puts), which isn't always true. The flow "bought/sold" is an estimate from trade vs. quote. None of this predicts price; it's context for levels.
I built it with a lot of help from Claude (AI), and tested it across pre-market, regular hours, after hours, half days and holidays.
Happy to answer questions about the GEX math. Not financial advice.