Plot ZeroGEX gamma levels on NinjaTrader
Our ZeroGEX Gamma Levels indicator for NinjaTrader 8 draws the Gamma Flip, Call Wall, Put Wall, Max Pain, and Pin Strike on your chart - with an optional per-strike gamma histogram - and unlike the TradingView script, it updates itself. It polls the ZeroGEX API on a timer, so you never retype a number.
Trading ES or NQ? Set the symbol and the levels arrive already on the futures price axis - no basis offset to work out, and nothing to re-enter after a quarterly roll.
Trade 0DTE? Set Expiration to 0DTE and the walls, flip, max pain and GEX levels are drawn from today's expiration alone, rolling to the next one after the 4:00 PM ET close. Or type any expiration as a date (YYYY-MM-DD). Leave it on ALL for the whole chain.
The indicator and the ZeroGEX API key it polls with are both included with Pro. Upgrade and you can download it and generate your key in a couple of clicks.
- Get your key. On Pro, open Account → API Access and click Generate API Key. It's revealed once, so copy it somewhere safe.
- Compile the indicator. In NinjaTrader 8 open New → NinjaScript Editor, right-click Indicators → New Indicator, paste in the downloaded file, and press F5 to compile.
- Add it to a chart. Right-click your chart → Indicators…, add “ZeroGEX Gamma Levels”, then paste your key into API key and set Symbol to match the chart - ES or NQ for futures, or SPX, SPY, QQQ, NDX.
Trading through Interactive Brokers?
Yes - through NinjaTrader 8, and there is nothing extra to buy: the study on this page draws the same levels whatever your charts are connected to. What we do not have is an indicator for IBKR itself: Trader Workstation has no scripting language and no way to draw on its charts from outside, so there is nothing for an indicator to install into - ours or anyone else’s.
- NinjaTrader 8 - NinjaTrader 8 connects to an IBKR account through the TWS API, and the indicator runs inside NinjaTrader.
Both platforms reach IBKR through the same door, so the setup is the same either way: TWS or IB Gateway has to be running on the machine, with its socket API enabled.
IBKR’s own market data is thin by charting standards - snapshot ticks and limited history - which is why many traders pair a dedicated feed with IBKR for execution. It makes no difference to the levels: those are fetched from the ZeroGEX API over HTTP, and never read off the platform’s quotes.
Trade on a different platform?
The same levels, drawn by whichever platform you actually trade from. Whether one updates itself comes down to what its scripting language is allowed to do - not to the plan you are on.
Pine Script cannot make HTTP calls, so you type today’s four numbers into Settings.
thinkScript has no network access at all, so you re-copy the study each day - but it comes with the numbers already in it.
ACSIL is C++, so the study fetches the levels itself on a timer.
Bookmap add-ons are Java, so it fetches the levels itself, seconds after each update.
See the levels the indicator draws
The same Gamma Flip, Call Wall, Put Wall, and Max Pain the indicator pulls are published free on every ticker page - delayed roughly 15 minutes, no signup, and a useful sanity check while you get the key wired up.
Want to follow this throughout the trading day? View today's SPX, SPY, QQQ, and NDX gamma flip, call wall, put wall, and Net GEX - free, delayed roughly 15 minutes, no signup required.
Or compare all six at once on today's GEX levels page.
Writing about this? Put the same levels on your own site with a free embeddable card - one line of HTML, or a PNG for Substack and Discord. No account, no key.
Or open the live real-time 0DTE GEX dashboard - the full gamma flip, call and put walls, dealer positioning, and the Market State Index. Sign up for the live read.