egils75

Bitmex BTC Perpetual Premium

egils75 Actualizado   
This script tracks the premium of the Bitcoin Perpetual futures at Bimex exchange relative to 3 different reference prices.

The difference between this script and already published scripts is that it tracks the premium relative to 3 different reference prices. This tends to produce slightly different results.

This script is also open source, so you can verify the calculations, or use it as a basis for your own script.

The 3 plots uses the following reference prices:

Blue Area:
Bitmex Index price, ticker: BITMEX:XBT

Red line:
Bitmex Perpetual Premium, ticker XBTUSDPI
(This one is not used as reference, but simply plots the ticker*100)

Orange line:
The reference here is a price calculated by the tickers in trading view based on the Bitmex indices with weighing as follows:

Bitstamp:28,81%
Bittrex:5,5%
Coinbase: 38,07%
Gemini: 7,34%
Kraken: 20,28

Please note that Bitmex changes the bases of its indices regularly. Bitmex might also "rule out" on of these exchanges if there is a short term problem.
Notas de prensa:
Fixed a calculation error. The different plots are now on the same scale.
Notas de prensa:
2 Changes:

Added Tradingview Bitcoin Index as reference price (Default to yellow line)

Bitmex indices updated as of 26.Mars 2021 (Affects the default orange line including its history)
Notas de prensa:
Corrected small error in indices.
Notas de prensa:
Updated with BitMEX Indices as per 25.06.2021:
Binance US: 3,31%
Bitstamp: 12,31%
Coinbase: 47,83%
FTX: 17,51%
Gemini: 5,14%
Kraken: 13,9%
Notas de prensa:
Updated Bitmex indices (Bitmex Price Index)
Notas de prensa:
Updated Bitmex Indices.
Notas de prensa:
Updated BitMEX Indices
Notas de prensa:
Updated bitmex indices (FTX removed from indices)
Script de código abierto

Siguiendo el verdadero espíritu de TradingView, el autor de este script lo ha publicado en código abierto, para que los traders puedan entenderlo y verificarlo. ¡Un hurra por el autor! Puede utilizarlo de forma gratuita, aunque si vuelve a utilizar este código en una publicación, debe cumplir con lo establecido en las Normas internas. Puede añadir este script a sus favoritos y usarlo en un gráfico.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.

¿Quiere utilizar este script en un gráfico?