BTC Weighted Agg. Basis [Overlay] [Moto]

This script shows the exchange volume-weighted aggregate basis for Bitcoin. This is the accompanying overlay version of the script which shows plotshapes according to the specified levels of aggregate contango or backwardation.
Exchanges have differing significance to the traded price of BTC and so this script calculates the respective volume and price of the major exchanges to more accurately represent the difference between the markets spot price and the markets perpetual future/swap price.
Spot references:
Coinbase
Bitfinex
Binance
Bitstamp
FTX
OKex
Huobi
Bybit
Perp references:
Bitfinex
Binance
FTX
OKex
Huobi
Bybit
Deribit
There are options in the settings to use either basis point scaling or %, though the color bracketing is set to basis points by default.
Users can change the candle close resolution to see a larger/smaller time frame data set.
An important feature is the ability to filter the barcolor on the chart to filter only for basis increase or decrease depending on the influence of spot buying or selling.
As of publishing, the barcoloring is set to only display when you're on a common BTC spot or BTC perp chart. This is to avoid confusion.
Thanks
Invite-only script
Only users authorized by the author have access to this script, and this usually requires payment. You can add the script to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author — learn more here. For more details, follow the author's instructions below or contact Intromoto directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Warning: please read our guide for invite-only scripts before requesting access.
Follow on Twitter for updates.
One time fee, no subscription
twitter.com/IntroMoto
Disclaimer
Invite-only script
Only users authorized by the author have access to this script, and this usually requires payment. You can add the script to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author — learn more here. For more details, follow the author's instructions below or contact Intromoto directly.
TradingView does NOT recommend paying for or using a script unless you fully trust its author and understand how it works. You may also find free, open-source alternatives in our community scripts.
Author's instructions
Warning: please read our guide for invite-only scripts before requesting access.
Follow on Twitter for updates.
One time fee, no subscription
twitter.com/IntroMoto