Here is my interpretation of the "Best Time To Buy" Bitcoin over its lifetime using a logarithmic regression trendline. The upper and lower lines are 10% deviations from the centre line. I calculated the trendline in excel and then coded my results into pine script.
// Days X-Axis Value
chartStartDate = time
anchorDate = timestamp(2009,1,1,0,0) // Anchor date
days = request.security(syminfo.tickerid, "D", ta.barssince(time == chartStartDate))
offset = math.floor((chartStartDate-anchorDate)/(24 * 60 * 60 * 1000))
d = days + offset
//Logarithmic Equations