Hull Moving Average (HMA)HMA
The Hull moving average, developed by Alan Hull, combines weighted moving averages of different lengths and smooths the result over the square root of the period, giving a line that is both smooth and quick to turn.
Every moving average faces the same trade-off: the smoother the line, the later it reacts. Alan Hull built his moving average in 2005 to get both at once, a curve that hugs price but still looks smooth.1 It does this with three weighted moving averages nested inside each other.2 Traders mostly read it from its direction and its turning points rather than from crossovers, and Hull himself advised against using it for crossover signals.1 This entry covers the formula, a worked calculation, how the line is read and where it misleads.
- Category
- Indicators and Tools
- Reading time
- 7 min
- Also called
- Hull MA, Hull moving average indicator, Alan Hull moving average
- Updated
The Hull moving average in plain words
A normal moving average trails behind price because it averages old prices with new ones. The Hull average takes a short average and a long average, looks at the gap between them and adds that gap back on, which pulls the line forward towards current price.2
That step makes the line jumpy, so the result is smoothed once more with a short weighted average whose length is the square root of the chosen period.2 The outcome is a line that stays close to the bars and turns soon after price does.2
How to build and read the Hull moving average, step by step
Calculate two weighted averages
Take a weighted moving average (WMA) of price over n ÷ 2 periods and another over n periods.2 A WMA gives the newest price the largest weight.3 See Moving Average.
Build the raw Hull line
Raw value = 2 × WMA(n ÷ 2) − WMA(n).2
Smooth it
HMA = WMA of the raw values over √n periods.2 For a 16-period HMA that is a 4-period WMA.
Worked examples
Example 1 — The raw Hull value
FormulaA hypothetical stock uses a 16-period HMA. Today the 8-period WMA is $51.20 and the 16-period WMA is $50.00.
| 2 × WMA(8) | 2 × $51.20 = $102.40 |
| Minus WMA(16) | $102.40 − $50.00 = $52.40 |
| Raw Hull value | $52.40 |
The raw value sits above both averages. The short average is $1.20 above the long one, and the formula adds that gap on top of the short average, which pushes the line towards recent prices.
Example 2 — Smoothing over √16 = 4 bars
FormulaThe last four hypothetical raw values, oldest first, are $51.00, $51.60, $52.00, $52.40. A 4-period WMA gives them weights 1, 2, 3 and 4 (sum 10).
| $51.00 × 1 | $51.00 |
| $51.60 × 2 | $103.20 |
| $52.00 × 3 | $156.00 |
| $52.40 × 4 | $209.60 |
| Sum of weighted values | $519.80 |
| HMA = sum ÷ 10 | $519.80 ÷ 10 = $51.98 |
The final HMA is $51.98. The heaviest weight on the newest raw value keeps the line close to price, while averaging four values removes some of the jumps.
Example 3 — Trading every turn in a range
WhipsawA hypothetical stock moves sideways for two months. A trader buys every time a short HMA turns up and sells when it turns down. Five trades result: three lose $0.60 a share and two make $0.50.
| Losses | 3 × −$0.60 = −$1.80 |
| Gains | 2 × +$0.50 = +$1.00 |
| Net per share | −$1.80 + $1.00 = −$0.80 |
A fast line turns often, and in a range many turns reverse quickly. StockCharts frames turning-point entries in the direction of the existing trend, which is why a longer HMA or another trend filter is commonly used first.2
Hull moving average compared with other averages
| Aspect | How it is built | Speed and smoothness |
|---|---|---|
| Simple moving average | Equal weight on every price | Smooth but slow to turn |
| Weighted moving average | Newest price weighted most3 | Faster than a simple average |
| Exponential moving average | Each value builds on the previous one4 | Faster than a simple average4 |
| Hull moving average | Three nested WMAs with a gap correction2 | Turns faster than a comparable simple average2 |
How traders use the Hull moving average
Trend direction
A long HMA, such as 200 periods, is read from its slope: rising means uptrend, falling means downtrend.2
Entry timing
A short HMA turning up in an uptrend, or down in a downtrend, is used as an entry trigger.2 Pair it with a Stop Loss.
Exit timing
Hull suggested the line’s turns for exits as well as entries.1 Some traders combine this with a Trailing Stop.
Cleaner chart reading
Because the line stays close to the bars, it can replace several averages when a trader only wants direction.2 See Trend Following.
Advantages and disadvantages
Advantages
Going deeper
Read as far as you need. Each level builds on the one before it.
One line, read by its slope
Beginner
Treat the HMA like any trend line on the chart: up is bullish, down is bearish, and a change of direction is the event to watch.2 Shorter settings give more turns; longer ones give fewer.
Why the formula reduces lag
Intermediate
2 × WMA(n ÷ 2) − WMA(n) can be rewritten as WMA(n ÷ 2) + (WMA(n ÷ 2) − WMA(n)). In a rising market the short average is above the long one, so the second part is positive and lifts the line towards price. The final √n smoothing then removes much of the noise this creates.2
Rounding and platform differences
Advanced
Odd periods do not divide evenly. StockCharts rounds to the nearest whole number, so an 11-period HMA uses a 6-period and a 3-period WMA.2 Hull’s own formula is written with integer parts of n ÷ 2 and √n.1 Small rounding choices like these mean two platforms can show slightly different values for the same setting.
Common mistakes
Trading HMA crossovers
Hull designed the line to cut lag, and crossover systems rely on lag; he advised against them.1
Ignoring the bigger trend
Turning-point signals are framed with the trend, such as a turn up in an uptrend.2 Taking every turn in a range leads to whipsaws.
Expecting zero lag
The line still follows price. It turns sooner than slower averages, not before price.
Comparing values across platforms blindly
Rounding of n ÷ 2 and √n can differ, so check the settings before comparing levels.
Check your understanding
Test yourself before moving on. Each answer comes with an explanation.
Key points to remember
- The Hull moving average was developed by Alan Hull in 2005 to cut lag while staying smooth.
- HMA = WMA over √n of (2 × WMA(n ÷ 2) − WMA(n)).
- It is read from its slope and its turning points.
- Its creator advised against crossover signals.
- Fast turns bring more false signals in sideways markets, so use a trend filter.
Frequently asked questions
What is a good Hull moving average setting?
Is the Hull moving average better than an EMA?
Why should I not use Hull moving average crossovers?
Further learning
- Moving Average
The basic averages the Hull line is built from.
- Leading and Lagging Indicators
Why every average lags, and what that means for signals.
- Trend
The HMA is a trend tool; know the trend before using its turns.
- Stop Loss
Fast signals need a plan for when they fail.
Sources
This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.
- Alan Hull. Hull Moving Average (opens in a new tab) Checked .
- StockCharts ChartSchool. Hull Moving Average (HMA) (opens in a new tab) Checked .
- MetaQuotes (MetaTrader 5 Help). Moving Average (opens in a new tab) Checked .
- Fidelity. Exponential Moving Average (EMA) (opens in a new tab) Checked .
- TradingView. Hull Moving Average – Help Center (opens in a new tab) Checked .
Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.