Skip to content

charton API


charton API / @chart-on/ta / ema

Function: ema() ​

ema(values, length, out?): Float64Array

Defined in: average.ts:41

Exponential moving average with smoothing 2 / (length + 1), seeded by the simple average of the first length values. Lookback length - 1. A NaN input gives NaN and the average warms up again after it.

Parameters ​

values ​

Series

length ​

number

out? ​

Float64Array<ArrayBufferLike>

Returns ​

Float64Array