Lev Umanov Sin Equation
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © LJBunyan

//@version=5
indicator(title = "Lev Umanov Sin Equation", shorttitle = "LUSE", overlay = true)

// This indicator has been coded from the calculations made by Lev Umanov

// Days X-Axis Value

start = time == timestamp(2010,7,19,0,0) // First BLX Bitcoin Date
days = request.security(syminfo.tickerid, "D", ta.barssince(start))
offset = 561 // days between 2009/1/1 and "start" 561 - 579
d = days + offset

// Logarithmic Growth Curve
// Center logarithmic trendline
a1 = input(-16, 'Regression"a1"')
b1 = input(5.526, 'Regression"b1"')
e1 = a1 + (b1 * math.log10(d))
y1 = 2 * math.pow(10, e1)

// Sin Equation
m1 = math.sqrt(math.sqrt(d))
m2 = (2.983 * m1) - 0.57
m3 = math.sin(m2)
m4 = math.abs(m3) - 1
m5 = math.pow(m4, 2)
m6 = (2 * m5)-1

// Raised Equation
m7 = math.pow(10, math.pow(0.9998, d) * m6)
m8 = y1 * m7

// Not yet working
m9 = (2 * math.pow(math.abs(math.sin(((2.983 * math.sqrt(math.sqrt(d)))-0.57))-1), 2) - 1)

// Plot

plot(m8)