PROTECTED SOURCE SCRIPT
Updated

[5F] Bitcoin Hash Rate + Miners revenue

2 499
-═════════════════════════-
📋 Description :
This script display the Bitcoin' Hash Rate and the Miners revenue based on the data provided by Quandl.
Hashrate is displayed in TH/s : trillion hashes per second with an moving average.
Miners revenue is calculated by : (the number of bitcoins mined per day + transaction fees) * market price
The dates of previous halving are also displayed.

🛠 Note :
There is a multiplier on the miners revenue that you can configurate. It's only used to bring the 2 curves closer together for better visibility but the multiplier don't affect the revenue's data.
You can choose between different types of moving average for the hashrate's signal : SMA, EMA, DEMA, TEMA, WMA, VWMA or TMA.
You can show and hide each elements of the indicator

Thanks to all Pinecoders who share their work with the community.
-═════════════════════════-

Release Notes
- Update to Pinescript v6
- Quandl data query update
- New labels for halvings

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.