UnknownUnicorn2188849

Futures Basis

Futures basis.

Compares BTC futures to a spot index and shows the difference as a percentage.
By default quarterly futures are used, which you'll manually have to update (type new ticker) when the roll happens.
However I'll probably do it myself every time they settle.

You could also use this for futures of a different coin like ETH for example, but then you'll have to change the index which you can do in the settings.

You can also turn on an average calculation of all the futures selected.

Made for friends.
Release Notes:
Title update.
Release Notes:
Couple changes.

You can now exclude certain markets in the input settings.
The average futures basis will now calculate the average only of the markets selected (so it adapts if you exclude markets).

If you want a market to be part of the calculation but you don't want to the line, just turn it off in the style settings (keep it on in the input settings).

Shout-out to @dogepgp for helping me with this.
Release Notes:
Smol convenience update.

It's easier now to switch between all markets and only the average futures basis.
Release Notes:
Okex already rolled over automatically so I updated all the contracts to the next expiry September.
Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact UnknownUnicorn2188849 for more information, or follow the author's instructions below.

TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases you can find a good open-source alternative for free in our Community Scripts.

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.

Author's instructions

The author of this script can no longer grant access to it. Please don't request access.

Want to use this script on a chart?

Warning: please read before requesting access.