OPEN-SOURCE SCRIPT

BTC Multi Exchange Perpetual Premium

Aktualisiert
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.
Versionshinweise
Fixed an error showing using spot instead of perpetual price.
Versionshinweise
Fixed a calculation error.
Versionshinweise
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.
Versionshinweise
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.
Versionshinweise
Updated Bitmex Indices
Versionshinweise
Fixed calculation error
Versionshinweise
Updated Bitmex indices. Also, added Coinbase BTCUSD as a choice for reference price.
Versionshinweise
Updated OKX ticker in script
Updated Bitmex indices
Versionshinweise
Updated BitMEX Indices
Versionshinweise
Updated Bitmex indices (incl removal of FTX from indices)
Versionshinweise
Removed FTX
Versionshinweise
- Fixed some bugs
- Updated Bitumen Indices
- Added Coinbase to plot
Versionshinweise
Updated Bitmex Indices.

Updated to Pine v6
Bitcoin (Cryptocurrency)bitcoinforecastbitcoinpriceBTCBTCUSDBTCUSDTOscillatorsperpetualperpetualswappremium

Open-source Skript

Ganz im Sinne von TradingView hat dieser Autor sein/ihr Script als Open-Source veröffentlicht. Auf diese Weise können nun das Script auch andere Trader verstehen und prüfen. Vielen Dank an den Autor! Sie können das Script kostenlos verwenden. Die Nutzung dieses Codes in einer Veröffentlichung wird in unseren Hausregeln reguliert. Sie können es als Favoriten auswählen, um es in einem Chart zu verwenden.

Möchten Sie dieses Skript auf einem Chart verwenden?

Haftungsausschluss