OPEN-SOURCE SCRIPT
Aktualisiert SPY / QQQ Reference Ladder (Cash Close Anchored)

Description:
This indicator overlays a dynamic reference ladder on futures charts by mapping SPY (for ES) and QQQ (for NQ) levels onto price.
The ladder is anchored using the previous regular trading hours (RTH) cash close:
• ES/MES → SPY
• NQ/MNQ → QQQ
A fixed ratio is calculated from the prior session close and remains constant throughout the trading day. This allows traders to view equivalent SPY or QQQ price levels directly on futures charts.
Key features:
• Fixed daily mapping based on prior RTH close
• Automatically detects ES or NQ charts
• Displays horizontal ladder levels aligned to futures price
• Labels positioned to the right for quick reference near the price ladder
• Fully customizable colors, spacing, and text size
• Optional display of ticker prefix (SPY / QQQ)
This tool is designed for traders who reference ETF levels while executing on futures, helping align decision-making across correlated instruments.
This indicator overlays a dynamic reference ladder on futures charts by mapping SPY (for ES) and QQQ (for NQ) levels onto price.
The ladder is anchored using the previous regular trading hours (RTH) cash close:
• ES/MES → SPY
• NQ/MNQ → QQQ
A fixed ratio is calculated from the prior session close and remains constant throughout the trading day. This allows traders to view equivalent SPY or QQQ price levels directly on futures charts.
Key features:
• Fixed daily mapping based on prior RTH close
• Automatically detects ES or NQ charts
• Displays horizontal ladder levels aligned to futures price
• Labels positioned to the right for quick reference near the price ladder
• Fully customizable colors, spacing, and text size
• Optional display of ticker prefix (SPY / QQQ)
This tool is designed for traders who reference ETF levels while executing on futures, helping align decision-making across correlated instruments.
Versionshinweise
Update v1.1:Improved label positioning using bar_index for consistent right-side extension.
No changes to calculation logic.
Versionshinweise
Added a top-right ratio box showing locked and live SPY↔ES / QQQ↔NQ ratios with previous closes for better level precision.Versionshinweise
Added more decimal to the table.Versionshinweise
Added decimal to tableVersionshinweise
fix errorVersionshinweise
updateVersionshinweise
v2 — Visual Overhaul + Stability FixReplaced single line style with a 3-zone system: Center / Near / Far — each zone has its own color, width, opacity, and line style, all fully customizable in settings
All lines default to dotted, dark gray, 60% opacity for a clean look on dark charts without competing with price action
Center line toned down to match — subtle gray instead of bold white
Increased default levels from 12 to 15 above and below
Lines default longer (80 bars left, 50 bars right) so they anchor better across the visible chart
Added Extend Lines Left Infinitely toggle
Added Ratio Box position selector — move it to any corner
Fixed indicator disappearing on load — redraws on every real-time tick instead of only on the last bar, so it no longer requires removing and re-adding after other indicators load
Versionshinweise
Added Manual Close Override group with four individual price inputs (SPY, QQQ, ES, NQ). Enable the toggle and enter any close price manually — useful for using Yahoo Finance or other sources. Leave any field at 0 to keep auto-fetching that symbol. Switching charts retains all entered values.Versionshinweise
Added Manual Close Override group with four individual price inputs (SPY, QQQ, ES, NQ). Enable the toggle and enter any close price manually — useful for using Yahoo Finance or other sources. Leave any field at 0 to keep auto-fetching that symbol. Switching charts retains all entered values.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.