ByzantiumScripts

Ethereum Perpetual Swaps Basis

This is a simplified version of my Aggregated Perpetual Swaps Basis script.
Click the image to see more details on that indicator.

This version works only for ethereum (the older script works for BTC and ETH) and a bunch of code has been trimmed down.
The purpose of this is to make the indicator a lot faster.

When I published the old one I noticed that it always took a long time to load which is incredibly frustrating to me.
I guess I propped too much stuff in one indicator.
So that's why I'm basically cutting it up into two, more code efficient pieces, but it does the same thing.
People who have access to the old indicator will also get access to this one.

Here's a list of contracts that I used to make the perps and spot indices.
These will be updated if needed (in case an exchange loses relevancy for example).

Perps:
  • Binance USDT margin
  • Binance coin margin
  • Bybit USDT margin
  • Bybit coin margin
  • FTX perp

Spot:
  • Coinbase USD
  • Bitfinex USD
  • FTX USD
  • Binance USDT
Release Notes:
Updated weighting and components of the indices.

Removed the smoothing option because it's redundant, everything that makes the indi load faster is good.
Release Notes:
FTX shut down so I replaced that data with Binance BUSD markets.

I also changed the weighting so that more actively traded markets have a bigger impact on the basis calculation.
Release Notes:
Big update under the hood.
I adjusted all the indices and calculations so that it more accurately reflects the official index premiums that the exchanges use.
I also added an option to look at individual exchange premiums, but by default it'll show the global average premium.

I also inverted the colours because it made more sense that positive values are green I thought.

Send me a private message for access to my invite only indicators.
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 ByzantiumScripts 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

Send me a private message if you want access.

Want to use this script on a chart?

Warning: please read before requesting access.