OPEN-SOURCE SCRIPT

BTC Coinbase Premium

Updated
This script is base on another script by oh 92.

It basically shows you where the price of Bitcoin (in USD) on Coinbase trades at a premium against an average of several futures exchanges.
Coinbase premium shows spot interest on bitcoin which happens either when futures are shorting heavily but spot holds the price up (often bullish especially when price is at a support level).
Negative premium shows that futures are leading price during an uptrend or spot is leading price during a downtrend.

Strong positive premium is often considered bullish.
Strong negative premium is often considered bearish even if price goes up.

The histogramm coinbase premium vs an average of several futures exchanges (Bitmex, Bitfinex, Binance, FTX, Phemex and Bitstamp).
The line diagramm shows coinbase premium vs Bybit.

In contrast to the script by oh92 this script uses different exchages (especially Bybit as a lot of former Bitmex traders changed to Bybit during september and october 2020).
All values are in percent because differences in USD only are not suitable for historic prices. This means if CB-premium is -0.1 then futures trade 0.1% lower than coinbase.
Release Notes
This is version 2.0 for 2024 of the Coinbase premium indicator.
Changelog:
- Updated Pine Script to V5
- Now uses real perpetual contracts of BTC-USD from Bitmex, Deribit, OKX, Binance, Kraken and Bitget to compare against Coinbase spot.
Oscillators

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer