OPEN-SOURCE SCRIPT
已更新 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.
版本注释
Update v1.1:Improved label positioning using bar_index for consistent right-side extension.
No changes to calculation logic.
版本注释
Added a top-right ratio box showing locked and live SPY↔ES / QQQ↔NQ ratios with previous closes for better level precision.版本注释
Added more decimal to the table.版本注释
Added decimal to table版本注释
fix error版本注释
update版本注释
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
版本注释
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.版本注释
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.开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。