@kaiord/core / exponentialMovingAverage
Function: exponentialMovingAverage()
exponentialMovingAverage(
points,options):EmaResult[]
Defined in: packages/core/src/application/energy/ema.ts:60
Compute the running EMA of a dated series (ascending by date). Returns a same-length series of { date, ema }; the first ema equals the first value.
Parameters
points
readonly EmaPoint[]
options
Returns
Throws
RangeError when windowDays is not positive and finite, or when any point value is non-finite.