math.acos

The arccosine of angle, in radians. It is defined for a value from -1 to 1.

math.acos(const float angle) → const float
math.acos(input float angle) → input float
math.acos(series float angle) → series float
math.acos(simple float angle) → simple float
ParameterTypeRequiredDescription
angleconst floatyesA cosine value from -1 to 1. 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("Arccosine")
plot(math.acos(0.5))

See also math.abs · math.asin · math.atan

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