OPEN-SOURCE SCRIPT
SPX Multi-Basis Dashboard[VT]

Here is a professional and comprehensive English description tailored for your TradingView script. You can use this for the script's publication description or as documentation.
------------------------------
## SPX Multi-Basis Dashboard## Overview
SPX Multi-Basis Dashboard is a high-performance institutional-grade market arbitrage tool designed for Pine Script v6. It calculates and tracks the real-time basis (price discrepancies) among major S&P 500 tracking instruments: SPX, SPY, E-mini Futures (ES!), and Micro E-mini Futures (MES!).
To provide reliable structural market insights and eliminate micro-second price flickering, the dashboard features a 5-minute discrete time-lock mechanism that samples and freezes the basis data at synchronized 5-minute intervals.
------------------------------
## Key Features
* Strict Non-Rounding Decimal Truncation: Built with custom mathematical routines (math.floor) that strictly truncate all market prices and basis values to 2 decimal places without rounding. This preserves the raw precision required for genuine arbitrage analysis.
* Synchronized 5-Minute Time-Lock: Locks the basis computations every 5 minutes to Filter out minor intraday noise and present clear structural premiums or discounts.
* Explicit Positive/Negative Sign Markings: Automatically appends literal + or - symbols prefixing the basis column (+12.45 / -3.10) for instantaneous visibility of premium/discount states.
* Multi-Symbol Price Cross-Reference: Features a 3-column matrix layouts displaying the tracking Formula, real-time Market Prices, and the 5m Time-Locked Basis side by side.
* Premium Transparent Light Theme: Tailor-made for White/Light chart setups. It features a modern, ultra-clean graphite overlay with variable opacity that naturally blends into your chart workspace without blocking background candlesticks.
* Bulletproof Fault Tolerance: Embedded with v6 native compilation guardrails (ignore_invalid_symbol=true) and strict market cap divergence filters to handle contract rollovers smoothly without breaking or throwing runtime errors.
------------------------------
## Column Layout Guide
1. Formula: Displays the mathematical alignment rule used for the calculation (e.g., SPX - (SPY × 10) to neutralize the SPY ETF 1:10 split ratio).
2. Market Price: Live streaming quotes fetched directly via unified security channels. (Displays SPX / SPY coupled matrix on row 1, and underlying front-month continuous contract prices for ES! and MES! on rows 2 and 3).
3. 5m Basis: The synchronized basis reading marked in Teal Green for positive values (Premium) and Wine Red for negative values (Discount).
------------------------------
## Configuration Inputs
* Update Interval (Mins): Customize the basis sampling frequency (Defaults to 5 minutes).
* Dashboard Position: Dynamically anchors the matrix across any corner of your chart workspace (Top Right, Bottom Right, Top Left, Bottom Left).
------------------------------
## SPX Multi-Basis Dashboard## Overview
SPX Multi-Basis Dashboard is a high-performance institutional-grade market arbitrage tool designed for Pine Script v6. It calculates and tracks the real-time basis (price discrepancies) among major S&P 500 tracking instruments: SPX, SPY, E-mini Futures (ES!), and Micro E-mini Futures (MES!).
To provide reliable structural market insights and eliminate micro-second price flickering, the dashboard features a 5-minute discrete time-lock mechanism that samples and freezes the basis data at synchronized 5-minute intervals.
------------------------------
## Key Features
* Strict Non-Rounding Decimal Truncation: Built with custom mathematical routines (math.floor) that strictly truncate all market prices and basis values to 2 decimal places without rounding. This preserves the raw precision required for genuine arbitrage analysis.
* Synchronized 5-Minute Time-Lock: Locks the basis computations every 5 minutes to Filter out minor intraday noise and present clear structural premiums or discounts.
* Explicit Positive/Negative Sign Markings: Automatically appends literal + or - symbols prefixing the basis column (+12.45 / -3.10) for instantaneous visibility of premium/discount states.
* Multi-Symbol Price Cross-Reference: Features a 3-column matrix layouts displaying the tracking Formula, real-time Market Prices, and the 5m Time-Locked Basis side by side.
* Premium Transparent Light Theme: Tailor-made for White/Light chart setups. It features a modern, ultra-clean graphite overlay with variable opacity that naturally blends into your chart workspace without blocking background candlesticks.
* Bulletproof Fault Tolerance: Embedded with v6 native compilation guardrails (ignore_invalid_symbol=true) and strict market cap divergence filters to handle contract rollovers smoothly without breaking or throwing runtime errors.
------------------------------
## Column Layout Guide
1. Formula: Displays the mathematical alignment rule used for the calculation (e.g., SPX - (SPY × 10) to neutralize the SPY ETF 1:10 split ratio).
2. Market Price: Live streaming quotes fetched directly via unified security channels. (Displays SPX / SPY coupled matrix on row 1, and underlying front-month continuous contract prices for ES! and MES! on rows 2 and 3).
3. 5m Basis: The synchronized basis reading marked in Teal Green for positive values (Premium) and Wine Red for negative values (Discount).
------------------------------
## Configuration Inputs
* Update Interval (Mins): Customize the basis sampling frequency (Defaults to 5 minutes).
* Dashboard Position: Dynamically anchors the matrix across any corner of your chart workspace (Top Right, Bottom Right, Top Left, Bottom Left).
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。