You can't calculate an actual/real angle with the sine function with discrete market data.
I need a substitute value for inputs that require an angle value.
If you're only calculating the angle between two adjacent bars, is it possible to use the distance formula as a proxy (x=1)?
Distance between two points:
c = SquareRoot((Xa-Xb)^2 + (Ya-Yb)^2);
c =distance
X=interval (time) = 1
Y=price
Distance between two points