OPEN-SOURCE SCRIPT
Updated Bitmex BTC Backwardation / Contango

This indicator calculates difference between price of Bitmex's XBTUSD, and Bitmex's two nearest futures.
If the difference is negative, then it is backwardation.
If the difference is positive, then it is contango.
This script will be updated every about 3 months, when the nearest Bitmex future will be expired.
This is an updated script of https://tradingview.sweetlogin.com/script/mkYvSQ5J-Most-short-term-Bitmex-future-contract-Bitmex-perpetual/, with better description.
If the difference is negative, then it is backwardation.
If the difference is positive, then it is contango.
This script will be updated every about 3 months, when the nearest Bitmex future will be expired.
This is an updated script of https://tradingview.sweetlogin.com/script/mkYvSQ5J-Most-short-term-Bitmex-future-contract-Bitmex-perpetual/, with better description.
Release Notes
Adding XBTM20 (June 26, 2020)Release Notes
Removal of expired futures.Release Notes
Removed expired futures & added XBTU20.Release Notes
XBTZ20 UpdateRelease Notes
Add XBTH21Release Notes
Futures update.Release Notes
Futures updateRelease Notes
Futures updateRelease Notes
UpdateRelease Notes
UpdateRelease Notes
Script updateRelease Notes
UpdateRelease Notes
Now this script uses Binance instead of Bitmex.Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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.