OPEN-SOURCE SCRIPT
SPX Levels on NQ (Auto)

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.
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.
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์แบบโอเพนซอร์ส
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน