Hull moving average (HMA)

Updated November 30, 2026 · One of the 15 moving averages in TradingView's technical rating

The Hull moving average (HMA) is a moving average designed to follow prices closely while staying smooth. It was developed by Alan Hull, who set out to reduce the lag that makes ordinary averages turn late. It does this by combining two weighted moving averages so that the result leans toward the most recent prices, then smoothing that combination once more.

TradingView’s rating includes a 9-period HMA among its 15 moving-average readings.

At a glance

TypeTrend-following moving average
Created byAlan Hull
Default length9 periods in TradingView’s rating
Built fromWeighted moving averages (WMA)
Rating ruleBuy if the HMA is below the price, Sell if above

First, the weighted moving average

The HMA is made of weighted moving averages. A WMA of n periods multiplies the most recent close by n, the one before by n − 1, and so on down to 1 for the oldest, then divides by the sum of the weights:

WMA(n) = (1 × oldest close + 2 × next + … + n × newest close) ÷ (1 + 2 + … + n)

For four closes the weights are 1, 2, 3 and 4, and they add up to 10.

How the HMA is calculated

TradingView gives the formula as:

HMA(n) = WMA( 2 × WMA(n/2) − WMA(n) ,  √n )

In three steps:

  1. Take a WMA over half the period, n/2, and double it.
  2. Subtract a WMA over the full period, n. Because the short WMA sits closer to recent prices than the long one, doubling it and subtracting the long one pushes the result further toward the latest prices. That cancels much of the lag.
  3. Smooth that series with a WMA over √n periods.

Worked example: a 4-period HMA

To keep every step a whole number, this example uses n = 4, so n/2 = 2 and √n = 2. TradingView’s rating uses n = 9; the steps are the same. A hypothetical stock closes at:

Day12345
Close20.0020.6021.0021.8022.60

Day 4.

  • WMA(2) of days 3–4 = (21.00 × 1 + 21.80 × 2) ÷ 3 = 64.60 ÷ 3 = 21.5333
  • WMA(4) of days 1–4 = (20.00 × 1 + 20.60 × 2 + 21.00 × 3 + 21.80 × 4) ÷ 10 = 211.40 ÷ 10 = 21.1400
  • Raw value = 2 × 21.5333 − 21.1400 = 21.9267

Day 5.

  • WMA(2) of days 4–5 = (21.80 + 22.60 × 2) ÷ 3 = 67.00 ÷ 3 = 22.3333
  • WMA(4) of days 2–5 = (20.60 + 21.00 × 2 + 21.80 × 3 + 22.60 × 4) ÷ 10 = 218.40 ÷ 10 = 21.8400
  • Raw value = 2 × 22.3333 − 21.8400 = 22.8267

HMA on day 5 = WMA(2) of the two raw values = (21.9267 × 1 + 22.8267 × 2) ÷ 3 = 67.5800 ÷ 3 = 22.5267.

Compare the averages on day 5, when the stock closed at 22.60:

Average on day 5ValueDistance below the close
Hull (4)22.5270.07
Simple (4), the average of days 2–521.5001.10

In a steady climb the simple average trails the price by more than a dollar, while the Hull average is within 7 cents. That responsiveness is the point of the HMA, and it is also its weakness, as the next sections show.

How traders read it

  • Direction of the HMA. Because it turns quickly, many traders watch its slope: rising means the short-term trend is up, falling means down. TradingView’s help page describes using a rising HMA in a rising trend to look for long positions and a falling HMA in a falling trend to look for short positions.
  • Price versus the HMA. As with any average, price above it points to strength and price below it to weakness.
  • Longer lengths for trends. TradingView notes that an HMA over a longer period may be better suited to identifying the overall trend.

How TradingView’s rating uses it

The 9-period HMA is scored like every other moving average in the rating:

ReadingCondition
Buy (+1)HMA below the price
Sell (−1)HMA above the price
Neutral (0)HMA equal to the price

Because the HMA sits so close to the price, this reading flips more often than the readings from the 100- or 200-period averages.

Limitations

  • It can overshoot. The doubling step extrapolates the recent trend, so after a sharp reversal the HMA can briefly swing past the price before catching up.
  • More turns mean more false turns. In choppy markets a fast average changes direction often.
  • Rounding of n/2. With an odd length such as 9, half the period isn’t a whole number, and platforms handle that rounding in their own way, so values can differ slightly between them.

See it on a live chart

The 9-period Hull moving average on daily candles. Compare how closely it follows turns in price with the slower averages on the moving averages page.

For TradingView's current rating of any market, with this indicator among the 26, see the market analysis page or the technical signals for all markets.

Sources

This page explains how an indicator is calculated and how traders commonly read it. The worked examples use hypothetical prices. Nothing here is a recommendation to buy or sell any investment. This content is for informational purposes only and does not constitute financial advice. Consult a qualified financial advisor before making investment or financial decisions.