OPEN-SOURCE SCRIPT
Aktualisiert SPX Levels Mapper (Auto-Calibrating v3)

SPX Levels Mapper (Auto-Calibrating v3)
Plot S&P 500 levels directly on any chart — converted automatically using a live rolling linear regression between SPX and your instrument.
How it works:
The indicator pulls real-time SPX data and runs a rolling linear regression against whatever ticker you're charting over a configurable lookback window. Any SPX level you input gets converted to its equivalent price on your chart — no manual slope or intercept needed.
Features:
Auto-calibrating regression that updates every bar
Works on any correlated instrument (NQ, MNQ, ES, MES, individual stocks, etc.)
8 configurable level slots, each with its own color, label, and settings
Per-level gamma toggle (Positive / Negative) with ⚠ warning labels for negative gamma
Per-level Hard Stop toggle — marks levels where price should stop with a 🛑 label
Optional padded zones (±10 points default) to visualize the area of influence around each level
Per-level zone transparency control so you can dial up intensity on key levels and fade out the rest
Info box showing live regression stats (slope, intercept, R²)
Use cases:
Map SPX gamma/GEX levels from Unusual Whales, SpotGamma, etc. onto any chart
Distinguish between positive and negative gamma environments per level
Mark hard stops where market maker positioning suggests price rejection
Visualize zones of influence with adjustable padding and intensity
How to use:
Add to any chart that correlates with SPX
Enter SPX levels in the settings — each level has its own group
Toggle gamma type, hard stop, zone visibility, and transparency per level
Lines and zones appear at the equivalent price on your chart, updating in real time
Built for traders who read SPX flows but execute on other instruments.
Plot S&P 500 levels directly on any chart — converted automatically using a live rolling linear regression between SPX and your instrument.
How it works:
The indicator pulls real-time SPX data and runs a rolling linear regression against whatever ticker you're charting over a configurable lookback window. Any SPX level you input gets converted to its equivalent price on your chart — no manual slope or intercept needed.
Features:
Auto-calibrating regression that updates every bar
Works on any correlated instrument (NQ, MNQ, ES, MES, individual stocks, etc.)
8 configurable level slots, each with its own color, label, and settings
Per-level gamma toggle (Positive / Negative) with ⚠ warning labels for negative gamma
Per-level Hard Stop toggle — marks levels where price should stop with a 🛑 label
Optional padded zones (±10 points default) to visualize the area of influence around each level
Per-level zone transparency control so you can dial up intensity on key levels and fade out the rest
Info box showing live regression stats (slope, intercept, R²)
Use cases:
Map SPX gamma/GEX levels from Unusual Whales, SpotGamma, etc. onto any chart
Distinguish between positive and negative gamma environments per level
Mark hard stops where market maker positioning suggests price rejection
Visualize zones of influence with adjustable padding and intensity
How to use:
Add to any chart that correlates with SPX
Enter SPX levels in the settings — each level has its own group
Toggle gamma type, hard stop, zone visibility, and transparency per level
Lines and zones appear at the equivalent price on your chart, updating in real time
Built for traders who read SPX flows but execute on other instruments.
Versionshinweise
SPX Levels Mapper (Auto-Calibrating v3)Plot S&P 500 levels directly on any chart — converted automatically using a live rolling linear regression between SPX and your instrument.
How it works:
The indicator pulls real-time SPX data and runs a rolling linear regression against whatever ticker you're charting over a configurable lookback window. Any SPX level you input gets converted to its equivalent price on your chart — no manual slope or intercept needed.
Features:
Auto-calibrating regression that updates every bar
Works on any correlated instrument (NQ, MNQ, ES, MES, individual stocks, etc.)
8 configurable level slots, each with its own color, label, and settings
Per-level gamma toggle (Positive / Negative) with ⚠ warning labels for negative gamma
Per-level Hard Stop toggle — marks levels where price should stop with a 🛑 label
Optional padded zones (±10 points default) to visualize the area of influence around each level
Per-level zone transparency control so you can dial up intensity on key levels and fade out the rest
Info box showing live regression stats (slope, intercept, R²)
Use cases:
Map SPX gamma/GEX levels from Unusual Whales, SpotGamma, etc. onto any chart
Distinguish between positive and negative gamma environments per level
Mark hard stops where market maker positioning suggests price rejection
Visualize zones of influence with adjustable padding and intensity
How to use:
Add to any chart that correlates with SPX
Enter SPX levels in the settings — each level has its own group
Toggle gamma type, hard stop, zone visibility, and transparency per level
Lines and zones appear at the equivalent price on your chart, updating in real time
Built for traders who read SPX flows but execute on other instruments.
Versionshinweise
Here's everything since v1:Live SPX data pull — replaced hardcoded CSV regression with request.security("SP:SPX") so it auto-calibrates
Rolling regression — slope/intercept recalculate every bar over a configurable lookback window
Padded zones — optional ±10 point shaded zones around each level
Per-level color — each level gets its own color picker
Per-level gamma toggle — Positive / Negative with ⚠ NEG γ label
Per-level Hard Stop — 🛑 STOP label for rejection levels
Per-level zone transparency — individual opacity control instead of global
Configurable line style — Solid / Dashed / Dotted
Configurable line width — 1 to 4
R² info box — live regression stats on chart
Level labels with NQ conversion — each line shows the SPX source and converted value
Versionshinweise
Regression freeze on cash close — when SPX stops updating after 4pm, the slope/intercept lock in at their last valid values instead of drifting against frozen dataLive/Frozen status indicator — info box shows 🟢 LIVE during cash hours, ❄ FROZEN (cash closed) after hours with aqua text
Line style selector — Solid / Dashed / Dotted dropdown in Style settings (was hardcoded to dashed before)
Versionshinweise
Fixed double plotting — all lines, boxes, and labels are now deleted and redrawn cleanly on each bar update instead of stacking on top of each otherVersionshinweise
Two new settings in the Calibration group:Lock Regression Timeframe — on by default
Regression Timeframe — defaults to 5 minutes
Versionshinweise
Now there's an SPX Symbol picker in the Calibration group. Defaults to SP:SPX but you can switch it to whatever works — CBOE:SPX, AMEX:SPY, CME_MINI:ES1!, etc. Just search for the ticker in the dropdown and pick the one your broker provides.Versionshinweise
v4 changelog (since v3):5 mapping methods with toggle — Regression, Live Ratio, Pct Offset, Beta-Adjusted, Anchored Session selectable from a dropdown
Live Ratio set as default — uses current NQ/SPX ratio for the most accurate level placement
Configurable SPX symbol — swap between SP:SPX, CBOE:SPX, AMEX:SPY, CME_MINI:ES1!, etc.
Locked regression timeframe — option to fix data pull to a specific timeframe (default 5m) so levels match across all chart timeframes
Dynamic info box per method — shows relevant stats for whichever method is active (ratio, beta, slope/intercept, session anchor, etc.)
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.