Skip to content
Algo Trade Analytics Docs

math.cos() - Pine Script Function

The cos function returns the trigonometric cosine of an angle.

math.cos(angle) → const float
NameTypeDescription
angleconst int/floatAngle
inradians.

The trigonometric cosine of an angle.