Skip to content
Algo Trade Analytics Docs

math.atan() - Pine Script Function

The atan function returns the arctangent (in radians) of number such that tan(atan(y)) = y for any y.

math.atan(angle) → const float
NameTypeDescription
angleconst int/floatThe value
inradians
touse in the calculation.

The arc tangent of a value; the returned angle is in the range [-Pi/2, Pi/2].