OPEN-SOURCE SCRIPT
BTC Spread: Coinbase Spot vs CME Futures (skullcap)

BTC Spread: Coinbase Spot vs CME Futures
This indicator plots the real-time spread between Coinbase Spot BTC (COINBASE:BTCUSD) and CME Bitcoin Futures (CME:BTC1!).
It allows traders to monitor the premium or discount between spot and futures markets directly in one chart.
⸻
📊 How it Works
• The script pulls Coinbase spot BTC closing prices and CME front-month BTC futures prices on your selected timeframe.
• The spread is calculated as:
Spread = CME Price – Coinbase Spot Price
🔧 How to Use
1. Add the indicator to your chart (set to any timeframe you prefer).
2. The orange line represents the spread (USD difference).
3. The grey dashed line marks the zero level (parity between CME and Coinbase).
4. Use it to:
• Compare futures vs. spot market structure
• Track premium/discount cycles around funding or expiry
• Identify arbitrage opportunities or market dislocations
⸻
⚠️ Notes
• This indicator is informational only and does not provide trading signals.
• Useful for traders analysing derivatives vs spot price action.
• Works best when paired with order flow, funding rate, and open interest data.
This indicator plots the real-time spread between Coinbase Spot BTC (COINBASE:BTCUSD) and CME Bitcoin Futures (CME:BTC1!).
It allows traders to monitor the premium or discount between spot and futures markets directly in one chart.
⸻
📊 How it Works
• The script pulls Coinbase spot BTC closing prices and CME front-month BTC futures prices on your selected timeframe.
• The spread is calculated as:
Spread = CME Price – Coinbase Spot Price
🔧 How to Use
1. Add the indicator to your chart (set to any timeframe you prefer).
2. The orange line represents the spread (USD difference).
3. The grey dashed line marks the zero level (parity between CME and Coinbase).
4. Use it to:
• Compare futures vs. spot market structure
• Track premium/discount cycles around funding or expiry
• Identify arbitrage opportunities or market dislocations
⸻
⚠️ Notes
• This indicator is informational only and does not provide trading signals.
• Useful for traders analysing derivatives vs spot price action.
• Works best when paired with order flow, funding rate, and open interest data.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Penafian
Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.