hma

forge.tafunctionSince Forge API 1
Functionpython
forge.ta.hma(source: ArrayLike, period: int = 16) -> np.ndarray

Hull average: wma(2 * wma(x, half) - wma(x, period), root).

Parameters

NameTypeDefault
sourceArrayLike
periodint16

Indicator: Hull moving average

half = floor(period / 2 + 0.5) and root = floor(sqrt(period) + 0.5): halves round up.

Classpython
forge.ta.HMA(**inputs: Any) -> None

Fast, smooth average built from two weighted averages.

Inputs

NameTypeDefaultRange
sourcesourceclose
periodint162 to 5000

half = floor(period / 2 + 0.5), root = floor(sqrt(period) + 0.5)

HMA = WMA(2 * WMA(x, half) - WMA(x, period), root)