OPEN-SOURCE SCRIPT
Aktualisiert X ATM Option Ladder Flow

X ATM Option Ladder Flow is a specialized options-market visualization tool designed for intraday tracking of at-the-money (ATM) option volume flow in index ETFs such as QQQ and SPY.
The script dynamically identifies the ATM contract on every bar and plots real-time call-versus-put volume distributions and marker to represent if the volume corresponded with the price of the option going up or down.
By analyzing volume and direction data from multiple strikes within an ±8-point range, the indicator produces a real-time histogram that reflects how order flow evolves relative to the underlying price.
Complementary status tables display the active strike, ladder position, and warnings when the underlying moves outside the monitored range.
Core Features
Dynamic ATM selection – Each bar automatically maps to the option contract closest to the underlying’s price.
Bidirectional volume comparison – Visual separation of call and put volume, with “up” markers highlighting contracts trading above their prior close.
Multi-strike ladder analysis – Samples strikes ±8 points from the defined center to capture flow skew and momentum near the money.
Optimized data calls – Uses tuple requests to minimize request.security() load, enabling a deeper ladder within TradingView limits.
Session awareness – Restricts processing to the 9:30 AM – 4:15 PM ET option-trading window.
Status dashboard – Displays date, active strike, warning flags (“⚠︎ / •outside”), and ladder parameters directly on chart.
Use Case
The indicator is intended for intraday traders and options-flow analysts who want to visualize how short-term liquidity and sentiment migrate across the ATM region as the underlying moves. Typical applications include:
Monitoring real-time call/put volume balance to confirm directional momentum or detect absorption zones.
Identifying volatility clustering near the money—where hedging pressure or gamma concentration can influence underlying price stability.
Detecting when price exits the monitored ladder (⚠︎ / •outside), signaling a potential shift to a new dominant option band or requiring manual recentering.
Integrating option flow into broader futures or ETF bias models (e.g., NQ/ES alignment or QQQ/SPY flow confirmation).
Technical Notes
Static-center architecture ensures historical consistency: prior bars remain fixed even after re-centering.
Ladder depth is hard-coded to ±8, the maximum possible within TradingView’s security-call limits.
auto_nudge is enabled to smoothly align the selected lane with the active ATM without requiring user intervention.
Indicator is optimized for 1-minute to 5-minute charts; use overlay = false to preserve scale clarity.
The script dynamically identifies the ATM contract on every bar and plots real-time call-versus-put volume distributions and marker to represent if the volume corresponded with the price of the option going up or down.
By analyzing volume and direction data from multiple strikes within an ±8-point range, the indicator produces a real-time histogram that reflects how order flow evolves relative to the underlying price.
Complementary status tables display the active strike, ladder position, and warnings when the underlying moves outside the monitored range.
Core Features
Dynamic ATM selection – Each bar automatically maps to the option contract closest to the underlying’s price.
Bidirectional volume comparison – Visual separation of call and put volume, with “up” markers highlighting contracts trading above their prior close.
Multi-strike ladder analysis – Samples strikes ±8 points from the defined center to capture flow skew and momentum near the money.
Optimized data calls – Uses tuple requests to minimize request.security() load, enabling a deeper ladder within TradingView limits.
Session awareness – Restricts processing to the 9:30 AM – 4:15 PM ET option-trading window.
Status dashboard – Displays date, active strike, warning flags (“⚠︎ / •outside”), and ladder parameters directly on chart.
Use Case
The indicator is intended for intraday traders and options-flow analysts who want to visualize how short-term liquidity and sentiment migrate across the ATM region as the underlying moves. Typical applications include:
Monitoring real-time call/put volume balance to confirm directional momentum or detect absorption zones.
Identifying volatility clustering near the money—where hedging pressure or gamma concentration can influence underlying price stability.
Detecting when price exits the monitored ladder (⚠︎ / •outside), signaling a potential shift to a new dominant option band or requiring manual recentering.
Integrating option flow into broader futures or ETF bias models (e.g., NQ/ES alignment or QQQ/SPY flow confirmation).
Technical Notes
Static-center architecture ensures historical consistency: prior bars remain fixed even after re-centering.
Ladder depth is hard-coded to ±8, the maximum possible within TradingView’s security-call limits.
auto_nudge is enabled to smoothly align the selected lane with the active ATM without requiring user intervention.
Indicator is optimized for 1-minute to 5-minute charts; use overlay = false to preserve scale clarity.
Versionshinweise
clean up Versionshinweise
added feature in case strike is too far from underlying that the option chain doesnt not exists. a message will appear to help user. this will happen when switching from QQQ to SPY and forgetting to change strike for instance Versionshinweise
cleaned up wording Versionshinweise
clean up Versionshinweise
clean upVersionshinweise
cleaned up tool tip commentaryVersionshinweise
clarified table date as DTE which by default is currently 0DTEVersionshinweise
date management fix. still have to enter DTE manually. It appears TV does not retain expired contract data once the next session begins. So for example, it is not possible to replay Nov 7th using Nov 7th 0DTE because from Monday Nov 10th market open that data is discarded by TV. Versionshinweise
further explanation: option contracts across chain are live feed data only. so only active contract info is available. once the next session begins, any contract that has expired the data goes into the ether never to be seen again. So back testing 0DTE option chains is not possible on most platforms not just a TV thing. what this means is I had to re-incorporate the need for user to enter the date in settings so i could retain a wide option chain of +-8 prices off the anchor which is the most important feature IMOVersionshinweise
more detailed message in the event nothing plots 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.