I am trying to convert an indicator that I use in TradeStation that uses the LinearRegAngle function, which is really just the ArcTangent of the slope of the LinearReg. The issue is that TS's ArcTangent() function returns degrees and Amibrokers Atan() function returns radians. I have searched everywhere on the forum and also online with no luck. I've got it lined up to the point of the slope, but the last step of converting that to an angle in degrees is elusive.
Do the conversion yourself, 180 degrees is equal to PI radians
angle_in_degrees = 180 * angle_in_radians / 3.1415926; angle_in_radians = 3.1415926 * angle_in_degrees / 180;