Skip to content

charton API


charton API / @chart-on/ta / wma

Function: wma() ​

wma(values, length, out?): Float64Array

Defined in: average.ts:80

Linearly weighted moving average: the newest value weighs length, the oldest 1. Lookback length - 1. NaN when any value in the window is NaN.

Parameters ​

values ​

Series

length ​

number

out? ​

Float64Array<ArrayBufferLike>

Returns ​

Float64Array