Skip to content

charton API


charton API / @chart-on/ta / hma

Function: hma() ​

hma(values, length, out?): Float64Array

Defined in: smoothing.ts:13

Hull moving average: a wma over floor(sqrt(length)) bars of 2 * wma(length / 2) - wma(length), which cuts most of the lag. Lookback length + floor(sqrt(length)) - 2.

Parameters ​

values ​

Series

length ​

number

out? ​

Float64Array<ArrayBufferLike>

Returns ​

Float64Array