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.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.
Skrypt open-source
W duchu TradingView twórca tego skryptu udostępnił go jako open-source, aby traderzy mogli analizować i weryfikować jego funkcjonalność. Brawo dla autora! Możesz korzystać z niego za darmo, ale pamiętaj, że ponowna publikacja kodu podlega naszym Zasadom Społeczności.
Wyłączenie odpowiedzialności
Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.