Back to Docs
Traderoid

HMA Pass

Hull Moving Average — Series Input

IndicatorTrendOverlay

Overview

HMA Pass applies Alan Hull's Hull Moving Average to any upstream numeric series. It combines WMA(period/2) and WMA(period) with a final WMA of √period to dramatically reduce lag while maintaining smoothness.

Formula

WMA1 = WMA(x, period/2) WMA2 = WMA(x, period) HMA[t] = WMA(2·WMA1 − WMA2, √period)

Parameters

ParameterTypeDefaultDescription
periodnumber14Main window length in bars.

Inputs & Outputs

PortDirectionTypeDescription
inputInput(number | null)[]Any numeric series (values + timestamps).
valuesOutput(number | null)[]Smoothed output series, null for warm-up bars.
timestampsOutputnumber[]Bar timestamps aligned with values.