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.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.
Açık kaynak kodlu komut dosyası
Gerçek TradingView ruhuna uygun olarak, bu komut dosyasının oluşturucusu bunu açık kaynaklı hale getirmiştir, böylece yatırımcılar betiğin işlevselliğini inceleyip doğrulayabilir. Yazara saygı! Ücretsiz olarak kullanabilirsiniz, ancak kodu yeniden yayınlamanın Site Kurallarımıza tabi olduğunu unutmayın.
Feragatname
Bilgiler ve yayınlar, TradingView tarafından sağlanan veya onaylanan finansal, yatırım, işlem veya diğer türden tavsiye veya tavsiyeler anlamına gelmez ve teşkil etmez. Kullanım Şartları'nda daha fazlasını okuyun.