关于「一张 GEX 图能知道什么:符号不在数据里」,《做市商伽马与波动率收割》给出的定量结论是什么?

结论:第三章是本书的核心否定结果:做市商的符号不在 GEX 图所用的数据里。相同的未平仓量与 +18.9 或 −94.5 的做市商伽马都相容,日内开平的 0DTE 头寸把 +18.9 变成 −260.7。即便对冲机制按构造成立,符号正确的估计与次日波动幅度的相关也只有 −0.238,与方向的相关与零无法区分,并随符号惯例失效而消退到 −0.010。

数据口径:本书不是投资建议。 书中以标注框区分已发表的证据、可运行的 Python 计算(16 段程序)、原典与作者的假说;除注明的文献外,书中数据都是合成的。

English version

对照数据表

下表数字由本章 Python 程序原样打印,可重新运行复现。 程序只用 Python 标准库与结论吻合的打印值: 18.9

A. The data are identical in every world: OI at three strikes, 7-day expiry
K95: calls 547 puts 5951
K100: calls 3783 puts 2598
K105: calls 5009 puts 477
B. Dealer gamma implied by the same OI under different customer directions
world GEX at S100 zero-gamma
($m per 1 %) level
convention (calls sold, puts bought) +18.999.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 1300, dealer short them
convention GEX at S100, from OI only: +18.9
true GEX at 1300 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.
查看完整验算程序
# 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."
    )

唯一数据源与引用

范雅福(Fan, Y.). (2026). 《做市商伽马敞口、零日到期期权与波动率收割动力学》第 3 章「一张 GEX 图能知道什么:符号不在数据里」(版本 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090160

DOI: 10.5281/zenodo.24090160 · 阅读本章所在专著 · 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}
}

本书其他章节结论