egils75

BTC Multi Exchange Perpetual Premium

egils75 Uppdaterad   
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.
Versionsinformation:
Fixed an error showing using spot instead of perpetual price.
Versionsinformation:
Fixed a calculation error.
Versionsinformation:
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.
Versionsinformation:
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.
Versionsinformation:
Updated Bitmex Indices
Versionsinformation:
Fixed calculation error
Versionsinformation:
Updated Bitmex indices. Also, added Coinbase BTCUSD as a choice for reference price.
Versionsinformation:
Updated OKX ticker in script
Updated Bitmex indices
Versionsinformation:
Updated BitMEX Indices
Versionsinformation:
Updated Bitmex indices (incl removal of FTX from indices)
Versionsinformation:
Removed FTX
Versionsinformation:
- Fixed some bugs
- Updated Bitumen Indices
- Added Coinbase to plot
Skript med en öppen källkod

I sann TradingView-anda har författaren publicerat detta skript med öppen källkod så att andra handlare kan förstå och verifiera det. Hatten av för författaren! Du kan använda det gratis men återanvändning av den här koden i en publikation regleras av våra ordningsregler. Du kan ange den som favorit för att använda den i ett diagram.

Frånsägelse av ansvar

Informationen och publikationerna är inte avsedda att vara, och utgör inte heller finansiella, investerings-, handels- eller andra typer av råd eller rekommendationer som tillhandahålls eller stöds av TradingView. Läs mer i Användarvillkoren.

Vill du använda det här skriptet i ett diagram?