OPEN-SOURCE SCRIPT

Bitcoin Production Cost

Updated
Bitcoin's Production Cost

Based on raw data from CBECI.
Follow me to read more about the calculation logic.
Release Notes
Script commentary update.
Release Notes
In-line with CoinShares December 2019 research report, added option to use a lower electricity cost/kWh from Mid-2019.
Release Notes
Updated with January 2020 electricity data.
Release Notes
Updated with May 2020 electricity data from CBECI.org
Now uses 2 week rolling data for finer granularity (while balancing TradingView load time).
Uses 4c/kWh (lower end of CBECI and Coinshares global average Mining electrical cost estimates).
Release Notes
Updated chart visuals
Release Notes
Updated with August 2020 electricity data from CBECI.org
Release Notes
Updated inputs
Release Notes
Updated input data
Release Notes
Updated energy data
Release Notes
Updated energy data
Release Notes
Added optional inflation factor, given the annualized rate of growth of M2 money supply increased from 5.8% annualized to 12.7% annualized after Corona (rough delta being 6.5%).
Release Notes
updated inflation factor
Release Notes
Updated data inputs.
Release Notes
Sourcing
Release Notes
Sourcing update
Release Notes
Updated data
Release Notes
Update to v5 pinescript and update of CBECI raw data inputs.
Release Notes
Updated data inputs
Release Notes
Updated data inputs
Bitcoin (Cryptocurrency)breakevenBTCCOSTCryptocurrencyelectricityminerproductionprofitTrend Analysis

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?

Disclaimer