Clarity Markets
ENEnglish
More languages coming soon
Opens in a new tab

Hull moving average

A moving average designed by Alan Hull to cut lag while staying smooth, so it follows turns in price more closely.

What the Hull moving average is.

A faster, smoother moving average built from weighted averages.

The Hull moving average, or HMA, was designed by Alan Hull in 2005. It tackles a familiar problem: smooth averages lag, and fast averages are noisy.

The HMA combines two weighted moving averages to cancel out much of the lag, then smooths the result again. The line turns close to price but stays fairly smooth.

A weighted moving average, or WMA, gives the newest bar the most weight, the bar before slightly less, and so on in equal steps.

A 20-period Hull moving average tracking turns more closely than a 20-period SMAHull MA (20) and SMA (20)A 20-period Hull moving average tracking turns more closely than a 20-period SMAHull MA (20) and SMA (20)
Illustration on generated prices, not a real market. A 20-period Hull moving average (orange) and a 20-period SMA (navy, dashed). The Hull line turns within a few bars of each low and high. The SMA turns several bars later.
TypeTrend indicator, drawn on the price chart
Built fromTwo weighted moving averages, combined and then smoothed again
Created byAlan Hull, in 2005
Best known forFollowing turns closely with little lag
On MetaTrader 5Not built in: added as a custom indicator

How it is calculated.

Three steps on every bar. The custom indicator does the maths for you.

01

Take two weighted averages.

Work out a WMA over half the period and a WMA over the full period. For a 20-period HMA, that is a 10-period and a 20-period WMA.

02

Double the short one and subtract the long one.

Doubling the faster average and taking away the slower one pushes the line towards current price. This cancels much of the lag.

03

Smooth the result.

Take a WMA of that new series over the square root of the period. For 20, that is about 4 bars.

Raw = 2 × WMA(close, n ÷ 2) − WMA(close, n)
HMA = WMA(Raw, √n)
WMA gives the newest of n bars a weight of n, the next n − 1, down to 1 for the oldest
 SMA (20)EMA (20)Hull (20)
Lag at turnsMostLessLeast
SmoothnessSmoothFairly smoothFairly smooth, can overshoot
Built into MT5YesYesNo: custom indicator

How to read it.

How traders read the Hull line. None of these is a signal on its own.

The slope.

Many traders watch the direction of the line. When it turns from rising to falling, momentum has shifted. Some versions colour the line to show this.

Turns, not crossovers.

Because the HMA hugs price, price crosses it often. Its turning points usually say more than price crossing the line.

Overshoot.

The doubling step can make the line run slightly past price at sharp turns, before it settles back. Expect it rather than react to it.

Pairing with a slower average.

Some traders use a Hull line for timing and a longer, slower average for the overall trend.

Common mistakes.

Where traders new to the Hull moving average most often go wrong.

Expecting no lag at all. The HMA reduces lag, but it is still built from past prices and still turns after price does.

Trading every small wiggle. A short Hull period reacts to noise and can turn back and forth in a range.

Ignoring the overshoot. At sharp reversals the line can run past price before it settles.

Installing any custom indicator you find. Check where it comes from and how it is built before you add it to MT5.

Using it on MetaTrader 5.

The Hull moving average is not one of MT5’s built-in indicators. You add it as a custom indicator on the desktop app.

01

Open the Toolbox.

In MetaTrader 5 for desktop, open the Toolbox window from the View menu and select the Code Base tab.

02

Find a Hull moving average.

Find a Hull moving average in the Code Base and download it. MT5 adds it to your terminal.

03

Add it to a chart.

Open the Navigator, find it under Indicators, and drag it onto the chart.

04

Set the period.

Enter the period you want, such as 20, and apply it to the close if the indicator asks.

Custom indicators are written by third parties, not by Clarity. Check the source and reviews before you use one, and test it on the free demo first. They run on MT5 for desktop, not on the web or mobile apps. This guide is for education only and is not investment advice.

Questions, answered.

What traders ask most about the Hull moving average.

01Who created the Hull moving average?
Alan Hull introduced it in 2005, to combine the smoothness of a slow average with the speed of a fast one.
02Why does it use the square root of the period?
The last smoothing step uses a short window, so it removes noise without adding back much lag. For a 20-period HMA, that window is about 4 bars.
03Is the Hull moving average better than an EMA?
It reacts faster at turns, which suits some traders and not others. In a choppy market, its speed can mean more false turns.
04Why is it not in MT5 already?
MT5 includes a fixed set of indicators. The Hull moving average is not one of them, so it is added as a custom indicator.
05Can I practise with it first?
Yes. Install it on MT5 for desktop with a free demo account and watch it on live prices with practice money.

Practise it on a demo.

Install the Hull moving average on a free MT5 demo and compare its turns with a simple average before you trade with real money.

Trading CFDs on a live account puts your capital at risk and you can lose money. A demo does not.

CFDs are complex instruments and come with a high risk of losing money rapidly due to leverage. 80% of retail investor accounts lose money when trading CFDs.