BTC Perp-Spot PremiumBTC Perp‑Spot Premium w/ EMA Cross
This indicator measures the premium or discount between BTC spot prices and perpetual futures across major exchanges. It visualizes real-time sentiment in the derivatives market and identifies potential inflection points by comparing the behavior of spot traders (real demand) and perp traders (speculative positioning).
What It Does
Calculates the premium spread
Shows the percentage difference between perp and spot prices as a color-coded histogram. Blue bars indicate perps trading above spot (aggressive longs), while red bars suggest perps below spot (risk-off or bearish positioning).
7-exchange composite data feed
Uses a robust average of six perpetual futures sources and seven spot market sources across Binance, Bybit, OKX, Coinbase, Bitfinex, Kraken, and Bitstamp for a balanced and high-fidelity view.
EMA crossover signals
Includes a customizable EMA and MA of the premium. Crossovers are visualized with subtle circle markers to signal sentiment shifts—blue for EMA crossing above, red for crossing below.
Zero baseline
A horizontal line at zero makes it easy to identify when perps flip from premium to discount territory and vice versa.
Dynamic stats table
Displays live values for the perp average, spot average, and premium % in a neatly formatted corner table.
Why It's Useful
This tool helps traders:
Monitor market sentiment and speculative aggression
Spot inefficiencies between derivatives and spot markets
Identify early reversal or continuation signals
Track potential liquidation zones or trend exhaustion
Confirm breakouts with perp/spot alignment
Whether you're trading short-term momentum or watching for mean-reverting setups, this premium analysis tool brings deeper context to BTC price action directly on your chart.
Perpetualswap
Bitmex BTC Perpetual Premium and FundingThis script tracks the premium (default red line) and the funding rate (default yellow area) of the Bitmex XBTUSD pair perpetual contract.
The calculations are based on the 8H TWAP of interest rates and premium index from Bitmex.
Spot Opposition [Auto+Overlay] [Intromoto]This script shows when the candle closes are in opposition, respective of the asset observed and it's perpetual futures. This script is specific to Binance, and will defaults to Binance:BTCUSDT to Binance:BTCUSDTPERP if not actively observing a binance perpetual chart.
Essentially, if you have spot "positive opposition" you should be more likely for price to increase, as the underlying asset is increasing relative faster, per that individual candle, than the perpetual future. However, since perpetuals are often used for hedging, when derivatives overpower and influence the direction of price, a positive opposition at an all time high, or market structure high can lead to a sell off, as derivatives will be hedging against the spot prices increase. This script is experimental.
Check for updates as the script will need to be updated for newer assets to be included in the scripts references.
Users are able to change the candle close resolution for the plotshapes to references.
DM for access.
Thanks
Ethereum Perpetual SwapsThis script track most important Ethereum Perpetual Swaps vs Spot basis
When strong green color emerge implies that Swaps are trading at premium to spot.
When strong red color emerge implies that Swaps are trading at discount to spot.
These information is useful because it give leading information towards where funding rates are heading.
When trading at premium it will push towards Positive Funding Rates (Longs pay Shorts)
When trading at discount it will push towards Negative Funding Rates (Shorts pay Longs)
It's can also be used to give identify potential local tops or bots when values get too extreme.
Bitcoin Perpetual SwapsThis script track most important Bitcoin Perpetual Swaps vs SPOT (Coinbase).
When strong green color emerge implies that Swaps are trading at premium to spot.
When strong red color emerge implies that Swaps are trading at discount to spot.
These information is useful because it give leading information towards where funding rates are heading.
When trading at premium it will push towards Positive Funding Rates (Longs pay Shorts)
When trading at discount it will push towards Negative Funding Rates (Shorts pay Longs)
It's can also be used to give identify potential local tops or bots when values get too extreme.
BTC Multi Exchange Perpetual PremiumThis script tracks the premium/discount of Bitcoin perpetual contracts at various exchanges.
The premium/discount is calculated against an index price. The index price is calculated from spot exchange prices and are weighted as follows:
Bitstamp:28,81%
Bittrex:5,5%
Coinbase: 38,07%
Gemini: 7,34%
Kraken: 20,28
The difference between this script and other available scripts, is that exciting script seems to only focus on one exchange. This script is also open source.
Bitmex BTC Perpetual PremiumThis script tracks the premium of the Bitcoin Perpetual futures at Bimex exchange relative to 3 different reference prices.
The difference between this script and already published scripts is that it tracks the premium relative to 3 different reference prices. This tends to produce slightly different results.
This script is also open source, so you can verify the calculations, or use it as a basis for your own script.
The 3 plots uses the following reference prices:
Blue Area:
Bitmex Index price, ticker: BITMEX:XBT
Red line:
Bitmex Perpetual Premium, ticker XBTUSDPI
(This one is not used as reference, but simply plots the ticker*100)
Orange line:
The reference here is a price calculated by the tickers in trading view based on the Bitmex indices with weighing as follows:
Bitstamp:28,81%
Bittrex:5,5%
Coinbase: 38,07%
Gemini: 7,34%
Kraken: 20,28
Please note that Bitmex changes the bases of its indices regularly. Bitmex might also "rule out" on of these exchanges if there is a short term problem.
FTX vs BitMex BTC Perp PremiumThis script compares FTX BTC/PERP (BTC perpetual futures contract) price to Binance BTC/USDT spot and colors it red. It also plots Bitmex's BTC perpetual futures compared to Binance spot and colors it blue.
FTX = red
Bitmex = blue
Now you can easily see that you can get a 1% discount on FTX perpetuals when it is tanking. This tells you that you can set your limit buy orders extra low if you like to catch crashes. Also, you can see what your average trader on each platform is willing to pay above or below the spot premium. In general you want to do the opposite of what the average trading is doing on these exchanges unless you're in the main bull or mania phase of the Bitcoin cycle.
If you want to use Bitstamp or your favorite exchange it can be changed in the settings. Let me know if you find any settings that work well for you.
May you profit and enjoy! :)
Bitmex Premiums Index Histogram [AzureKn1ght]This my version of the Bitmex Premiums Index indicator.
It is based on the actual index, so it is a bit more accurate than the other scripts out there.
Comes with customizable alerts for Overbought and Oversold zones.
Enjoy. :)
Futures/Perpetuals DeltaBackwardation/Contango of OKEX, HUOBI, BITMEX, DERIBIT futures compared to XBTUSD.
Results indicate that backwardation can mark bottoms in price action.
BitMEX Funding and Premium Index [NeoButane]This is a simplified version of the funding toolbox with only final funding and the premium index. As you can see, Ethereum funding makes zero sense.
BitMEX ETHUSD Perpetual Quanto Swap Predictive FundingThis script shows actual and predicted funding levels for the BitMEX ETHUSD perpetual swap.
It gives exact results when using 1 minute candles, or after leaving any timescale chart open for several hours to collect the new data points. In all other situations it lacks fine precision.
BitMEX XBTUSD Perpetual Swap Predictive FundingThis script shows actual and predicted funding levels for the BitMEX XBTUSD perpetual swap.
It gives exact results when using 1 minute candles, or after leaving any timescale chart open for several hours to collect the new data points. In all other situations it lacks fine precision.