egils75

Bitmex BTC Perpetual Premium

egils75 已更新   
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.
發布通知:
Fixed a calculation error. The different plots are now on the same scale.
發布通知:
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)
發布通知:
Corrected small error in indices.
發布通知:
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%
發布通知:
Updated Bitmex indices (Bitmex Price Index)
發布通知:
Updated Bitmex Indices.
發布通知:
Updated BitMEX Indices
發布通知:
Updated bitmex indices (FTX removed from indices)
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?