5D Library › Dealer Gamma Exposure, Zero-Day Options and Volatility Harvesting Dynamics · 中文

Chapter 8. A Four-Step Check and a Pre-Registered Test

Four questions before acting on a gamma story

This chapter turns the book into four questions. They are not trading rules. They are what to ask of any argument — one’s own included — that uses dealer gamma or a short-volatility record as evidence.

1. Where does the sign come from? If a statement about dealer gamma rests on open interest, its sign is an assumption (Chapter 3), and the statement is only as good as that assumption for that underlying and that period. Ask whether the source uses signed trade data, whether intraday 0DTE positions are included, and what happens to the conclusion if the convention is reversed. If the conclusion survives reversal, it was not using the sign.

2. Is the claim about size or about direction? Hedging feedback changes how far prices move, at a stated horizon (Chapter 2). A claim about direction — tops, bottoms, which way the close will go — has to come from somewhere else, and should be tested as a separate claim with its own out-of-sample record, counting every rule that was tried (Chapter 3).

3. What does the record contain? For any short-volatility record, count the gaps it contains and compare with how many it should contain (Chapter 4). A record with no gaps overstates the edge; a record with many understates it. Size from a loss larger than the worst in the record, not equal to it, because the growth-optimal size sits next to a cliff located by a single observation.

4. What is the net, per contract? Write the strategy’s break-even cost per contract and compare it with the actual half-spread and commission (Chapter 5). A structure with a better gross Sharpe ratio and more contracts can have a worse net one. Then remember the standard error: one year measures an annualised Sharpe ratio to within about ±1.

A pre-registered test

Chapters 2 and 3 leave one claim standing: an OI-based dealer-gamma sign may carry information about next-day volatility, if its sign convention matches reality, and carries none about direction. That claim can be tested, and the test can be written down before the data exist.

Hypothesis · not established

The study. Data: a broad equity index, daily from the registration date forward, with the conventional OI-based GEX computed each evening from that day’s open interest by a fixed, published script. Primary outcome: next-day log realised variance from 5-minute returns. Primary estimate DD: the coefficient on “estimated GEX negative” in a regression of next-day log realised variance on that indicator plus lagged realised-variance (HAR) terms, with serial-correlation-robust standard errors. Prediction: D>0D > 0. Smallest effect of interest: 0.10, about 10 % higher realised variance. Secondary (equivalence): the next-day return difference between the two groups lies within ±0.05 % a day (two one-sided tests). Both the sign convention and the open-interest source are fixed in advance; changing either makes the result uninterpretable.

Calculation

# Chapter 8. Pre-registered test of the one claim the book's model supports:
# an OI-based dealer-gamma sign carries information about NEXT-DAY VOLATILITY
# (not about direction). Primary outcome: log realised variance from 5-minute
# returns, next day. Primary estimate D = coefficient on "estimated GEX
# negative" in a regression of next- day log RV on that indicator plus the
# usual lagged-RV (HAR) terms; POSITIVE D supports the mechanism. SESOI 0.10
# (about 10 % higher realised variance). Assumed residual sd of log RV after
# the HAR terms 0.35, a design effect of 1.5 for serial correlation, half the
# days in each sign group, two-sided alpha 0.05, power 0.90. Secondary
# (equivalence) test: next-day RETURN difference between the groups lies
# inside +/- 0.05 % a day (TOST), daily return sd 1.0 %.
import math

# inverse normal CDF by bisection (standard library only)
def z(p):
    lo, hi = -10.0, 10.0
    for _ in range(100):
        mid = 0.5 * (lo + hi)
        if 0.5 * (1 + math.erf(mid / math.sqrt(2))) < p:
            lo = mid
        else:
            hi = mid
    return 0.5 * (lo + hi)

def days_needed(delta, sd, alpha_two_sided, power, deff, tost=False):
    za = z(1 - alpha_two_sided / 2) if not tost else z(1 - alpha_two_sided)
    zb = z(power) if not tost else z(1 - (1 - power) / 2)
    per_group = 2 * (za + zb) ** 2 * sd * sd / (delta * delta)
    return math.ceil(2 * per_group * deff)

SESOI = 0.10

def verdict(d, lo, hi, n_days, n_planned, sign_rule_changed=False,
            oi_source_changed=False, share_negative=0.5):
    for bad, why in (
        (
            sign_rule_changed,
            "the sign convention was changed after the data were seen",
        ),
        (oi_source_changed, "the open-interest source changed mid-study"),
        (
            n_days < 0.9 * n_planned,
            "only {:,} of {:,} planned days".format(n_days, n_planned),
        ),
    ):
        if bad:
            return "D = {:+.3f}: NOT INTERPRETABLE -\n    {}".format(d, why)
    if lo >= SESOI:
        v = "supports the mechanism at or above the SESOI"
    elif lo > 0:
        v = "positive, but not shown to reach the SESOI"
    elif hi < 0:
        v = (
            "the OPPOSITE sign:\n    the convention, or the mechanism, is"
            " wrong"
        )
    elif lo >= -SESOI and hi <= SESOI:
        v = "no difference worth acting on"
    else:
        v = "unclear: the interval is too wide to decide"
    out = "D = {:+.3f} ({:+.3f} to {:+.3f}): {}".format(d, lo, hi, v)
    if not 0.2 <= share_negative <= 0.8:
        out += (
            "\n    qualifier: only {:.0%} of days fell in the negative group;"
            "\n      the comparison rests on few days".format(share_negative)
        )
    return out

if __name__ == "__main__":
    n = days_needed(SESOI, 0.35, 0.05, 0.90, 1.5)
    print(
        "Primary (volatility): trading days needed = {:,}  (about {:.1f}"
        " years)".format(n, n / 252)
    )
    m = days_needed(0.0005, 0.010, 0.05, 0.90, 1.0, tost=True)
    print("Secondary (no directional effect, TOST +/- 0.05 %/day):")
    print("  days needed = {:,}  (about {:.0f} years)".format(m, m / 252))
    print(
        "  -> the secondary test is reported but cannot be powered; a 'no"
        " effect'"
    )
    print("     verdict on direction would need decades of daily data.")
    print("\nDecision rule, fixed before the data are examined:")
    PLAN = n
    for c in ((0.180, 0.110, 0.250, PLAN, PLAN),
              (0.070, 0.010, 0.130, PLAN, PLAN),
              (0.010, -0.060, 0.080, PLAN, PLAN),
              (-0.120, -0.190, -0.050, PLAN, PLAN),
              (0.050, -0.150, 0.250, PLAN, PLAN),
              (0.150, 0.080, 0.220, PLAN, PLAN, False, False, 0.12),
              (0.150, 0.080, 0.220, PLAN, PLAN, True),
              (0.150, 0.080, 0.220, PLAN, PLAN, False, True),
              (0.150, 0.080, 0.220, int(0.7 * PLAN), PLAN)):
        print(verdict(*c))
    print(
        "\nThe example numbers above are invented, to show what each branch"
        " prints."
    )
# Primary (volatility): trading days needed = 773  (about 3.1 years)
# Secondary (no directional effect, TOST +/- 0.05 %/day):
#   days needed = 17,316  (about 69 years)
#   -> the secondary test is reported but cannot be powered; a 'no effect'
#      verdict on direction would need decades of daily data.
#
# Decision rule, fixed before the data are examined:
# D = +0.180 (+0.110 to +0.250): supports the mechanism at or above the SESOI
# D = +0.070 (+0.010 to +0.130): positive, but not shown to reach the SESOI
# D = +0.010 (-0.060 to +0.080): no difference worth acting on
# D = -0.120 (-0.190 to -0.050): the OPPOSITE sign:
#     the convention, or the mechanism, is wrong
# D = +0.050 (-0.150 to +0.250): unclear: the interval is too wide to decide
# D = +0.150 (+0.080 to +0.220): positive, but not shown to reach the SESOI
#     qualifier: only 12% of days fell in the negative group;
#       the comparison rests on few days
# D = +0.150: NOT INTERPRETABLE -
#     the sign convention was changed after the data were seen
# D = +0.150: NOT INTERPRETABLE -
#     the open-interest source changed mid-study
# D = +0.150: NOT INTERPRETABLE -
#     only 541 of 773 planned days
#
# The example numbers above are invented, to show what each branch prints.

The primary test needs 773 trading days, about 3.1 years. The secondary test is the more instructive number: to show that the direction effect is absent to within ±0.05 % a day needs 17,316 days, about 69 years. So the claim this book makes about direction — that there is nothing there — is a theoretical claim from the model, not one a study can confirm on any feasible sample. The pre-registration states this rather than reporting a non-significant secondary test as evidence of absence.

The decision rule prints one line per branch. A positive interval above the smallest effect of interest supports the mechanism; a negative interval says the convention, or the mechanism, is wrong for that index; an interval inside ±0.10 says there is no difference worth acting on. Three conditions make the result uninterpretable rather than negative: the sign convention changed after the data were seen, the open-interest source changed mid-study, or fewer than 90 % of the planned days were collected. If fewer than a fifth of days fall into either group, the verdict carries a qualifier.

Note

What a positive result would and would not mean. It would mean that, for that index and period, the convention’s sign was right often enough to carry volatility information. It would not mean that dealers are long or short gamma in any other market, that the chart predicts direction, or that a strategy built on it is profitable after costs. A negative result — D<0D < 0 — would be as informative: by Chapter 3, the most likely explanation is that customers were on the other side from the convention.

Summary

Four questions summarise the book: where the sign comes from, whether the claim is about size or direction, what the record contains, and what the net is per contract. One claim survives the earlier chapters and can be tested prospectively — that an OI-based gamma sign carries information about next-day volatility — and the pre-registered design needs about 3.1 years of daily data. The book’s claim that the sign carries no directional information cannot be confirmed by any feasible study; it rests on the model, and the pre-registration says so.

Fan, Y. (2026). Dealer Gamma Exposure, Zero-Day Options and Volatility Harvesting Dynamics: Delta-Hedging Feedback Loops, Strike Pinning, Iron Condor Tail Ruin and Variance Swap Replication [做市商伽马敞口、零日到期期权与波动率收割动力学] (Version 1.0.0). 5D Library. https://doi.org/10.5281/zenodo.24090160 · Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0).