Docs

math.log10

Take the base 10 logarithm of a series.

itm
math.log10(x)

Base-10 logarithm. na for arguments at or below zero, the same domain rule as math.log.

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.log10(close)
itm
plot(math.log10(close), "Log10 price")