Functions
talib.hma()
The hma function returns the Hull Moving Average.
Syntax
talib.hma(series float source, series int length) → series float
Arguments
source required series float Series of values to process. length required series int Number of bars. Return Type
series float Example
indicator("HMA Example", overlay=true)
// Define input source and period
src = close
length = 20
// Compute Hull Moving Average
hma_line = talib.hma(src, length)
// Plot the HMA
plot(hma_line, title="HMA 20", color=color.blue)