What does Dealer Gamma and Volatility Harvesting conclude, in numbers, about “What a GEX Chart Can Know: the Sign Is Not in the Data”?
Answer: Chapter 3 is the book's central negative result: the dealers' sign is not in the data a GEX chart uses. Identical open interest is consistent with dealer gamma of +18.9 or −94.5, and intraday 0DTE positions turn +18.9 into −260.7. Even when the hedging mechanism is true by construction, a correctly signed estimate correlates only −0.238 with the size of the next day's move, not at all with its direction, and the information fades to −0.010 as the sign convention fails.
Scope of the numbers: It is not investment advice. Boxes separate evidence, runnable Python (16 programs), sources and hypotheses; all data are synthetic unless cited.
Data table
The numbers below are printed verbatim by the chapter's Python program and can be reproduced by running it. standard-library Python onlyprinted values that match the answer: 18.9
| A. The data are identical in every world: OI at three strikes, 7-day expiry | |
| K | 95: calls 547 puts 5951 |
| K | 100: calls 3783 puts 2598 |
| K | 105: calls 5009 puts 477 |
| B. Dealer gamma implied by the same OI under different customer directions | |
| world GEX at S | 100 zero-gamma |
| ($m per 1 %) level | |
| convention (calls sold, puts bought) +18.9 | 99.37 |
| half of call OI customer-long | -94.5 none in 85-115 |
| call buyers 70 %, put buyers 60 % | -64.3 none in 85-115 |
| everything reversed | -18.9 99.37 |
| C. Add 0DTE contracts opened and closed within the day (never in any OI): | |
| 60,000 ATM contracts bought by customers at 13 | 00, dealer short them |
| convention GEX at S | 100, from OI only: +18.9 |
| true GEX at 13 | 00 including that flow: -260.7 |
| Reading: OI fixes the gross gamma outstanding, not the dealers' net share of | |
| it. Worlds with identical OI carry dealer gamma of either sign, and 0DTE | |
| positions opened and closed before the OI snapshot are invisible to it. |
Show the full program
# Chapter 3. What open interest can and cannot tell you about dealer gamma.
# Open interest counts contracts outstanding. Every contract has a long side
# and a short side, so OI is the same number whoever is long. The popular
# "GEX" chart assumes the customer is SHORT every call (dealer long calls) and
# LONG every put (dealer short puts). Let a = the share of OI in which the
# customer is the long side. The dealer is then net long OI x (1 - 2a)
# contracts. The convention is a_call = 0, a_put = 1. Synthetic chain: S =
# 100, strikes 90..110, expiries 1, 7 and 30 trading days. GEX is reported in
# "dollars of hedge per 1 % move" = gamma x S^2 x 0.01 x 100 x OI.
import math
def gamma(S, K, sig, T):
d1 = (math.log(S / K) + 0.5 * sig * sig * T) / (sig * math.sqrt(T))
return math.exp(-0.5 * d1 * d1) / (
math.sqrt(2 * math.pi) * S * sig * math.sqrt(T)
)
SIG = 0.20
EXPIRIES = (1 / 252, 7 / 252, 30 / 252)
STRIKES = list(range(90, 111))
def oi(K, kind, T):
# stylised OI: calls heavier just above spot, puts heavier below; more OI
# far out
centre = 103.0 if kind == "C" else 96.0
base = 4000.0 * math.exp(-((K - centre) / 4.0) ** 2) + 300.0
return base * (1.0 + 2.0 * T * 252 / 30)
def gex(S, a_call, a_put, extra=None):
tot = 0.0
for T in EXPIRIES:
for K in STRIKES:
g = gamma(S, K, SIG, T) * S * S * 0.01 * 100
tot += g * oi(K, "C", T) * (1 - 2 * a_call)
tot += g * oi(K, "P", T) * (1 - 2 * a_put)
if extra:
tot += extra(S)
return tot / 1e6
def zero_level(a_call, a_put, extra=None):
prev_s, prev_g = 85.0, gex(85.0, a_call, a_put, extra)
s = 85.0
while s < 115.0:
s += 0.05
g = gex(s, a_call, a_put, extra)
if (g > 0) != (prev_g > 0):
return prev_s + (s - prev_s) * prev_g / (prev_g - g)
prev_s, prev_g = s, g
return None
WORLDS = [
("convention (calls sold, puts bought)", 0.0, 1.0),
("half of call OI customer-long", 0.5, 1.0),
("call buyers 70 %, put buyers 60 %", 0.7, 0.6),
("everything reversed", 1.0, 0.0),
]
if __name__ == "__main__":
print(
"A. The data are identical in every world: OI at three strikes, 7-day"
" expiry"
)
for K in (95, 100, 105):
print(
" K = {:3d}: calls {:7.0f} puts {:7.0f}".format(
K, oi(K, "C", 7 / 252), oi(K, "P", 7 / 252)
)
)
print(
"\nB. Dealer gamma implied by the same OI under different customer"
" directions"
)
print(
" world GEX at S=100 zero-gamma"
)
print(" ($m per 1 %) level")
for name, ac, ap in WORLDS:
z = zero_level(ac, ap)
print(
" {:<36}{:+11.1f} {}".format(
name,
gex(100.0, ac, ap),
"none in 85-115" if z is None else "{:.2f}".format(z),
)
)
intraday = lambda S: -(
gamma(S, 100.0, SIG, 3 / (252 * 6.5)) * S * S * 0.01 * 100 * 60000.0
)
print(
"\nC. Add 0DTE contracts opened and closed within the day (never in"
" any OI):"
)
print(
" 60,000 ATM contracts bought by customers at 13:00, dealer short"
" them"
)
print(
" convention GEX at S=100, from OI only: {:+.1f}".format(
gex(100.0, 0.0, 1.0)
)
)
print(" true GEX at 13:00 including that flow: {:+.1f}".format(
gex(100.0, 0.0, 1.0, intraday)))
print(
"\nReading: OI fixes the gross gamma outstanding, not the dealers'"
" net share of"
)
print(
"it. Worlds with identical OI carry dealer gamma of either sign, and"
" 0DTE"
)
print(
"positions opened and closed before the OI snapshot are invisible"
" to it."
)Single source and citation
Fan, Y. (2026). Dealer Gamma Exposure, Zero-Day Options and Volatility Harvesting Dynamics (Version 1.0.0), Chapter 3: What a GEX Chart Can Know: the Sign Is Not in the Data. 5D Library. https://doi.org/10.5281/zenodo.24090160
DOI: 10.5281/zenodo.24090160 · Read the monograph · 5DL-B-056 · v1.0.0 · CC-BY-NC-ND-4.0
BibTeX
@book{fan2026056,
author = {Fan, Yafu},
title = {Dealer Gamma Exposure, Zero-Day Options and Volatility Harvesting Dynamics},
year = {2026},
publisher = {5D Library},
edition = {1.0.0},
doi = {10.5281/zenodo.24090160},
url = {https://doi.org/10.5281/zenodo.24090160}
}Other chapter answers in this book
- Chapter 1 · Gamma Near Expiry: a Spike, Not a Wall
- Chapter 2 · The Hedging Feedback Loop and Strike Pinning
- Chapter 4 · Selling Volatility: the Win Rate Says Nothing, the Tail Says Everything
- Chapter 5 · Buying the Tail Back, Hedging in Discrete Time, and the Net Sharpe Ratio
- Chapter 6 · Variance Swaps: Replication, Skew, Jumps and Convexity
- Chapter 7 · Gathering and Scattering: the Guanzi, the Balanced Standard and the Limits of a Stabiliser
- Chapter 8 · A Four-Step Check and a Pre-Registered Test