math.atan

The arctangent of angle, in radians. It is defined for every number.

math.atan(const float angle) → const float
math.atan(input float angle) → input float
math.atan(series float angle) → series float
math.atan(simple float angle) → simple float
ParameterTypeRequiredDescription
angleconst floatyesA tangent value. The contract spells this argument angle, though here the angle is the result rather than the value you pass.

Returns const float or input float or series float or simple float — The angle in radians, as a float in the argument’s form.

indicator("Arctangent")
plot(math.atan(1.0))

See also math.abs · math.acos · math.asin

Part of the function index.

Ready to put this into practice?
Try GoCharting Premium
Unlock advanced orderflow, market profile, options desk, and real-time data — everything you just read about, live in your charts.
Upgrade