VALYNOXSTRATEGY RESEARCH TECHNOLOGY
AlphaPrimeAlphaPrime

Hull Moving Average (HMA): a low-lag trend line and how to use it

The Hull Moving Average was designed to answer one complaint about ordinary averages: they are smooth, but they arrive late. By blending several averages of different lengths it tries to keep the line calm while letting it turn close to when price itself turns. This page covers how futures traders read it and how a strategy generator can test it against the plain averages on your own markets.

FamilyTrend
OutputSmooth line drawn over priceSame units as price, with a visible change of slope
In AlphaPrimeBuilt-in generator familyEntry, exit and filter rules

What it measures

Every moving average faces the same trade-off. Average over a long stretch and the line is smooth but slow; average over a short stretch and it is quick but jittery. The Hull Moving Average attacks that trade-off by construction rather than by choosing a compromise length. It takes a fast weighted average and a slower weighted average, uses the gap between them to estimate how far the plain average is lagging behind, adds that estimate back, and then smooths the result once more with a short pass. The outcome is a line that leans forward into the move instead of trailing behind it.

Because the weighting favours the most recent bars, the line reacts to a change of direction well before a simple average does, yet the final smoothing step keeps it from zig-zagging on every small wiggle. In practice traders read the slope more than the position. A rising Hull line says the recent weighted drift is upward; a flattening one says the push is fading; a line that bends the other way says the drift has reversed. Where price sits relative to the line matters, but the turn of the line is the headline.

It is worth being clear about what the indicator does not do. It does not forecast. The forward lean comes from arithmetic on past bars, which means that when price reverses sharply the line overshoots slightly before correcting. It is a faster way of describing the recent trend, not a crystal ball, and the same trait that makes it quick also makes it twitchier than a classic moving average of equal length.

Concept sketch (not real market data)

How it behaves in real markets

In clean, persistent trends the Hull line hugs price closely and bends early at pullbacks and resumptions. That is where it earns its reputation: the gap between a turn in price and a turn in the line is small, so entries and exits taken from its slope feel timely rather than stale.

In choppy, sideways markets the same eagerness becomes a weakness. The line swings back and forth across price and flips direction often, producing a stream of small reversals that go nowhere. Many traders therefore check whether the market is trending at all, using something like ADX, before they trust a change of slope, or they accept that the line will be wrong more often in quiet ranges.

Sharp spikes, such as a news bar or an opening gap, leave a characteristic fingerprint: the line jerks toward the spike, overshoots a little, and then settles. Contracts that gap regularly will show this more, so a rule that looks crisp on a continuously traded index future may look noisier on a thinly traded overnight market.

Common ways to use it (concepts)

Slope trend

Trade the direction of the turn

Go long when the line turns up and short when it turns down, treating the change of slope as the signal. The appeal is promptness; the cost is more false turns in sideways stretches.

Price versus line

Pullbacks to a fast trend line

In an established trend, price often dips toward the Hull line and bounces. Traders wait for price to return to the line and resume, using it as a dynamic support or resistance zone that moves with the market.

Two-line crossover

Quick line against slow line

Compare a short Hull line with a longer one, or with a slower average. A cross suggests the faster drift has overtaken the slower one. Because both lines are low-lag, the cross tends to arrive earlier than a pairing of plain averages.

Pairing it with other indicator families

The Hull line is a trend description, so it pairs naturally with something that judges whether a trend is worth following. ADX or the Choppiness Index can switch the rule off in sideways conditions, which is exactly where a low-lag line is most likely to whipsaw. That single filter often does more for stability than any change to the line itself.

A second pairing adds volatility context. ATR tells you how big the typical swing is, so a stop or a minimum-distance condition can be scaled to the market instead of being fixed. Because the Hull line reacts quickly, a volatility-based exit gives the position room to breathe through ordinary noise while still protecting against a genuine reversal.

Momentum can add a second opinion on timing. Requiring that MACD agrees with the direction of the Hull slope reduces the number of turns taken against the broader drift. Avoid stacking several fast trend followers together, though: the Hull line, a KAMA line and a short crossover are all trying to describe the same direction, and combining them mostly repeats one idea. A linear regression line makes a more different companion because it fits a straight path through recent bars instead of weighting them.

In AlphaPrime

Inside AlphaPrime the Hull Moving Average is a trend-family building block that the strategy generator can use as the direction rule, as an exit that fires when the slope rolls over, or as a filter that only allows trades aligned with its tilt. Because it turns early, it is a useful candidate for systems whose edge depends on joining moves quickly rather than waiting for confirmation.

The generator crosses it with volatility, momentum, volume and session rules and sends each candidate through GPU backtests. Rather than deciding in advance whether the Hull line beats a plain average on your contract, you let the comparison happen on the data: the two can sit side by side as competing candidates, and out-of-sample validation shows which of them keeps working on bars it never saw.

Combinations that survive can be exported as strategy code for the trading platform you already use, so the final check and any live preparation happen in a familiar environment.

FAQ

Is the Hull Moving Average better than an ordinary moving average?

It is different rather than universally better. It reacts sooner and stays smooth, which suits clean trends, but it can flip more often in sideways markets. Comparing it against a plain moving average on your own contract, out of sample, is the fair way to decide.

Why does the Hull line sometimes overshoot after a sharp reversal?

Its forward lean is built from past bars, so when price turns abruptly the line has already leaned in the old direction and needs a moment to correct. That brief overshoot is the price of being quick, and a volatility measure such as ATR can help set stops that tolerate it.

How is it different from KAMA?

Both aim at reducing lag, but by different routes. The Hull line gets there through layered weighted averages, while KAMA adjusts how fast it follows price depending on how efficiently price has been moving. The first is always quick; the second speeds up and slows down.