Coinbase/Binance Premium Histogram with SMA- Indicator Name and Purpose: The Coinbase/Binance Premium Histogram with SMA is a TradingView indicator designed to visualize the price differential, or premium, between Coinbase and Binance exchanges for a specified cryptocurrency base asset, such as BTC in BTCUSD.
- Dynamic Symbol Construction: It automatically extracts the base currency from the current chart symbol and constructs the appropriate tickers for Coinbase (e.g., COINBASE:BTCUSD) and Binance (e.g., BINANCE:BTCUSDT).
- Price Retrieval and Premium Calculation: The indicator fetches closing prices from both exchanges and computes the premium as the difference between the Coinbase price and the Binance price.
- Histogram Visualization: The premium is plotted as a histogram in a separate pane below the main chart. Positive premiums (higher prices on Coinbase) are colored green, while negative premiums (higher on Binance) are colored red.
- Simple Moving Average (SMA) Integration: A user-configurable SMA of the premium is included, with a default length of 14 periods, displayed as a gray line to offer a smoothed trend perspective.
- Analytical Utility: This tool facilitates the examination of exchange-specific pricing variations, which may indicate potential arbitrage opportunities or market disparities.
- Interpretation of the Premium: A positive Coinbase premium, indicating that Bitcoin trades at a higher price on Coinbase compared to Binance, often reflects strong buying pressure from U.S.-based investors and institutions. This heightened demand can signal potential upward momentum in Bitcoin's price, as it may precede broader market rallies driven by increased institutional interest and optimistic sentiment. Conversely, a negative premium suggests weaker U.S. demand or selling pressure, which could contribute to downward price movements.
- Compatibility with Other Cryptocurrencies: The script is designed to function with all cryptocurrencies that have a USD trading pair on Coinbase and a USDT pair on Binance. It delivers the highest proven signal strength for Bitcoin, where the premium has historically served as a reliable indicator of price direction. The indicator has also demonstrated effectiveness for other assets, such as Ethereum, where a positive premium similarly signals robust U.S. demand and potential bullish momentum. It can be applied to coins like Solana as well, though signal reliability may vary depending on market dynamics and institutional participation.
Pine Script® インジケーター






















