OPEN-SOURCE SCRIPT

SPX Levels on NQ (Auto)

540
SPX Levels on NQ (Auto-Calibrating)
Plot S&P 500 support/resistance levels directly on your NQ/MNQ chart — converted automatically using a live rolling linear regression.
How it works:
The indicator pulls real-time SPX price data and runs a linear regression against NQ over a configurable lookback window. This gives you a dynamically updating formula (NQ = slope × SPX + intercept) that adapts as the relationship between the two instruments shifts. Any SPX level you input gets converted to its NQ equivalent and drawn as a horizontal line on your chart.
Use cases:

Map SPX gamma/GEX levels (from Unusual Whales, SpotGamma, etc.) onto your NQ chart
Track SPX key support/resistance while trading NQ or MNQ
Cross-reference SPX options positioning with NQ price action

Features:

Auto-calibrating — no manual slope/intercept needed
8 configurable level slots with custom labels
Info box showing current regression stats and R²
Adjustable lookback, line style, and colors

How to use:

Add to any NQ1! or MNQ1! chart
Enter your SPX levels in the settings
Lines appear at the equivalent NQ price, updating in real time

Built for anyone who reads SPX flows but trades NQ.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.