PROTECTED SOURCE SCRIPT

XBT Contango Calculator v3

By SchamBTC
Updated
Since creating the first version of the XBT Contango Calculator, I found that the first version is good a calculating contango and backwardation in real time, however does not do a good job of capturing historical data of brief moves. Since backwardation moves are often brief, and since the first version Contango Calc was based on candlestick closes, it did not do a good job of recording the move after it occurred.

It took me a couple versions to try and fix this an eventually settled on version 3 which I have been using on my own for the last few months. You can see in the comparison chart above it does a much better job of capturing backwardation moves and extreme contango. Below is a comparison of how it performed vs. Version 1 during December futures XBTZ19

snapshot

In addition I have added high/low lines that can be used to understand the amount that futures premium/discount has moved in a specific time frame. For example, the big drop Bitcoin had on September 24th, XBTZ19 went from +$273 contango to -$247 backwardation = $520 move! This move was in addition to the spot price move which was almost -$1,700 from high to low and -$1,100 from open to close. See below:

snapshot

The high/low lines can also be removed from the chart by unchecking a box in the input tab.

The last update is the ability to lock the spot price to be XBT (index) no matter what chart you pull up. This can be useful if evaluation XBT futures correlation to other bitcoin derivatives such as GBTC or CME futures. You can also disable this feature in the input tab, which will then just calculate based on the current chart you are viewing.

Current Contracts (December 2019)
Blue = XBTM20
Orange = XBTH20
Release Notes
Update to add XBTU20 - September Futures
Release Notes
minor update
Release Notes
Updated for December futures XBTZ20
backwardationBitcoin (Cryptocurrency)bitmexBTCBTCUSDcontangofuturesOscillatorsTrend AnalysisVolatilityXBTH20XBTUSD
SchamBTC
Feel free to reach out to me @SchamBTC on Twitter or Telegram.
If you like my work you can show your support buy sending a donation to the following BTC address: 3CypEdvBcvVHbqzHUt1FDiUG53U7pYWviV

Protected script

This script is published closed-source and you may privately use it freely.

Want to use this script on a chart?

Disclaimer