OPEN-SOURCE SCRIPT
已更新 Map Multiple QQQ Levels to NQ (Custom Labels)

maps user-defined price levels from the QQQ (Invesco QQQ Trust, tracking the NASDAQ-100) to equivalent levels on the NQ (NASDAQ-100 futures) chart, displaying them as colored lines with optional labels. It’s designed to overlay on the NQ chart, helping traders visualize QQQ price levels in terms of NQ values based on the ratio between their prices.
Key Features:
Inputs for QQQ Levels: Users can specify up to four QQQ price levels (default: 300, 310, 320, 330) with a step of 0.1 for precision.
Customizable Appearance: Each level has its own color (default: teal, orange, purple, green) and a shared line width (default: 2).
Time Filters:
Option to display levels only for the current day (show_today_only).
Option to show levels only after 9:30 AM Eastern Time (show_after_open), aligning with market open.
Custom Labels: Each level can have a toggleable label with a customizable template (e.g., "QQQ {qqq} → NQ {mapped}"), showing the QQQ level and its mapped NQ value, formatted to two decimal places.
Dynamic Mapping: Calculates the ratio between NQ and QQQ closing prices to map QQQ levels to NQ equivalents in real-time.
Conditional Display: Levels are plotted only when user-defined conditions (day and time filters) are met, otherwise hidden (na).
Label Placement: Labels are displayed on the last confirmed historical bar, unaffected by time filters, ensuring visibility without cluttering real-time bars.
Key Features:
Inputs for QQQ Levels: Users can specify up to four QQQ price levels (default: 300, 310, 320, 330) with a step of 0.1 for precision.
Customizable Appearance: Each level has its own color (default: teal, orange, purple, green) and a shared line width (default: 2).
Time Filters:
Option to display levels only for the current day (show_today_only).
Option to show levels only after 9:30 AM Eastern Time (show_after_open), aligning with market open.
Custom Labels: Each level can have a toggleable label with a customizable template (e.g., "QQQ {qqq} → NQ {mapped}"), showing the QQQ level and its mapped NQ value, formatted to two decimal places.
Dynamic Mapping: Calculates the ratio between NQ and QQQ closing prices to map QQQ levels to NQ equivalents in real-time.
Conditional Display: Levels are plotted only when user-defined conditions (day and time filters) are met, otherwise hidden (na).
Label Placement: Labels are displayed on the last confirmed historical bar, unaffected by time filters, ensuring visibility without cluttering real-time bars.
發行說明
update chart image發行說明
update label distance開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。