Math / Reference
alerta.math.cos
TradingView-compatible spelling: math.cos, runs without warnings
Trigonometric cosine of x (radians).
alerta.math.cos(x) → series floatParameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
x | series float | Yes | — | Angle in radians. |
Returns
series floatExample
alerta.math.cos
v = cos(close)plot(v, { pane: "oscillator" })Names and aliases
Guides and navigation are localized. Built-in reference descriptions and code examples are maintained in English.