What does Early Profit-Taking in Options conclude, in numbers, about “Field Tools and Checker Specifications: the Closing-Decision Ledger, the Calculator and a Pre-Registered Test”?

Answer: Chapter 8 gives a calculator, checker specifications, a closing-decision ledger and a pre-registered test. Marked boxes separate published evidence, runnable Python calculations (21 programs), classical sources and the author's hypotheses.

Scope of the numbers: All prices are in index points, every path is synthetic and the parameters are illustrative; all calculations are generated by the book's programs. Marked boxes separate published evidence, runnable Python calculations (21 programs), classical sources and the author's hypotheses.

中文版

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: 21

base iv 0.16  take 0.50  stop 21 days
id st   mark  share  to stop  decay/d  giveback5  hold-close
A  pds  3.386 +0.511      9   -0.0111   -0.1439     +0.571
     RED take level reached in a vol spike
B  lp   9.396 +3.195     18    0.0412    0.5030     -1.228
     RED take level reached in a vol spike
C  pds  1.796 -0.001     -3    0.0184    0.0172     +0.011
     RED past the 21-day stop, still open
D  pds  4.128 +0.732    -17   -0.0919   -0.0105     +0.126
     RED past the 21-day stop, still open
     YELLOW take level reached, decide
     RED expiry week, short leg near index
E  pds  2.164 +0.141     12    0.0062    0.0108     +0.025
F  cs   not assessed
     RED no max loss on record
     RED structure outside the tool
trades 6, with a red flag 5
Show the full program
# Chapter 8. p81: the closing-decision ledger check, demo of the field
# tool (distill/tool.py prints the same lines when run with no
# arguments). Six synthetic trades in index points: structure lp (long
# put) or pds (put debit spread, 100/95); anything else needs a maximum
# loss on record. Defaults: base vol 0.16, take share 0.50, stop at 21
# days left, closing cost 0.05, spike half-life 6 days, forecast vol
# equal to the base. Zero rate, European puts, flat vol.
import math

DEMO = ("A,pds,100,95,45,1.70,30,94.0,0.30;"
        "B,lp,100,0,45,2.24,39,92.0,0.34;"
        "C,pds,100,95,45,1.80,18,99.0,0.17;"
        "D,pds,100,95,45,1.75,4,95.3,0.18;"
        "E,pds,100,95,45,1.70,33,98.5,0.17;"
        "F,cs,100,95,45,1.20,30,97.0,0.20")


def ncdf(x):
    return 0.5 * math.erfc(-x / math.sqrt(2.0))


def bs_put(s, k, t, vol):
    if t <= 0.0:
        return max(k - s, 0.0)
    sd = vol * math.sqrt(t)
    d1 = (math.log(s / k) + 0.5 * sd * sd) / sd
    return k * ncdf(-(d1 - sd)) - s * ncdf(-d1)


def value(tr, s, days, vol):
    t = days / 365
    v = bs_put(s, tr["k_long"], t, vol)
    if tr["structure"] == "pds":
        v -= bs_put(s, tr["k_short"], t, vol)
    return v


def parse(spec):
    out = []
    for item in spec.split(";"):
        if not item.strip():
            continue
        f = [x.strip() for x in item.split(",")]
        if len(f) not in (9, 10):
            raise ValueError("trade %s needs 9 or 10 fields" % f[0])
        tr = {"id": f[0], "structure": f[1], "k_long": float(f[2]),
              "k_short": float(f[3]), "entry_days": int(f[4]),
              "entry": float(f[5]), "days": int(f[6]),
              "index": float(f[7]), "iv": float(f[8]),
              "max_loss": float(f[9]) if len(f) == 10 else None}
        if tr["structure"] in ("lp", "pds"):
            tr["max_loss"] = tr["entry"]
        out.append(tr)
    return out


def assess(tr, base, take, stop, cost, half, rv):
    r = {"id": tr["id"], "structure": tr["structure"], "flags": []}
    if tr["structure"] not in ("lp", "pds"):
        if tr["max_loss"] is None:
            r["flags"].append("RED no max loss on record")
        r["flags"].append("RED structure outside the tool")
        return r
    s, d, iv = tr["index"], tr["days"], tr["iv"]
    mark = value(tr, s, d, iv)
    if tr["structure"] == "pds":
        top = tr["k_long"] - tr["k_short"] - tr["entry"]
    else:
        top = tr["entry"]
    share = (mark - tr["entry"]) / top
    decay = mark - value(tr, s, d - 1, iv) if d > 1 else 0.0
    k = min(5, d - 1)
    if k > 0:
        v5 = base * base + (iv * iv - base * base) * 0.5 ** (k / half)
        giveback = value(tr, s, d - k, iv) - value(tr, s, d - k,
                                                   math.sqrt(v5))
    else:
        giveback = 0.0
    hold = value(tr, s, d, rv) - (mark - cost)
    r.update({"mark": mark, "share": share, "to_stop": d - stop,
              "decay": decay, "giveback": giveback, "hold_edge": hold,
              "max_loss": tr["max_loss"]})
    spike = iv >= 1.5 * base
    if d < stop:
        r["flags"].append("RED past the %d-day stop, still open" % stop)
    if share >= take and spike:
        r["flags"].append("RED take level reached in a vol spike")
    elif share >= take:
        r["flags"].append("YELLOW take level reached, decide")
    if d <= 5 and tr["structure"] == "pds" and \
            abs(s - tr["k_short"]) <= 0.01 * s:
        r["flags"].append("RED expiry week, short leg near index")
    if 0 <= d - stop <= 3:
        r["flags"].append("YELLOW time stop within 3 days")
    return r


def render(rows, base, take, stop):
    out = ["base iv %.2f  take %.2f  stop %d days" % (base, take, stop),
           "id st   mark  share  to stop  decay/d  giveback5  hold-close"]
    reds = 0
    for r in rows:
        if "mark" in r:
            out.append("%-2s %-3s %6.3f %+6.3f  %5d   %7.4f   %7.4f"
                       "    %+7.3f" % (r["id"], r["structure"], r["mark"],
                                      r["share"], r["to_stop"],
                                      r["decay"], r["giveback"],
                                      r["hold_edge"]))
        else:
            out.append("%-2s %-3s  not assessed" % (r["id"],
                                                     r["structure"]))
        for f in r["flags"]:
            out.append("     " + f)
        reds += any(f.startswith("RED") for f in r["flags"])
    out.append("trades %d, with a red flag %d" % (len(rows), reds))
    return out


rows = [assess(t, 0.16, 0.50, 21, 0.05, 6.0, 0.16) for t in parse(DEMO)]
for line in render(rows, 0.16, 0.50, 21):
    print(line)

Single source and citation

Fan, Y. (2026). Optimal Early Profit-Taking in Options: Harvesting Volatility Spikes, Twenty-One-Day Decay Cliffs and the Expiration Hold Trap (Version 1.0.0), Chapter 8: Field Tools and Checker Specifications: the Closing-Decision Ledger, the Calculator and a Pre-Registered Test. 5D Library. DOI pending

DOI pending · monograph page goes live after publication · 5DL-B-426 · v1.0.0 · CC-BY-NC-ND-4.0

BibTeX
@book{fan2026426,
  author    = {Fan, Yafu},
  title     = {Optimal Early Profit-Taking in Options: Harvesting Volatility Spikes, Twenty-One-Day Decay Cliffs and the Expiration Hold Trap},
  year      = {2026},
  publisher = {5D Library},
  edition   = {1.0.0},
  note      = {DOI pending}
}

Other chapter answers in this book