OPEN-SOURCE SCRIPT

Futures Gamma Levels

2 570
Futures GEX Levels
Brings Gamma Exposure (GEX) levels from options markets directly onto your futures charts — fully converted and price-locked. A single indicator that works across NQ, ES, GC, and SI futures with zero configuration needed between charts.
Designed for active futures daytraders who use GammaLens (gammalens.markets) as their GEX data source.

The Problem This Solves
Futures contracts like NQ, ES, GC, and SI have no meaningful native options chain. The gamma levels that actually drive price action on these instruments come from their ETF and index equivalents — QQQ, SPX, GLD, and SLV respectively. But those levels are priced in ETF/index terms, not futures terms. Overlaying them raw on a futures chart puts every level in the wrong place.
This indicator solves that by automatically detecting which futures chart you are on, fetching the matching ETF or index price via request.security(), calculating the live ratio, and converting all gamma levels into the correct futures price coordinates — in real time, on every bar.

Supported Instruments
NQ1! / MNQ1! → QQQ options → NQ/QQQ ratio
ES1! / MES1! → SPX options → ES/SPX ratio
GC1! / MGC1! → GLD options → GC/GLD ratio
SI1! / SIL1! → SLV options → SI/SLV ratio
SPX is used as the source for ES rather than SPY, as SPX has significantly deeper options liquidity and is the more accurate representation of dealer gamma positioning for S&P 500 futures.

What Gets Plotted
Call Wall — Highest positive GEX strike. Dealers are heavily long gamma here, selling into rallies. Acts as strong resistance.
Put Wall — Most negative GEX strike. Acts as support, but a break below can accelerate selling as dealers flip their hedge.
HVL / Gamma Flip — The regime boundary. Above it: dealers are net long gamma, dampening volatility, market tends to mean-revert. Below it: dealers are net short gamma, amplifying moves, market tends to trend.
GEX Levels 1–10 — Secondary gamma strikes ranked by magnitude. These act as additional support/resistance zones where dealer hedging flows are concentrated.
All levels are color-coded, labeled directly above each line in white text, and fully customizable in the settings.

How It Works — The Conversion
Pine Script cannot make external HTTP requests, so GEX data cannot be pulled automatically. Instead, this indicator acts as a precision conversion and visualization layer on top of your preferred GEX data source.
Each morning you paste the ETF/index gamma levels from GammaLens into the appropriate input group in the settings. The indicator then fetches the live ETF or index price using request.security(), divides the current futures price by the ETF price to get a live ratio, multiplies every input level by that ratio to convert it to futures terms, and draws each level as a horizontal line anchored via xloc.bar_time — so lines stay locked to their price level regardless of how you scroll or zoom.

Setup (30 seconds each morning)
Add the indicator to any supported futures chart — it auto-detects the instrument
Open GammaLens (gammalens.markets) and look up the matching source: NQ → QQQ | ES → SPX | GC → GLD | SI → SLV
Open indicator Settings and find the correct input group for your chart
Paste in the gamma levels (Call Wall, Put Wall, HVL, and any GEX levels you want)
Lines appear immediately, price-locked and labeled

The same settings persist across all four instruments — you only need to fill in the group matching the chart you are currently on.

Info Table
A small table in the top-right corner dynamically displays the active instrument pair label, live futures price, live ETF/index price, and the calculated ratio — so you can verify the conversion is current and accurate at a glance.

Notes
Set any level to 0 to hide it. The ratio updates live on every bar, so converted levels drift slightly intraday as the futures/ETF spread moves — this is normal and expected behavior. Best used on intraday timeframes (1m–15m) for daytrading context.
This indicator does not calculate GEX internally. It is a visualization layer designed to work with externally sourced data. GammaLens and Barchart offers a free tier covering QQQ, SPX, GLD, and SLV — which maps directly to all four instruments this indicator supports.

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.