Explainer
The Hull moving average caught my attention because it responds quickly without giving up much of the smoothing that makes an average readable. Better still, the construction is short enough to work through. A few weighted averages, a subtraction, one more smoothing step. I can ask why the line moved instead of treating it as an oracle.
My route into this was hardly a straight line from loving math at school. I came from the creative side, and math and I did not get along particularly well back then. Patterns were another matter: board games, World of Warcraft, figuring out a strategy and watching what happened when I changed it. That curiosity eventually followed me into market data.
Start with the ordinary average
A moving average is easier to understand before we start improving it. Imagine five invented closing prices: 10, 12, 11, 13 and 14. Add them and divide by five. The simple moving average, or SMA, is 12.
When the next close arrives, the oldest price drops out and the new one enters. If that new close is 15, the window becomes 12, 11, 13, 14 and 15. The average is now 13. That rolling window is what makes it a moving average.
The same calculation works over 50 sessions or 200. A longer window retains more older observations, so one new price has less influence. That can make a chart easier to read, although it also means the average responds slowly when prices change direction.
This is where the golden cross and death cross come in. Those names usually describe a shorter average crossing above or below a longer one, often the 50-day and 200-day SMA. A golden cross sounds considerably more glamorous than “the recent average has caught up with the longer average,” but that is what the calculation shows. Whether acting on it helps is a separate question.
Give recent observations more of a vote
The linearly weighted moving average changes how the observations contribute. Instead of treating all five prices equally, give the oldest weight 1, then 2, 3, 4, and finally 5 for the newest. For our original prices, the numerator becomes 10 × 1 + 12 × 2 + 11 × 3 + 13 × 4 + 14 × 5 = 189. The weights add to 15, giving a WMA of 12.6, compared with the SMA of 12.
The recent higher prices pull more strongly on the weighted result. We have changed the calculation’s response to the same observations; we haven’t obtained tomorrow’s price. That distinction is why the HMA interests me. It takes the smoothing problem seriously while trying to reduce the delay. To see how, keep the idea of a weighted average in mind for one more step.
The calculation
For a window of length n, a linearly weighted moving average gives the newest observation weight n, the previous observation weight n − 1, and so on. Divide their weighted sum by n(n + 1)/2. The Hull moving average combines these averages:
HMA(n) = WMA(2 × WMA(price, n/2) − WMA(price, n), √n) The outer weighted average is essential. Window lengths must be integers, so an implementation needs an explicit rounding convention for n/2 and √n. With n = 16, the inner windows are 8 and 16, and the final smoothing window is 4.
Alan Hull’s explanation describes the construction and its aim of reducing lag while smoothing the result. He also cautions against using HMA crossovers as though they were conventional moving-average crossover signals. HMA takes responsiveness further by combining and smoothing weighted averages. Because it includes subtraction, its output can overshoot the range of recent prices. That is a mathematical property, not evidence that the indicator has detected a hidden fair value.
What I would test before trading it
The interesting question is whether a precisely defined rule adds value after costs. “The line turned up” needs a timestamp, an execution rule and an exit. Comparisons need the same instruments, dates, exposure and costs. Trying many window lengths and reporting only the winner makes the chart look more persuasive than the experiment deserves.
This was the smoothing method I used in my HMA Z-score indicator. I later moved to an adaptive baseline and revisited what those scores could actually tell me. The HMA-to-KAMA follow-up covers that change, including why I left a machine-learning filter out of the published version.




