ADA Gravity Oscillator
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © nickolassteel

//@version=5
indicator(title='ADA Gravity Oscillator', format=format.price, precision=1)


//Variables
ADA = request.security('KRAKEN:ADAUSD', 'W', close)


//COG
ADAcog = ((ta.cog(ADA, 20))+ 13.1) * (10 / 7.3)
fx = math.pow(math.e, -1 * ((bar_index - 100)* 0.01)) + 9.5
ADAadj = (ADAcog / fx) * 10

//Graph
c_grad = color.from_gradient(ADAadj, 0, 10, color.rgb(0, 500, 0, 25), color.rgb(500, 0, 0, 0))
plot(ADAadj, linewidth=2, color=c_grad)
hline(5)


