OPEN-SOURCE SCRIPT
업데이트됨 GEX Levels v3 [Barrett]

GEX Levels v3 [Barrett] draws options gamma exposure (GEX) levels for SPY and QQQ as labeled horizontal lines, across three time horizons from a single input.
WHAT IT SHOWS
- Flip: the price where dealer gamma changes sign. Above it, moves tend to be dampened; below it, moves tend to be amplified.
- CW / PW: call wall (heaviest call strike, overhead ceiling) and put wall (heaviest put strike, floor).
- P1 / P2: positive-gamma resistance strikes above price. PS1 / PS2: support strikes below price.
- N1 / N2: negative-gamma strikes where moves tend to accelerate.
- AG1 / AG2: high absolute-gamma strikes that price tends to stick to.
- MP: max pain. EM+ / EM-: the expected-move band.
- HVL: highest-volume strike. FC: full-chain gamma flip.
HOW IT WORKS
The levels are calculated outside TradingView from the full options chain and entered as one comma-separated string. The indicator parses that string and draws each level with its label. A 0 in any slot means that level is not present and is skipped.
String format: 0DTE (16 values) | WEEKLY (10 values) | MONTHLY (10 values)
0DTE order: P1,P2,PS1,PS2,N1,N2,AG1,AG2,Flip,MP,EM+,EM-,CW,PW,HVL,FC
WEEKLY / MONTHLY order: P1,P2,N1,N2,AG1,AG2,Flip,MP,EM+,EM-
HOW TO USE
1. Add the indicator to a SPY or QQQ chart.
2. Open settings (gear) and paste the level string into "All Levels (String)".
3. Use "Active View" to show 0DTE, WEEKLY, MONTHLY, or ALL.
4. Use the SPY string on SPY and the QQQ string on QQQ. The levels change daily.
WHY IT IS DIFFERENT
One input loads three expiry horizons at once. A level that appears on 0DTE, weekly, and monthly together is being defended across expirations, and those stacked levels are usually the most significant of the day.
These levels are for reference only and are not trade signals.
WHAT IT SHOWS
- Flip: the price where dealer gamma changes sign. Above it, moves tend to be dampened; below it, moves tend to be amplified.
- CW / PW: call wall (heaviest call strike, overhead ceiling) and put wall (heaviest put strike, floor).
- P1 / P2: positive-gamma resistance strikes above price. PS1 / PS2: support strikes below price.
- N1 / N2: negative-gamma strikes where moves tend to accelerate.
- AG1 / AG2: high absolute-gamma strikes that price tends to stick to.
- MP: max pain. EM+ / EM-: the expected-move band.
- HVL: highest-volume strike. FC: full-chain gamma flip.
HOW IT WORKS
The levels are calculated outside TradingView from the full options chain and entered as one comma-separated string. The indicator parses that string and draws each level with its label. A 0 in any slot means that level is not present and is skipped.
String format: 0DTE (16 values) | WEEKLY (10 values) | MONTHLY (10 values)
0DTE order: P1,P2,PS1,PS2,N1,N2,AG1,AG2,Flip,MP,EM+,EM-,CW,PW,HVL,FC
WEEKLY / MONTHLY order: P1,P2,N1,N2,AG1,AG2,Flip,MP,EM+,EM-
HOW TO USE
1. Add the indicator to a SPY or QQQ chart.
2. Open settings (gear) and paste the level string into "All Levels (String)".
3. Use "Active View" to show 0DTE, WEEKLY, MONTHLY, or ALL.
4. Use the SPY string on SPY and the QQQ string on QQQ. The levels change daily.
WHY IT IS DIFFERENT
One input loads three expiry horizons at once. A level that appears on 0DTE, weekly, and monthly together is being defended across expirations, and those stacked levels are usually the most significant of the day.
These levels are for reference only and are not trade signals.
릴리즈 노트
HOW TO GET THE DAILY LEVELSThe indicator is free and open source, but it stays empty until you paste in the day's level string. The level strings are posted in my Discord, which is invite only.
1. Join the Barrettrade Discord: discord.gg/BPpuTqBDk3
2. Go to #join-for-free and post that you'd like access to the levels.
3. I'll reach out and approve you (Discord: seanb666). Then #gex-levels opens up for you.
Levels post at 9:45 AM, 12:05 PM and 3:00 PM ET on trading days, and the day's paper-trade results at 5:20 PM.
Educational use only. Not financial advice and not trade signals.
릴리즈 노트
Two display fixes. Labels are now staggered across six offsets, so levels that sit close together no longer print on top of each other. Every level also prints in the price scale on the right edge, where the number stays put when you scroll the chart or switch timeframes. No change to how levels are read or drawn.릴리즈 노트
v2.1 - FIX: v2.0 did not draw anything.v2.0 added 27 price-scale readouts as plot() calls. That pushed the script to 66 outputs against Pine's hard limit of 64, and TradingView stopped the whole script with runtime error RE10140 - "The script creates too many plots (66). The limit is 64." No lines, no labels, no levels drew at all.
The right-edge readout is now a single table anchored to the pane instead of 27 plots. A table costs zero plots, and it holds its position when you scroll and when you change timeframe. All readouts are kept and are sorted high to low like a price ladder, colour-matched to their lines.
Nothing was removed. All levels, labels and alerts are unchanged, and the staggered label offsets from v2.0 are kept.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.