Open source · MIT

Options GEX Charts: gamma exposure chart for your website

An embeddable JavaScript candlestick chart that draws options gamma exposure (GEX) levels on the price: call wall, put wall, gamma flip, and max pain. Built on TradingView Lightweight Charts™, with data from the FlashAlpha API or your own backend.

View on GitHub Get a FlashAlpha API key

Live demo with generated data; the page makes no data requests. Drag to scroll, use the wheel or pinch to zoom, and open the Layers menu to turn layers on or off.

How to read the chart

Each element of the demo above, with the colour it uses on the chart. Levels are drawn per bar, as a row of dots on the same time axis as the candles, so you can see where the price traded against each level and when the level moved. The latest value is labelled on the price axis.

Candles and volume

Price bars from 1 minute to 1 week, on a US Eastern time axis. Green bars closed higher than they opened, red bars lower; volume bars at the bottom use the same colours.

Main pane, volume along the bottom.

Call wall

The strike with the largest call gamma exposure. Dealer hedging near it tends to slow rallies, so traders often read it as resistance.

Green dots above the price, labelled "call wall".

Put wall

The strike with the largest put gamma exposure. Dealer hedging near it tends to slow declines, so traders often read it as support.

Red dots below the price, labelled "put wall".

Gamma flip

The price where net dealer gamma changes sign. Above it, dealer hedging tends to dampen moves; below it, hedging can amplify them. It is gray while the data source marks it as not yet certified.

Yellow dots, gray when unverified, labelled "flip". In the demo the first half hour of each session is gray.

Max pain

The strike at which open options would expire with the least total value for their holders. Some traders watch it as a pull on the price into expiration.

Purple dots, labelled "max pain". Layer maxpain.

Spot candles

Muted candles after the last stored bar, built from spot prices until the full bars arrive. They keep the chart current between bar updates.

Right edge. The legend shows the source as "spot".

Legend

Symbol, OHLC, and volume for the bar under the crosshair, and a second line with the flip (and its status), call wall, put wall, and max pain for that bar. Move the crosshair to read the levels at any point in the past.

Top left. On phones it shows one line until you tap the chart.

Key levels row

The latest spot, walls, flip, and max pain as text, each with its change against the previous session's close. A wall that moved overnight is often the first thing to check before the open.

Under the chart. Plain HTML, so people and search engines can read it.

VWAP (plugin example)

Session volume-weighted average price, added by this page with registerLayers. It shows how to draw your own layers on the same chart; it is not part of the core.

Light blue line, intraday resolutions only.

Plan layers

With a FlashAlpha embed key, the chart reads from the FlashAlpha API and adds the layers below to the Layers menu. The layers you get depend on your plan; a layer above your plan shows a lock and an Upgrade link. Screenshots are from SPY.

Net gamma exposure per strike as a heatmap behind SPY 5-minute candles over five days, with the GEX profile and a net GEX pane
Growth

Strike heatmap

Net GEX for every strike, drawn behind the candles for each bar: green where dealers are estimated to be long gamma, red where they are short. Brighter bands are larger exposure.

Use it to see where gamma is concentrated and how the concentration shifts over the days, not only where the single largest strike is.

Net gamma exposure per strike as horizontal bars at the right edge of a one-day SPY chart
Growth

GEX profile

Net GEX per strike as horizontal bars at the right edge of the price pane, for the latest snapshot or for the bar under the crosshair.

Read it next to the price axis: long bars mark the strikes that carry the most exposure, and the sign tells you whether hedging there tends to dampen or amplify moves.

Net gamma exposure as a histogram in a pane under one month of SPY 15-minute candles
Basic

Net GEX pane

Total net GEX per bar as a histogram in its own pane under the price. Bars above zero are long-gamma, below zero short-gamma.

A move from positive to negative is a regime change: the market goes from conditions where hedging dampens moves to conditions where it can amplify them.

SPY 1-minute chart with the 0DTE scope, the 0DTE magnet level, walls, and flip
Growth

0DTE scope and 0DTE magnet

The 0DTE scope recomputes the walls, flip, heatmap, and net GEX from same-day expiries only. The 0DTE magnet marks the strike that same-day positioning is estimated to pull the price towards.

Same-day options can dominate intraday hedging, so their levels can differ from the all-expiries view, most of all late in the session.

Metric picker with the 0DTE pin score drawn as a line in its own pane under the price and the net GEX pane
Growth

Metrics

The metric picker draws one per-minute series as a line in its own pane: vanna, charm, delta exposure, IV, the 0DTE pin score, hedging estimates, and more. The screenshot shows the 0DTE pin score.

Use it to line up a metric with the price and the levels on the same time axis.

Other plan layers

Growth

Level events

Markers when a wall is set, moves, or is cleared; when the price touches, rejects, or breaks a level; when the flip is crossed or the regime flips; on large open interest changes; and on earnings and expiration dates.

Growth

Expected move

A 1σ band around the price from implied volatility: the range the options market prices for the period. A close outside the band is a larger move than the market expected.

Alpha

Live open interest basis

Levels are computed from settled open interest by default. The live basis switches them to intraday open interest estimates, so walls and flip can react to positions opened during the session.

BasicCall wall, put wall, gamma flip, max pain, 0DTE magnet, net GEX pane, vanna / charm / delta exposure panes.
GrowthEverything in Basic, plus the strike heatmap and GEX profile with gamma, delta, vanna and charm lenses, session replay, 0DTE hedging flow, strike × expiry heatmap, 0DTE scope, level events, expected move, and metrics.
AlphaEverything in Growth, plus the live open interest basis.

For plans and keys, see flashalpha.com.

Add it to your page

Load Lightweight Charts 5 and the chart core, add a container with a height, and mount the chart. No build step and no framework.

<script src="https://unpkg.com/lightweight-charts@5.0.0/dist/lightweight-charts.standalone.production.js"></script>
<script src="flashalpha-chart-core.js"></script>
<div id="chart" style="height: 480px"></div>
<script>
  FlashAlphaChart.mount(document.getElementById('chart'), { symbol: 'SPX', resolution: '5m', source: mySource });
</script>

To use FlashAlpha data, pass apiKey with your embed key (fa_pk_…) instead of source. The README covers the one-line embed, every option, and the layer plugin API.

Data and options

Gamma exposure FAQ

What is gamma exposure (GEX)?

GEX estimates how much options market makers' delta changes when the underlying price moves. It's summed over all strikes from open interest and each option's gamma. It indicates how much stock dealers might need to buy or sell to stay hedged.

What is the call wall?

The strike with the largest call gamma exposure. Dealer hedging near it tends to slow rallies, so traders often read it as resistance.

What is the put wall?

The strike with the largest put gamma exposure. Traders often read it as support.

What is the gamma flip?

The price where net GEX changes sign. Above it, dealers are estimated to be long gamma, and their hedging dampens moves. Below it, they are estimated to be short gamma, and their hedging can amplify moves.

What is max pain?

The strike at which open options would expire with the least total value for their holders.

Is this a trading signal?

No. The levels are model estimates from open interest, not observed dealer positions, and they aren't financial advice.

Can I use the chart with my own backend?

Yes. Pass a source object. You need a FlashAlpha key only for FlashAlpha data.