TradingView
Intromoto
27 mai 2022 21:23

BTC Weighted Agg. Basis [Overlay] [Moto] 

Bitcoin / TetherUS PERPETUAL CONTRACTBinance

Description

Hello traders,

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

Notes de version

Fixed to Oscillator script.

Notes de version

Reverted to plotshape version
Plus