OPEN-SOURCE SCRIPT

OPEX Zone Framework

331
OPEX Zone Framework
Description:

A weekly options expiration framework for QQQ that translates dealer gamma positioning into five actionable price zones. Updated every Sunday. Personally, I use Barchart's Max Pain and Gamma Exposure data. (This code is neither endorsed by Barchart, nor am I, in any way affiliated with them) Works on all timeframes — zone logic is governed by daily closes only, never intraday wicks.
Five zones:

Extended (above Call Res 3) — no edge, dealers selling every rally
Bullish (Pin → Call Res 3) — long bias, three upside targets labeled
Buy Dip (Gamma Flip → Pin) — dip entries, stop below gamma flip
Stand Aside (Put Floor → Gamma Flip) — no man's land, wait for daily close
Short (below Put Floor on daily close) — short framework active, target deep support

Eight inputs (update every Sunday):

Expiry date · Pin/Max Pain · Gamma Flip · Put Floor · Deep Support · Call Resistance 1/2/3
Alerts included:

· Daily close below gamma flip
· Daily close below put floor
· Daily close reclaims gamma flip
· Daily close above pin

Auto-disables after expiry Friday close with a stale notice. Applicable to any liquid ETF with options data — SPY gives the ES read using the same workflow.
My data source: Barchart Premier — Max Pain & Vol Skew (OI, not volume) + Gamma Exposure by expiry date.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.