OPEN-SOURCE SCRIPT
已更新 BTC Multi Exchange Perpetual Premium

This script tracks the premium/discount of Bitcoin perpetual contracts at various exchanges.
The premium/discount is calculated against an index price. The index price is calculated from spot exchange prices and are weighted as follows:
Bitstamp:28,81%
Bittrex:5,5%
Coinbase: 38,07%
Gemini: 7,34%
Kraken: 20,28
The difference between this script and other available scripts, is that exciting script seems to only focus on one exchange. This script is also open source.
The premium/discount is calculated against an index price. The index price is calculated from spot exchange prices and are weighted as follows:
Bitstamp:28,81%
Bittrex:5,5%
Coinbase: 38,07%
Gemini: 7,34%
Kraken: 20,28
The difference between this script and other available scripts, is that exciting script seems to only focus on one exchange. This script is also open source.
發行說明
Fixed an error showing using spot instead of perpetual price.發行說明
Fixed a calculation error.發行說明
Added a few more exchanges.Added the possibility to select the reference price. Choises are Bitmex Indices (as used in previous script) and Tradingviews index. Default is the TradingView index.
發行說明
Added choice to include OKEX and Houbi exhcanges. These exchanges are on different timezones and produces irratic results on higher timeframes (12 hr and up?). These exchanges are left out by default, but can be included on lower timeframes.Also Bitmex indices are updated (still default to Tradingviews index as reference.
發行說明
Updated Bitmex Indices發行說明
Fixed calculation error發行說明
Updated Bitmex indices. Also, added Coinbase BTCUSD as a choice for reference price.發行說明
Updated OKX ticker in scriptUpdated Bitmex indices
發行說明
Updated BitMEX Indices發行說明
Updated Bitmex indices (incl removal of FTX from indices)發行說明
Removed FTX發行說明
- Fixed some bugs- Updated Bitumen Indices
- Added Coinbase to plot
發行說明
Updated Bitmex Indices.Updated to Pine v6
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。