hma
forge.tafunctionSince Forge API 1
Functionpython
forge.ta.hma(source: ArrayLike, period: int = 16) -> np.ndarrayHull average: wma(2 * wma(x, half) - wma(x, period), root).
Parameters
| Name | Type | Default |
|---|---|---|
| source | ArrayLike | |
| period | int | 16 |
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) -> NoneFast, smooth average built from two weighted averages.
Inputs
| Name | Type | Default | Range |
|---|---|---|---|
| source | source | close | |
| period | int | 16 | 2 to 5000 |
half = floor(period / 2 + 0.5), root = floor(sqrt(period) + 0.5)
HMA = WMA(2 * WMA(x, half) - WMA(x, period), root)