2025/11/17

0DTE 五力微結構判盤引擎

這份模型是 專業做市商、vol desk、機構 intraday gamma desk 水準

以下五力:

  1. Trend Flow(趨勢力)

  2. Maker Gamma(做市商 gamma 壓力)

  3. Vol Regime(波動度環境:IV/RV 互動)

  4. Payoff Basin(主力 payoff 形狀)

  5. Chip Alignment(你 chip1 & chip2 的一致性)

五力一起決定 今天是否適合 short gamma
以及 做 GS 的勝率與 hedge 成本


⭐ 五力 #1:Trend Flow(趨勢力)

觀察來源:

  • TXF Fills(成交爆量)

  • delta ratio(快速位移)

  • chip2(資金權重,有明顯方向壓力)

必殺訊號(不要 GS)

  • TXF 單向灌單

  • 持續 higher high / lower low

  • Hedge 做一次、虧一次

  • delta ratio 不斷飆升

  • chip2 單側急增

判定:TREND DAY(危險)
→ 不做 short gamma
→ 或提前 flatten
→ 或至少不做 GS
→ theta-only mode

安全訊號(適合 GS)

  • TXF 反向單開始出現

  • 大口停下

  • flow 消散

  • 指數進入 mean reversion

  • 方向壓力停止加速

→ 流量壓力消失,波動可控
→ Hedge 成本開始降低


⭐ 五力 #2:Maker Gamma(做市商 Gamma 壓力)

必殺訊號(不要 GS):

  • MM gamma 極低(接近 0) → 不能壓市場

  • MM gamma 單邊暴露(ex: 全部 short gamma)

  • gamma trap 在遠處,指數永遠靠不到

  • IV 漲、gamma 不縮 → hedge 會炸裂

  • payoff slope 變斜(不吸盤)

你看 chip map 裡:

  • chip2 的 AccQtyC / P 大幅偏離

  • 穩定盤被破壞

  • payoff 盆地(basin)變形

安全訊號(可以 GS):

  • gamma belly 出現

  • MM 需大量 hedge → 反而會壓低 RV

  • gamma flatten pattern 出現(代表 vol desk 啟動控盤模式)

這會形成:

vol collapse
→ GS 成本下降
→ 你能賺 theta + MINI GS 循環利


⭐ 五力 #3:Volatility Regime(IV / RV 環境)

不做 GS 的訊號:

  • IV 上升

  • RV 上升

  • IV-RV Spread 收斂(IV 不再高於 RV)

  • VIX/Taifex VXX 在走高

  • 大跌,但沒有 vol collapse(這最危險)

→ hedge 又貴、又失敗

適合 GS 的訊號:

  • IV 持續下降

  • RV collapse(尾盤自然萎縮)

  • 10:00 後 intraday vol 被壓縮

  • IV >> RV(premium 高 → 波動低 → 很好賺)

這時你進場做 GS:

  • hedge 成本極低

  • 每次對沖都微利

  • theta 掉得快

  • PIN 機率提升

這是 0DTE short gamma 的黃金區


⭐ 五力 #4:Payoff Basin(主力 payoff 盆地)

你 chip map 的核心功能就是看這個:

❌ 不做 GS 的訊號:

  • payoff basin 消失

  • 主力 payoff slope 變成 45°

  • 主力的平衡 strike 位置亂跳

  • payoff 的低谷(basin center)移動太快

  • chip1 = chip2 完全不一致

  • 每五分鐘 payoff 就被推到一側

→ 無 PIN
→ 無吸引 → 無法壓波動 → hedge 成本必炸

✔ 適合 GS 的訊號:

  • payoff basin 固定

  • 緩慢變動

  • chip1 + chip2 alignment

  • basin 寬度縮小(吸盤)

  • 指數“被吸向某個 strike”

  • 你的 0DTE 結構“站在盆地中間”

這就是 PIN 的誕生
→ 最適合 GS 做到 13:30
→ hedge 成本近乎 0
→ 大勝局


⭐ 五力 #5:Chip Alignment(chip1 與 chip2 的調和程度)

不做 GS:

  • chip1(張數)與 chip2(資金加權)不同方向

  • C skew 與 P skew 不一致

  • intraday chip 與 overnight chip 衝突

  • delta ratio 大幅震盪

  • IV Smile 變形

這是 microstructure 最常見的:

“Fake trend”
“Fake PIN”

可以 GS:

  • chip1 = chip2 同側變化

  • skew 平滑

  • AccQtyC 與 AccQtyP 呈現穩定對稱

  • 09:15–10:00 microstructure 變得乾淨

這是 microstructure 成熟的特徵
→ 你可建構 short gamma
→ 在 10:00–11:15 進 GS


🧠 五力評分 → 市場判讀結果(最終引擎)

我幫你把五力直接量化成評分,
你可以完全自動化:

⭐ Score >= 4

→ 🟢 PIN DAY(大勝局)
→ 做 short gamma + TXF hedge 到 13:30

⭐ Score = 3

→ 🟡 GS DAY(正常盈利)
→ 做 short gamma
→ GS 到 12:30
→ 之後視盤況決定是否全程 hedge

⭐ Score = 2

→ 🔵 Theta Day(不做 GS)
→ 做 short gamma,但不 hedge
→ theta-only,12:30 前平倉

⭐ Score = 1

→ 🟠 Drift Day(危險)
→ 不做 short gamma
→ 不做 GS
→ 不吃 PIN

⭐ Score = 0

→ 🔴 Trend Day(禁止進場)
→ 不做 short gamma
→ 只有方向性策略可做

這是你策略的 完整盤型分類器


⭐ Stone 專用最終總結

你要的 Stone 0DTE 五力微結構判盤引擎 包含:

  1. Trend Flow

  2. Maker Gamma

  3. Vol Regime (IV/RV)

  4. Payoff Basin

  5. Chip Alignment

直接輸出:

  • PIN DAY

  • GS DAY

  • Theta Day

  • Drift Day

  • Trend Day

這套東西能決定你:

  • 是否能做 short gamma

  • 能不能做 TXF Hedge

  • Hedge 能做多久

  • 需不需要提前 flatten

  • 能不能收到 PIN

  • 是否有 hedge trap

 =============================

  • 五力微結構指標的完整量化版本

  • 能直接投入你的 0DTE pipeline 的 pseudo code

  • 可自動化生成 0DTE 盤型分類器

  • 可控制:建倉、GS、停止 GS、PIN 判斷、Flatten

  • 核心變量一致(chip1/chip2/TXF/IV/RV)

function compute_five_forces(data):


    # === Force 1: Trend Flow ===

    TXF_flow_strength = abs(BuyVol - SellVol) / (BuyVol + SellVol)

    drift_speed = abs(spot[t] - spot[t-3min]) / 3

    TrendFlow_Score = 1 if TXF_flow_strength <= 0.40 

                          and drift_speed <= 20 else 0


    # === Force 2: Maker Gamma ===

    Gamma_Balance = 1 - abs(AccQtyC_norm - AccQtyP_norm)

    curvature = second_derivative(payoff_curve)

    MakerGamma_Score = 1 if Gamma_Balance >= 0.35 

                          and curvature > 0 else 0


    # === Force 3: Vol Regime ===

    RV = realized_vol_15min(spot)

    IV_RV_Spread = IV - RV

    IV_slope = IV - IV_prev10min

    VolRegime_Score = 1 if IV_RV_Spread >= 0.03 

                          and IV_slope <= 0 else 0


    # === Force 4: Payoff Basin ===

    basin_center = find_min(payoff_curve)

    basin_width = compute_basin_width(payoff_curve)

    basin_shift = abs(basin_center - basin_center_prev)

    PayoffBasin_Score = 1 if basin_width <= 500 

                           and basin_shift <= 100 else 0


    # === Force 5: Chip Alignment ===

    alignment_ratio = corr(chip1_acc, chip2_acc)

    delta_ratio_diff = abs(delta_ratio_ch1 - delta_ratio_ch2)

    ChipAlignment_Score = 1 if alignment_ratio >= 0.65

                             and delta_ratio_diff <= 0.10 else 0


    # === Final Score ===

    TotalScore = TrendFlow_Score + MakerGamma_Score + VolRegime_Score 

               + PayoffBasin_Score + ChipAlignment_Score


    # === Market Type ===

    if TotalScore >= 4:

        MarketType = "PIN_DAY"

    elif TotalScore == 3:

        MarketType = "GS_DAY"

    elif TotalScore == 2:

        MarketType = "THETA_DAY"

    elif TotalScore == 1:

        MarketType = "DRIFT_DAY"

    else:

        MarketType = "TREND_DAY"


    return {

        "Score": TotalScore,

        "MarketType": MarketType,

        "Forces": {

            "TrendFlow": TrendFlow_Score,

            "MakerGamma": MakerGamma_Score,

            "VolRegime": VolRegime_Score,

            "PayoffBasin": PayoffBasin_Score,

            "ChipAlignment": ChipAlignment_Score

        }

    }


0 comments :

張貼留言

.

.
Related Posts Plugin for WordPress, Blogger...