Docs

math.e

Use the constant e in a formula.

itm
math.e()

The constant e, 2.718281828459045. A call for the same reason as math.pi(). math.exp(1) is the same number.

Parameters

None.

Output

NameType
valuenumber

Warm-up and missing values

Warm-up
None.
Missing values
Total: a constant, never na.

Example

itm
math.e()
itm
plot(math.pow(math.e(), ta.logret(close, 1)), "Growth factor")