FULL TRADINGVIEW INDICATOR CODE BELOW
The REAL origin of the Bitcoin Power Law model, back in 2013:
A user called dacoinminster on Bitcointalkforum, back in 2013, wrote about the Bitcoin Power Law, he used data up to 2013 and his powerlaw, which I will be calling, Dacoinminster Powerlaw from now on, is spot on up to this day. It has sustained 13 years of price fluctuations and is still Holding perfectly and as Relevant as ever.
So I decided to create a Tradingview indicator for all , I will be sharing this here for FREE with you so you can ensure the maths is correct and there is full TRANSPARENCY in the code.
Instructions to run and save the code in Tradingview:
1. Open TradingView → click Pine Editor (bottom)
2. Delete all default code
3. Copy and Paste the script precisely
4. Click Save → Name it → click Add to Chart
The full transparent code :
//
@version
=5
indicator("Dacoinminster 2013 Powerlaw - dacoinminster 2013", overlay=true)
a = (time - timestamp("UTC", 2009, 1, 3, 0, 0)) / (1000 * 60 * 60 * 24)
b = a > 1 ? 4.41877086088824e-17 * math.pow(a, 5.59806919936792) : na
plot(b, linewidth=2)
The code works on Bitcoin chart only, of course, on any timeframe, but I suggest you use the Weekly/Monthly to zoom out and use the Log scale to better appreciate the precision of this formula.
Let me know what you think about this indicator and feel free to ask anything.
More information about this Dacoinminster powerlaw can be found in my pinned post.