Hull Moving Average (HMA)

HMA
Indicator

TrendOn the price chartFree on ChartLabs

The Hull Moving Average combines weighted averages of two lengths to cut most of the lag of a normal average while staying smooth. It turns close to price.

Developed by Alan Hull in 2005. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIHMAchartlabs.co/charts
Atlas reads it

Price is under a falling HMA 9. Short-term trend points down.

HMA 9 65,517.6 · Close 65,242.2

Atlas reads it

Price is under a falling HMA 9. Short-term trend points down.

HMA 9 65,517.6 · Close 65,242.2

Illustration on simulated data.

Hull Moving Average (HMA)What is the HMA indicator?

The HMA draws one blue line on the price chart. By default it uses a length of 9 on the close.

It is built from three weighted moving averages. It takes a weighted average over half the length, doubles it, and subtracts a weighted average over the full length. That pushes the line toward the latest prices. A final weighted average over the square root of the length smooths the result.

The outcome hugs price more tightly than an EMA or SMA of the same length and changes direction sooner. Many traders read its slope: a rising HMA for an up move, a falling one for a down move.

The overshoot

Because the HMA leans so hard toward recent prices, it can swing past price after a sharp turn. Its speed is the trade-off for that overshoot.

HMA or EMA?

An EMA of 9 still lags a few bars behind a turn. The HMA of 9 turns sooner, but it also flips more often in choppy markets.

HMA signalsFive patterns to know.

1Bullish

Price above a rising HMA

Closes stay above the line while it slopes up. The short-term move is up.

2Bearish lean

Close crosses below

After a run above the line, price closes under it. With the HMA this often happens close to the turn.

3Bullish lean

Close crosses above

After a run below, price closes above the line. Many traders want the HMA itself to turn up too.

4Bullish

Pullback that holds

In an uptrend price dips to the HMA and closes back above it.

Flat line, many crosses
5Inconclusive

Flat line, many crosses

The HMA wiggles sideways and price keeps crossing it. A fast line finds no trend to follow.

HMA formulaHow it is calculated.

HMA=WMAN(2×WMAN/2(close)−WMAN(close))
STEP 1

Two weighted averages

Take a weighted moving average of the close over half the length (4 bars for 9) and one over the full length (9 bars).

STEP 2

Push toward the present

Double the short average and subtract the long one. The difference leans toward the newest prices.

STEP 3

Smooth the result

Take a weighted average of that series over the square root of the length, rounded down: 3 bars for a length of 9.

HMA settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length91 to 10,000 (typical 9 to 55)The main length. The half and square-root lengths come from it, both rounded down.
SourceCloseAny price, or volumeWhich values feed the calculation.
LineBlue #2962FF, 1 pxAny colour and widthColour and width of the line.
Setting
Length
Default
9
Range
1 to 10,000 (typical 9 to 55)
What it changes
The main length. The half and square-root lengths come from it, both rounded down.
Setting
Source
Default
Close
Range
Any price, or volume
What it changes
Which values feed the calculation.
Setting
Line
Default
Blue #2962FF, 1 px
Range
Any colour and width
What it changes
Colour and width of the line.
974 price crosses in view
70,20866,82563,44360,06164,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

HMA strategiesUse it in 3 setups.

Pullback to a rising HMA

WhileHMAslopes upifprice dips to it and closes above

Traders often want the close back above the line before acting, so a dip that keeps falling does not count.

Stay with a rising HMA

Whileprice holds aboveHMAandHMArisesholdthe position

A fast line that keeps rising with price shows the move is intact. Many traders use a longer HMA for this, so small wiggles do not end the trade.

Turn of the slope

IfHMAturns upandprice closes above it

Many traders use the change in the HMA's direction as the signal, with the close as confirmation.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

HMA mistakesCommon mistakes.

Flat line, many crosses

Trading every turn in a range

The HMA is fast enough to turn on small wiggles. In a sideways market that means many false turns.

Far above the line

Reading the overshoot as a new trend

After a sharp move the HMA can run past price. Wait for it to settle before reading its slope.

Cross comes after the low

Expecting no lag at all

The HMA lags less than other averages, not zero. The cross still comes after the low.

HMA combinationsPair it with these.

HMA FAQQuestions traders ask.

What are the default HMA settings?

Length 9 on the close, the same as TradingView. The half length is 4 and the square-root length 3.

Why is the HMA so fast?

Doubling a short weighted average and subtracting a long one pushes the line toward recent prices. The final short average keeps it smooth.

HMA or EMA?

The HMA turns sooner than an EMA of the same length. The EMA is steadier and overshoots less. The choice depends on how fast you want the line to react.

Does the HMA overshoot?

Yes, after sharp turns it can swing past price briefly. That comes with its low lag.

What is the best HMA length?

9 is the default. 20 to 55 are common on swing and daily charts. Longer is smoother but slower.

How are the half and root lengths rounded?

Both are rounded down, as on TradingView: length 9 gives 4 and 3, length 20 gives 10 and 4.

Does the HMA work on crypto?

Yes. It works on any market with prices. Fast crypto moves make the overshoot more visible.

Is the HMA leading or lagging?

Lagging, like every average of past prices, but much less than an SMA or EMA of the same length.

Does the HMA repaint?

No. Values on closed bars never change. The live bar moves until it closes.

Who created the HMA?

Alan Hull, an Australian trader, published it in 2005.

Related indicatorsMore trend tools.

All trend indicators

Try HMA on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
HMA (9, close)