Docs

math.sin

Take the sine of an angle given in radians.

itm
math.sin(x)

Sine of an angle in radians. Use math.toradians to convert degrees first.

Parameters

A series parameter takes a value on every bar. A constant parameter must be known before the first bar, such as a number or an input.

NameKindTypeDefaultRangeDescription
xSeriesnumber--The value to transform.

Output

NameType
valuenumber

Warm-up and missing values

Warm-up
None.
Missing values
na in, na out. A result outside the finite range is a calculation error.

Example

itm
math.sin(close)
itm
plot(math.sin(math.toradians(ta.rsi(close, 14))), "Sine")