math.log10
Take the base 10 logarithm of a series.
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.
| Name | Kind | Type | Default | Range | Description |
|---|---|---|---|---|---|
x | Series | number | - | - | The value to transform. |
Output
| Name | Type |
|---|---|
value | number |
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
math.log10(close)plot(math.log10(close), "Log10 price")