hma
Hull moving average
Reference/Moving averages/Function
hma(source, length)
Weighted combination designed for less lag than WMA. Short form `hma(9)` uses close.
Parameters
| Name | Type | Description |
|---|---|---|
sourceoptional | series default close | Series to use. Omit it when the first argument is a number — ema(9) means ema(close, 9). |
length | int default 9 | Lookback in bars. Default 9. |
Return value
series
Short form: if the first argument is a number, Dovee uses close as the source.
Example
line = hma(close, 9) plot line as "Hull moving average"