OPEN-SOURCE SCRIPT
Updated

Spot Premium with ROC

451
Description:
This indicator tracks the spot premium of BTC by comparing the perpetual futures price (perp) from Binance against the spot price on Coinbase. The histogram displays the price difference (spot minus perp) with green bars when spot is higher and red when perp carries a premium. The Rate of Change (ROC) line measures how quickly this premium shifts, with an option to normalize fluctuations for greater stability.

Implications & Possible Use Cases:
  • • Market Sentiment Gauge: A sustained positive premium often indicates bullish sentiment, while a discount can signal bearish bias.
  • • Arbitrage Signals: Significant divergences between perp and spot may present short-term arbitrage opportunities across exchanges.
  • • Risk Management & Hedging: Traders can align derivatives and spot positions when premiums deviate sharply, reducing funding cost exposures.
  • • Funding Rate Insights: Since perp funding rates tend to follow premium levels, this indicator can act as an early warning for funding spikes.
  • • Trend Confirmation: Use the normalized ROC to confirm continuation or reversal of premium trends, filtering out noise around small diff values.


Let me know if you would like additional features.
Release Notes
Description:
This indicator tracks the spot premium of BTC by comparing the perpetual futures price (perp) from Binance against the spot price on Coinbase. The histogram displays the price difference (spot minus perp) with green bars when spot is higher and red when perp carries a premium. The Rate of Change (ROC) line measures how quickly this premium shifts, with an option to normalize fluctuations for greater stability.

Implications & Possible Use Cases:
  • • Market Sentiment Gauge: A sustained positive premium often indicates bullish sentiment, while a discount can signal bearish bias.
  • • Arbitrage Signals: Significant divergences between perp and spot may present short-term arbitrage opportunities across exchanges.
  • • Risk Management & Hedging: Traders can align derivatives and spot positions when premiums deviate sharply, reducing funding cost exposures.
  • • Funding Rate Insights: Since perp funding rates tend to follow premium levels, this indicator can act as an early warning for funding spikes.
  • • Trend Confirmation: Use the normalized ROC to confirm continuation or reversal of premium trends, filtering out noise around small diff values.
Release Notes
Description:
This indicator tracks the spot premium of BTC by comparing the perpetual futures price (perp) from Binance against the spot price on Coinbase. The histogram displays the price difference (spot minus perp) with green bars when spot is higher and red when perp carries a premium. The Rate of Change (ROC) line measures how quickly this premium shifts, with an option to normalize fluctuations for greater stability.

Implications & Possible Use Cases:
  • • Market Sentiment Gauge: A sustained positive premium often indicates bullish sentiment, while a discount can signal bearish bias.
  • • Arbitrage Signals: Significant divergences between perp and spot may present short-term arbitrage opportunities across exchanges.
  • • Risk Management & Hedging: Traders can align derivatives and spot positions when premiums deviate sharply, reducing funding cost exposures.
  • • Funding Rate Insights: Since perp funding rates tend to follow premium levels, this indicator can act as an early warning for funding spikes.
  • • Trend Confirmation: Use the normalized ROC to confirm continuation or reversal of premium trends, filtering out noise around small diff values.
Release Notes
Mode:
  • “Auto” uses the chart’s symbol with chosen exchange prefixes; “Manual” lets you input full symbol codes.
  • Spot Exchange: exchange prefix for spot (e.g., “COINBASE”)
  • Derivatives Exchange: ex
change prefix for perp/futures (e.g., “BINANCE”)
Release Notes
Added tooltips
Release Notes
  • Volume Intensity: histogram bars adjust opacity based on volume relative to its SMA over a lookback period.
Release Notes
Fix to the Auto mode
Release Notes
added ribbons for the ROC

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.