OPEN-SOURCE SCRIPT
מעודכן

SPY / QQQ Reference Ladder (Cash Close Anchored)

917
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.
הערות שחרור
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 Fix

Replaced 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. קרא עוד ב־תנאי השימוש.