This script shows the exchange volume-weighted aggregate basis for Bitcoin.
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.
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.