OPEN-SOURCE SCRIPT

CB BTCUSD Premium

Updated
This indicator is designed for cryptocurrency traders and analysts who wish to compare the spot price of Bitcoin (BTC) on Coinbase (BTC/USD) against Binance (BTC/USDT), highlighting the premium or discount between these two major exchanges in real-time. Additionally, it incorporates a moving average of the premium, allowing users to identify trends over their selected timeframe.

Features:

Spot Price Comparison: Calculates the real-time difference (premium or discount) between the BTC/USD spot price on Coinbase and the BTC/USDT spot price on Binance.
Premium Indicator: Displays the premium as columns on the chart, using green to indicate a premium (Coinbase > Binance) and red to indicate a discount (Coinbase < Binance).
Moving Average Trend: Includes a simple moving average (SMA) of the premium over a user-defined period, plotted as a blue line, to help users identify trends in the premium over time.
Customizable MA Period: Users can adjust the moving average period to suit their analysis needs, with a default setting of 14 periods.

Usage Instructions:

Adding the Indicator: Search for "Coinbase to Binance BTC Spot Premium with Moving Average" in the TradingView indicators and strategies library and add it to your chart.
Customizing the MA Period: To adjust the moving average period, click on the indicator's settings (gear icon) and navigate to the "Inputs" tab. Enter your desired period for the moving average.
Ideal for: Traders and analysts focusing on arbitrage opportunities, market depth analysis, and those interested in the comparative performance of BTC across different exchanges.

Note: This indicator does not constitute financial advice. It's a tool designed to provide analytical insights. Users should conduct their own research and consult with financial advisors before making investment decisions.
Release Notes
Chart update.
Release Notes
Chart update.
Release Notes
Chart update.
sentimentTrend Analysis

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?


Also on:

Disclaimer