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提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。