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

  1. Pick a period n

    StockCharts uses 20 as its default; shorter settings react faster.2 Periods that are not whole numbers are rounded.2

  2. 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.

  3. Build the raw Hull line

    Raw value = 2 × WMA(n ÷ 2) − WMA(n).2

  4. Smooth it

    HMA = WMA of the raw values over √n periods.2 For a 16-period HMA that is a 4-period WMA.

  5. Read the slope

    A rising long-period HMA points to an uptrend and a falling one to a downtrend.2 See Trend.

  6. Use turning points, not crossovers

    Hull suggested the turns of the line as entry and exit signals and advised against crossover methods.1 A short HMA turning up inside an uptrend is read as a long entry.2

Worked examples

Example 1 — The raw Hull value

Formula

A hypothetical stock uses a 16-period HMA. Today the 8-period WMA is $51.20 and the 16-period WMA is $50.00.

Example 1 — The raw Hull value — calculation
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

Formula

The 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).

Example 2 — Smoothing over √16 = 4 bars — calculation
$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

Whipsaw

A 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.

Example 3 — Trading every turn in a range — calculation
Losses3 × −$0.60 = −$1.80
Gains2 × +$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

AspectHow it is builtSpeed and smoothness
Simple moving averageEqual weight on every priceSmooth but slow to turn
Weighted moving averageNewest price weighted most3Faster than a simple average
Exponential moving averageEach value builds on the previous one4Faster than a simple average4
Hull moving averageThree nested WMAs with a gap correction2Turns 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

  • Reacts faster than a simple moving average of the same length.2
  • Smoother than most fast averages, so turns are easy to see.1
  • One line gives both direction (slope) and timing (turns).
  • Simple inputs: only one period setting.

Disadvantages

  • Fast turns also mean more false signals in sideways markets.
  • It still lags; TradingView describes it as attempting to remove lag, not removing it.5
  • Crossover methods do not suit it, according to its creator.1
  • The gap correction can overshoot after a sharp spike and then snap back.

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

  1. Trading HMA crossovers

    Hull designed the line to cut lag, and crossover systems rely on lag; he advised against them.1

  2. 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.

  3. Expecting zero lag

    The line still follows price. It turns sooner than slower averages, not before price.

  4. 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.

Q1For a 16-period HMA, WMA(8) = $40.50 and WMA(16) = $40.00. What is the raw Hull value?
Q2Over how many periods is the raw line smoothed for a 25-period HMA?

Key points to remember

  1. The Hull moving average was developed by Alan Hull in 2005 to cut lag while staying smooth.
  2. HMA = WMA over √n of (2 × WMA(n ÷ 2) − WMA(n)).
  3. It is read from its slope and its turning points.
  4. Its creator advised against crossover signals.
  5. 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?

StockCharts uses 20 as its default.2 Short settings are used for timing entries and long ones, such as 200, for trend direction.2

Is the Hull moving average better than an EMA?

It is faster and smoother than many averages, but faster lines also turn more often in ranges. Which works better depends on the market and the rules around it.

Why should I not use Hull moving average crossovers?

Crossover methods work because one average lags another. The HMA is designed to reduce lag, so Alan Hull suggested using its turning points instead.1

Further learning

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.

  1. Alan Hull. Hull Moving Average (opens in a new tab) Checked .
  2. StockCharts ChartSchool. Hull Moving Average (HMA) (opens in a new tab) Checked .
  3. MetaQuotes (MetaTrader 5 Help). Moving Average (opens in a new tab) Checked .
  4. Fidelity. Exponential Moving Average (EMA) (opens in a new tab) Checked .
  5. 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.