OPEN-SOURCE SCRIPT
Updated Bitcoin Binance Sentiment Index

The divergence of the price between the futures and spot markets for perpetual contracts could be a gauge of sentiment on a traded cryptoasset.
Sentiment analysis could be used to improve the the predictive value of technical and fundamental analysis.
The price of the perpetual contract is divided by the spot price for Bitcoin on Binance and two simple moving averages of this ratio are plotted together. For graphical purposes, the ratio between the two prices has been multiplied by 100. The moving averages were chosen arbitrarily and can be changed. Values above 100 mean that the average price of the futures over the last x periods was above the spot price over the same period. Conversely, values below 100 mean that the mean price of the futures over the last x periods was below the spot price over the same period. The indicator has been created for a daily timeframe.
This indicator is clearly intended for educational purposes only and does not constitute investment advice.
If you are interested in updates on this indicator or interested on sentiment analysis, put a like, subscribe or contact me in pm.
BIO
Sentiment analysis could be used to improve the the predictive value of technical and fundamental analysis.
The price of the perpetual contract is divided by the spot price for Bitcoin on Binance and two simple moving averages of this ratio are plotted together. For graphical purposes, the ratio between the two prices has been multiplied by 100. The moving averages were chosen arbitrarily and can be changed. Values above 100 mean that the average price of the futures over the last x periods was above the spot price over the same period. Conversely, values below 100 mean that the mean price of the futures over the last x periods was below the spot price over the same period. The indicator has been created for a daily timeframe.
This indicator is clearly intended for educational purposes only and does not constitute investment advice.
If you are interested in updates on this indicator or interested on sentiment analysis, put a like, subscribe or contact me in pm.
BIO
Release Notes
Indicator now match with the timeframe chosen on the mainchartRelease Notes
The source of the data can no be changed. For example you can now set high instead closeOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.