INVITE-ONLY SCRIPT
Perpetual swaps basis

What
This is a perpetual swaps basis that works for both BTC and ETH (check settings).
A perpetual swaps basis, or 'perps basis' for short, looks at the price of a perpetual swap contract and compares it to a spot index. The point of the indicator is to see whether the perps market or spot market is trading higher/lower.
Indicator values will be positive when perps are trading higher than spot.
Indicator values will be negative when perps are trading lower than spot.
Analysis
Generally speaking a spot bid is considered bullish because it's a more accurate representation of real demand. When perps are trading higher it's usually because directional traders are aggressively going long which is dangerous/bearish because this is leveraged money that can easily get shaken out. It could also be that perps are trading higher because spot is selling off hard, but this is also bearish so the result the same.
Summary: most of the time a perps premium is bearish, and a spot premium is bullish.
I would never trade based on 'signals' of this indicator alone, but it does offer valuable confluence in your market analysis.
Data
In the settings you can either select the individual basis for each perp contract of the three biggest derivatives venues (Binance, Bybit, OKX) or you can select my custom global basis.
For the individual basis I've recreated to the best of my ability the official spot indices that these exchanges use and compared those to the perp contracts.
For the custom global basis I've made my own weighted perps price index and spot price index and then compared these indices to each other to get a more global overview of how perps are trading versus spot.
The perps index includes the following contracts: Binance linear USDT, Binance inverse USD, Bybit linear USDT, Bybit inverse USD, OKX linear USDT, OKX inverse USD.
The spot index includes the following markets: Binance USDT, OKX USDT, Bybit USDT, Coinbase USD, Kraken USD, Bitfinex USD, Bitstamp USD.
Extra notes
I will update all of the indices when necessary.
Some of the basis' will look weird on certain timeframes if you go far back enough in the past. This is because the OKX USDT spot market data used to be bugged in a weird way on TradingView and this is an important market that I just had to include. So past data that includes this market will look very erratic. This is only a problem for past data, it currently works fine, so current data is correct.
招待専用スクリプト
このスクリプトは作者が承認したユーザーのみアクセス可能です。使用するにはアクセス申請をして許可を得る必要があります。通常は支払い後に承認されます。詳細は下記の作者の指示に従うか、ByzantiumScriptsに直接お問い合わせください。
このプライベートの招待専用スクリプトはモデレーターによる審査を受けておらず、ハウスルールへの準拠状況は未確認です。 TradingViewは、作者を完全に信頼し、スクリプトの動作を理解していない限り、有料スクリプトの購入・使用を推奨しません。コミュニティスクリプトには無料のオープンソースの代替が多数あります。
作者の指示
For access send me an email: TheByzantineGeneral@gmail.com
More info about my indicators you can find here: https://www.byzgeneral.com/indicators
Send me a private message for access to my invite only indicators.
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。
招待専用スクリプト
このスクリプトは作者が承認したユーザーのみアクセス可能です。使用するにはアクセス申請をして許可を得る必要があります。通常は支払い後に承認されます。詳細は下記の作者の指示に従うか、ByzantiumScriptsに直接お問い合わせください。
このプライベートの招待専用スクリプトはモデレーターによる審査を受けておらず、ハウスルールへの準拠状況は未確認です。 TradingViewは、作者を完全に信頼し、スクリプトの動作を理解していない限り、有料スクリプトの購入・使用を推奨しません。コミュニティスクリプトには無料のオープンソースの代替が多数あります。
作者の指示
For access send me an email: TheByzantineGeneral@gmail.com
More info about my indicators you can find here: https://www.byzgeneral.com/indicators
Send me a private message for access to my invite only indicators.
免責事項
この情報および投稿は、TradingViewが提供または推奨する金融、投資、トレード、その他のアドバイスや推奨を意図するものではなく、それらを構成するものでもありません。詳細は利用規約をご覧ください。