OPEN-SOURCE SCRIPT
Aktualisiert 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.
Versionshinweise
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.
Versionshinweise
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.Versionshinweise
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.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.
Open-source Skript
Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun auch andere Trader das Script rezensieren und die Funktionalität überprüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden, aber eine Wiederveröffentlichung des Codes unterliegt unseren Hausregeln.
Haftungsausschluss
Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.