# Updated BTC Cycle Targets and Dates

Long
BNC:BLX   BraveNewCoin Liquid Index for Bitcoin
1408 views
In this chart I have used logarithmic regression to identify cycle tops and bottoms in BTC . Using the hypothesis of lengthening cycles, I have 3 price targets for a cycle top in mid-to-late 2022. With the current weighting of my regression, it shows that BTC is undervalued right now, with the fair value shown using a blue line.

Great work.
kxa5111
Hey there, great work and thanks so much for putting it out there! Any possibility you could share the logarithmic regression script with me?
Kind regards

study("Logarithmic Regression (Weekly)", overlay=true)
x = bar_index

lower1 = exp( (-17.597-1.5*0.136) + 4.191*log(x) )
lower = exp( (-17.4597) + 4.191*log(x) ) // slightly changed slope coincides with 200 MA weekly
lower2 = exp( (-17.597+3*0.136) + 4.191*log(x) )

upper1 = exp( (-9.4829-1.2*0.275348) + 3.1838*log(x) )
upper = exp( (-9.4829) + 3.1838*log(x) )
upper2 = exp( (-9.4829+1.2*0.275348) + 3.1838*log(x) )

fair = exp( ((-17.597) + 4.191*log(x))*.58 + ((-9.4829) + 3.1838*log(x))*.42 ) //BEST

l1 = plot(lower1, color=color.green)
L = plot(lower, color=color.teal)
l2 = plot(lower2, color=color.green)
intrinsic = plot(fair)
u1 = plot(upper1, color=color.red)
U = plot(upper, color=color.maroon)
u2 = plot(upper2, color=color.red)

fill(intrinsic, l2, color=color.blue)
fill(l2, l1, color=color.green, transp=80)
fill(u1, u2, color=color.red, transp=80)
memotyka9009
@memotyka9009, hi i tried creating this script altho im getting some errors, do you have any idea whats wrong
Processing script...
Error: Undeclared identifier `bar_index`;
Error: Undeclared identifier `x`;
Error: Undeclared identifier `x`;
Error: Undeclared identifier `x`;
Error: Undeclared identifier `x`;
Error: Undeclared identifier `x`;
Error: Undeclared identifier `x`;
Error: Undeclared identifier `x`;
Error: Undeclared identifier `x`;
Error: Undeclared identifier `lower1`;
Error: Undeclared identifier `color.green`;
Error: Undeclared identifier `lower`;
Error: Undeclared identifier `color.teal`;
Error: Undeclared identifier `lower2`;
Error: Undeclared identifier `color.green`;
Error: Undeclared identifier `fair`;
Error: Undeclared identifier `upper1`;
Error: Undeclared identifier `color.red`;
Error: Undeclared identifier `upper`;
Error: Undeclared identifier `color.maroon`;
Error: Undeclared identifier `upper2`;
Error: Undeclared identifier `color.red`;
Error: Undeclared identifier `color.blue`;
Error: Undeclared identifier `color.green`;
Error: Undeclared identifier `color.red`