Feature Documentation
Complete reference of all calculations and features in AlphaGEX with code snippets and examples
Core Gamma
GEX = gamma × OI × 100 × spot²Quantifies market maker gamma positioning. Positive = mean reversion, Negative = trending moves
Strike with highest call gamma ≥ spot (must be ≥0.5% away)Identifies gamma-induced resistance where market makers defend
Strike with highest put gamma ≤ spot (must be ≥0.5% away)Identifies gamma-induced support where market makers defend
flip = prev_strike + (strike - prev_strike) × (-prev_net) / (net - prev_net)Price level where MM hedging behavior changes from long-gamma to short-gamma
For each strike: total_pain = Σ(max(0, test - call_strike) × call_OI) + Σ(max(0, put_strike - test) × put_OI); max_pain = argmin(total_pain)Strike where option holder loss is minimized; acts as price magnet at expiration
Distance Metrics
(spot - flip_point) / spot × 100Measure how far price is from the gamma flip point
Normalized Metrics
gex_normalized = net_gex / spot²Scale-independent GEX for comparison across different stock prices
Wall Analysis
wall_strength_pct = |strike_gex| / |net_gex| × 100Measures how strong a particular gamma wall is relative to total
Ratios
|put_gex| / |call_gex|Directional bias signal based on put/call gamma imbalance
log(gex_ratio) clamped to [0.1, 10]ML-friendly scaling of GEX ratio
AlphaGEX Feature Documentation • Generated from codebase analysis
50 calculations across 20 categories from 92 source files