PROTECTED SOURCE SCRIPT
BTC Perp-Spot Premium

BTC Perp‑Spot Premium w/ EMA Cross
This indicator measures the premium or discount between BTC spot prices and perpetual futures across major exchanges. It visualizes real-time sentiment in the derivatives market and identifies potential inflection points by comparing the behavior of spot traders (real demand) and perp traders (speculative positioning).
What It Does
Calculates the premium spread
Shows the percentage difference between perp and spot prices as a color-coded histogram. Blue bars indicate perps trading above spot (aggressive longs), while red bars suggest perps below spot (risk-off or bearish positioning).
7-exchange composite data feed
Uses a robust average of six perpetual futures sources and seven spot market sources across Binance, Bybit, OKX, Coinbase, Bitfinex, Kraken, and Bitstamp for a balanced and high-fidelity view.
EMA crossover signals
Includes a customizable EMA and MA of the premium. Crossovers are visualized with subtle circle markers to signal sentiment shifts—blue for EMA crossing above, red for crossing below.
Zero baseline
A horizontal line at zero makes it easy to identify when perps flip from premium to discount territory and vice versa.
Dynamic stats table
Displays live values for the perp average, spot average, and premium % in a neatly formatted corner table.
Why It's Useful
This tool helps traders:
Monitor market sentiment and speculative aggression
Spot inefficiencies between derivatives and spot markets
Identify early reversal or continuation signals
Track potential liquidation zones or trend exhaustion
Confirm breakouts with perp/spot alignment
Whether you're trading short-term momentum or watching for mean-reverting setups, this premium analysis tool brings deeper context to BTC price action directly on your chart.
This indicator measures the premium or discount between BTC spot prices and perpetual futures across major exchanges. It visualizes real-time sentiment in the derivatives market and identifies potential inflection points by comparing the behavior of spot traders (real demand) and perp traders (speculative positioning).
What It Does
Calculates the premium spread
Shows the percentage difference between perp and spot prices as a color-coded histogram. Blue bars indicate perps trading above spot (aggressive longs), while red bars suggest perps below spot (risk-off or bearish positioning).
7-exchange composite data feed
Uses a robust average of six perpetual futures sources and seven spot market sources across Binance, Bybit, OKX, Coinbase, Bitfinex, Kraken, and Bitstamp for a balanced and high-fidelity view.
EMA crossover signals
Includes a customizable EMA and MA of the premium. Crossovers are visualized with subtle circle markers to signal sentiment shifts—blue for EMA crossing above, red for crossing below.
Zero baseline
A horizontal line at zero makes it easy to identify when perps flip from premium to discount territory and vice versa.
Dynamic stats table
Displays live values for the perp average, spot average, and premium % in a neatly formatted corner table.
Why It's Useful
This tool helps traders:
Monitor market sentiment and speculative aggression
Spot inefficiencies between derivatives and spot markets
Identify early reversal or continuation signals
Track potential liquidation zones or trend exhaustion
Confirm breakouts with perp/spot alignment
Whether you're trading short-term momentum or watching for mean-reverting setups, this premium analysis tool brings deeper context to BTC price action directly on your chart.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.
Mã được bảo vệ
Tập lệnh này được đăng dưới dạng mã nguồn đóng. Tuy nhiên, bạn có thể tự do sử dụng tập lệnh mà không có bất kỳ hạn chế nào – tìm hiểu thêm tại đây.
Thông báo miễn trừ trách nhiệm
Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.