OPEN-SOURCE SCRIPT
IBIT premium(vs NAV)

This Pine Script calculates and plots the real-time trading premium or discount of the IBIT ETF relative to its official Net Asset Value (NAV).
It shows whether IBIT is trading above NAV (premium) or below NAV (discount) in percentage terms.
This version is accurate because it uses TradingView’s built-in ETF NAV financial data, rather than estimating BTC per share.
⸻
Key Data Sources Used
• Market Price:
The script pulls the live IBIT market price from NASDAQ:IBIT.
• Official NAV:
It retrieves the daily Net Asset Value (NAV) using TradingView’s financial data function and expands it across all intraday timeframes so it can be compared with real-time prices.
• Platform used: TradingView
⸻
How the Premium Is Calculated
The script uses the standard ETF premium formula:
\text{Premium (\%)} = \frac{\text{Market Price} - \text{NAV}}{\text{NAV}} \times 100
• Positive value → IBIT is trading at a premium
• Negative value → IBIT is trading at a discount
• Zero → IBIT is trading exactly at NAV
⸻
What the Chart Displays
• A real-time premium (%) line in a separate indicator panel
• A 0% reference line showing fair value
• ±1% and ±2% guide lines for abnormal deviation detection
• A live value label on the latest bar showing the exact current premium
⸻
Why This Script Is Accurate
• Uses official ETF NAV, not a BTC-per-share estimate
• NAV updates once per day, exactly as reported by the issuer
• Works on all timeframes (1-minute to daily)
• Shows true market mispricing, not synthetic BTC tracking error
⸻
How Traders Typically Use It
• Detect temporary dislocations between IBIT price and NAV
• Monitor liquidity stress during high volatility
• Validate whether IBIT is trading efficiently versus BTC
• Support ETF–BTC–Futures arbitrage analysis
⸻
Important Limitation
• NAV is only updated once per trading day
• During fast BTC moves, the premium may widen temporarily and normalize later via authorized participant (AP) arbitrage
It shows whether IBIT is trading above NAV (premium) or below NAV (discount) in percentage terms.
This version is accurate because it uses TradingView’s built-in ETF NAV financial data, rather than estimating BTC per share.
⸻
Key Data Sources Used
• Market Price:
The script pulls the live IBIT market price from NASDAQ:IBIT.
• Official NAV:
It retrieves the daily Net Asset Value (NAV) using TradingView’s financial data function and expands it across all intraday timeframes so it can be compared with real-time prices.
• Platform used: TradingView
⸻
How the Premium Is Calculated
The script uses the standard ETF premium formula:
\text{Premium (\%)} = \frac{\text{Market Price} - \text{NAV}}{\text{NAV}} \times 100
• Positive value → IBIT is trading at a premium
• Negative value → IBIT is trading at a discount
• Zero → IBIT is trading exactly at NAV
⸻
What the Chart Displays
• A real-time premium (%) line in a separate indicator panel
• A 0% reference line showing fair value
• ±1% and ±2% guide lines for abnormal deviation detection
• A live value label on the latest bar showing the exact current premium
⸻
Why This Script Is Accurate
• Uses official ETF NAV, not a BTC-per-share estimate
• NAV updates once per day, exactly as reported by the issuer
• Works on all timeframes (1-minute to daily)
• Shows true market mispricing, not synthetic BTC tracking error
⸻
How Traders Typically Use It
• Detect temporary dislocations between IBIT price and NAV
• Monitor liquidity stress during high volatility
• Validate whether IBIT is trading efficiently versus BTC
• Support ETF–BTC–Futures arbitrage analysis
⸻
Important Limitation
• NAV is only updated once per trading day
• During fast BTC moves, the premium may widen temporarily and normalize later via authorized participant (AP) arbitrage
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
Thông báo miễn trừ trách nhiệm
Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.