# Proxy for a trigonometric angle function [closed]

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

• What are you trying to measure? Commented Nov 19, 2012 at 15:46
• @chrisaycock Time based financial calculation that requires a slope calculation are suspect. I'm looking for a stable/robust representation for the slope component of the slope-intercept form. Angle calculations using market data are nefarious to work with, as market compression rescales nonlinear. I'm working with the Hurst exponent, it utilizes the slope-intercept form to characterize the market. Commented Nov 19, 2012 at 17:48
• @chrisaycock I need a function that will capture the estimation of the Hurst exponent without using the linear regression slope calculation. Commented Nov 19, 2012 at 22:44