OPEN-SOURCE SCRIPT

[SCL] Bitcoin Hashrate Dips (Miner Capitulation)

Updated
Gives long-term buy signals for Bitcoin from dips and recoveries in the hashrate (the "miner capitulation" theory). It has an overlay and a standalone mode and is fully configurable. It uses Williams Lows and ATR instead of moving averages.

Features that might be interesting for Pinescripters:
+ Automatic (as far as is possible currently) adjustment of plots for overlay and standalone display modes.
+ A neat label function for debugging floats
+ Fully commented
+ The debug that I used to overcome problems in developing it is left in
+ Ideas for how to deal with a wildly oscillating and exponentially increasing data source

You need to run this indicator on the Bitcoin daily chart for it to make any sense. The best is a BTC/USD chart with a long history, such as BNC:BLX.
Release Notes
Changed the symbol out for the new one BTC_HASHRATE. Thanks to bkonzman for the tip.
Converted to v5.
Average True Range (ATR)hashpowerhashrateminersminingWilliams Fractal

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Also on:

Disclaimer