OPEN-SOURCE SCRIPT
OPEX Zone Framework

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.
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.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.