Hull Moving Average: The Low-Lag Line That Rides Gold
Indicators 24 min read

Hull Moving Average: The Low-Lag Line That Rides Gold


The Hull Moving Average is a moving average built to turn almost as soon as price does, instead of lagging behind it the way an ordinary average does. Alan Hull stacked weighted averages so the line hugs recent price and swings up or down with barely any delay. That makes it a clean trend reader: colour it by slope and green means the trend is up, red means it is down or fading. We built three trading setups on the Hull line and ran them on eight years of gold, the market trending hardest right now. All three long versions paid, a profit factor near 1.9, and every one held up on data it was never tuned to. The catch is the same one every fast line carries. Low lag also means it flips early into moves that never arrive, so the short side and the whipsaws are where it bleeds you.

What the Hull Moving Average actually is

Start with the problem it solves. A plain moving average is slow on purpose, so it smooths out noise, but that smoothing means it turns late and you enter a trend well after it began.

The Hull Moving Average, or HMA, is one answer to that lag. It takes a couple of weighted averages, one fast and one slow, subtracts to cancel most of the delay, then smooths the result so it stays readable.

The Hull Moving Average versus a simple moving average, showing the Hull line hugging price and turning near the bottom while the SMA lags well behind, plus the slope-colour read and the HMA formula
The Hull line against a plain SMA. The Hull hugs price and turns near the low; the slower average catches up several bars later. The right panel shows the slope-colour read and the formula.

Look at the left panel. Both lines track the same dip, but the Hull turns up near the actual bottom while the simple average is still pointing down for another several bars.

That head start is the whole appeal.

You do not need the formula to trade it, but here it is in plain terms. The Hull takes a weighted average of a short window, doubles it, subtracts a weighted average of the full window, then smooths that with a final average over the square root of the length.

If that reads like noise, ignore it. The line is one click on any charting platform, and the only thing you read off it is direction.

Reading the Hull line by its slope

The simplest way to use the Hull is not a cross at all. It is the colour of the line, set by which way it is pointing.

Rising Hull, coloured green, means the trend is up and you want longs. Falling Hull, coloured red, means the trend is down or stalling, so you stand aside or look short. That is the entire read.

The Hull Moving Average on gold daily coloured by slope, red while falling then green as it turns up, with a fast HMA signal line and the 200-EMA regime line
Spot gold (XAU/USD), daily: the Hull line coloured by slope, red while falling and green once it turns up. The moment it flips green, marked here, is the slope-turn buy.

Here is that read on real gold. The line runs red down into the low, then the slope rolls over and it prints green.

That green flip is a buy signal on its own, and because the Hull has so little lag, it arrives days before a normal average would agree.

Two other lines sit on that chart, and you will see them on every example below, so meet them now.

  • The 200-day EMA is a slow exponential moving average of the last 200 days. Price above a rising one means the bigger trend is up, and it is the regime filter that keeps you on the right side of the market.
  • ADX is a standard trend-strength gauge that runs from zero upward. A reading above about 22 means a real trend is underway rather than chop, and it is free on TradingView. The cleanest Hull signals fire when ADX is already above that line.

Three ways to trade the Hull Moving Average

The Hull gives you the same tool in three flavours, and the data says all three work on gold. They differ in how many signals they give and how jumpy each one is.

Here they are, best to worst by profit factor over the full eight years. Tap a row to jump to its rules.

Hull Moving Average setups on gold (XAU/USD daily, long, regime-gated, net of fees)
SetupTradesProfit factorNet on $1,000
Fast/slow Hull cross891.92+104%
Price crosses the Hull931.89+88%
The slope flip931.88+89%

A word on profit factor, since it carries the table. It is every dollar the strategy won divided by every dollar it lost.

Above 1.0 it makes money; a 1.9 means it won about $1.90 for every $1 given back. Read all three against that.

The three numbers are almost a tie. That is worth more than any single one being high, because it says the edge is in the Hull line itself, not in one lucky variant.

1. The fast/slow Hull cross

This is the strongest of the three, and it works like a classic two-line crossover with the lag stripped out.

You run two Hull lines, a fast one at length 9 and a slow one at length 28. The rules are short:

  • Timeframe: the daily chart on gold.
  • Buy when the fast Hull crosses up through the slow Hull, and only while price is above the 200-EMA.
  • Stop below the recent swing low. Target at twice that risk, a reward-to-risk of 1:2.
A Hull fast/slow cross buy on gold daily, the fast Hull crossing above the slow Hull above the 200-EMA, running 28 days to a 1 to 2 target for a 4 percent account gain
Spot gold (XAU/USD), daily: the fast Hull crossing up through the slow Hull above the 200-EMA. It ran 28 days to the 1:2 target, +4% on the account. ADX above 22 confirmed the trend.

Trace it. The fast line pushed up through the slow line at the marked bar, price was above the 200-EMA, and ADX was already reading above 22.

You bought the cross, set the stop below the swing, and the trend carried it to the target four weeks later.

The 1:2 reward means the winner made twice what the stop risked. At 2% of the account per trade, that is a 4% gain on this one position.

That reward-to-risk, written 1:X, is the risk-reward ratio every setup here is built around.

Now the same trade in plain money, so you can size one yourself. Gold was near $3,645 at entry with the stop at $3,437, a gap of about $208 an ounce.

To risk $20, which is 2% of a $1,000 account, you divide that $20 by the $208 stop and buy roughly 0.096 of an ounce of gold.

That is a fraction of a standard 0.01-lot order, which is one full ounce, so a small account often needs a broker that offers fractional or cent-lot sizing to place the trade at the right risk. The whole position is worth only about $350, roughly a third of the account, so you are well under one-to-one leverage.

A broker’s leverage here is margin headroom that frees up capital, it is not extra risk. Your loss stays pinned at $20 by the stop, whatever leverage the broker offers.

Two trades are anecdotes, though. Here is what the setup did across its whole run.

Equity curve of the gold Hull fast/slow cross on a 1,000 dollar account, grinding sideways early then climbing to about 2,041 dollars over 89 trades at 18 percent max drawdown
Spot gold (XAU/USD), daily: $1,000 on the full 89-trade fast/slow cross, risking 2% per trade, sized to the stop, fees in. It ends near $2,041, max drawdown 18%.
Gold (XAU/USD) fast/slow Hull cross · full trade history
Trades89
Win rate56%
Reward-to-risk1:1.5
Profit factor1.92
Max drawdown18%
Net return on $1,000+104%

Two rows on that table earn a plain word, because they repeat on every setup below.

  • Reward-to-risk 1:1.5 is the realised average, not the target. The rules aim for a 1:2 target, but some trades exit before the full double and the losers pull the mean down, so a typical result lands nearer 1.5 times the risk than twice it.
  • Max drawdown 18% is the deepest fall from a high point the account took along the way, the worst losing stretch you would have had to sit through to earn the rest.

Read the shape, not just the end. The account grinds sideways through the first half, small wins and losses trading off, then the recent bull run carries the back third.

That is the honest face of a trend setup. A 56% win rate, a lot of nothing, then a handful of runners that pay for the year, at the shallowest drawdown of the three.

2. The price cross

The second setup drops one of the Hull lines. Instead of two Hulls crossing, you watch price itself cross the single Hull line.

  • Timeframe: the daily chart on gold.
  • Buy when a daily candle closes above the Hull line, while price is above the 200-EMA.
  • Stop below the recent swing low, target at 1:2.
A Hull price-cross buy on gold daily, price closing above the Hull line above the 200-EMA, held 27 days to a 1 to 2 target for a 4 percent account gain with ADX above 22
Spot gold (XAU/USD), daily: price closing above the Hull line above the 200-EMA. Held 27 days to the 1:2 target, +4% on the account, with ADX crossing above 22 into the move.

This is a touch quicker to fire than the two-line cross, so it catches trends a little earlier and takes a few more bad ones. The trade above is the clean version: price broke above the line, ADX confirmed a real trend, and the move ran to target in under four weeks.

It still works in the current market, not just the old history. Here is a recent one.

A more recent Hull price-cross buy on gold daily, into the 1 to 2 target in just 7 days for a 4 percent account gain
Spot gold (XAU/USD), daily: a recent price cross that ran to target in just 7 days, 1:2 for +4% on the account. The Hull's low lag caught the break early.

Same rules, faster payoff. The Hull turned up under price, the candle closed above it, and the trend obliged inside a week.

Now the whole run, losers included.

Equity curve of the gold Hull price-cross on a 1,000 dollar account, flat early then climbing to about 1,884 dollars over 93 trades at 22 percent max drawdown
Spot gold (XAU/USD), daily: $1,000 across the full 93-trade price cross, risking 2% per trade, fees in. It ends near $1,884, max drawdown 22%.
Gold (XAU/USD) Hull price cross · full trade history
Trades93
Win rate56%
Reward-to-risk1:1.5
Profit factor1.89
Max drawdown22%
Net return on $1,000+88%

Nearly the same profit factor as the two-line cross, at a slightly deeper drawdown. The extra earliness is a fair trade: you get in sooner and eat a few more whipsaws for it.

3. The slope flip

The third setup is the one from the reading section, traded on its own. No second line, no price cross, just the Hull line changing colour.

  • Timeframe: the daily chart on gold.
  • Buy the bar the Hull slope turns up, from red to green, while price is above the 200-EMA.
  • Stop below the swing low, target at 1:2.

This is the earliest and jumpiest of the three, because a slope can flick up for a single bar and roll back over. That is why it needs the 200-EMA gate more than the others do.

Equity curve of the gold Hull slope-flip long on a 1,000 dollar account, climbing to about 1,892 dollars over 93 trades at 27 percent max drawdown
Spot gold (XAU/USD), daily: $1,000 on the 93-trade slope flip, long only, risking 2% per trade, fees in. It ends near $1,892, max drawdown 27%.
Gold (XAU/USD) Hull slope flip · full trade history
Trades93
Win rate54%
Reward-to-risk1:1.6
Profit factor1.88
Max drawdown27%
Net return on $1,000+89%

It ends in almost the same place as the other two, but the ride is rougher, a 27% drawdown against 18% for the fast/slow cross. Same edge, more stomach required.

The takeaway across all three: pick the fast/slow cross if you want the smoothest ride, the price cross if you want to catch trends a touch earlier. The slope flip is for traders who want the earliest entry and can sit through the deepest dips.

Where the Hull line breaks

Low lag is the selling point and the flaw in one. A line that turns early also turns on moves that never show up.

Here is what that costs you on a real trade.

A failed Hull price-cross buy on gold daily, price crossing above the Hull into an extended move that reversed and stopped out in 4 days for a 2 percent account loss, even with ADX reading 48
Spot gold (XAU/USD), daily: a cross that bought an already-stretched move. It rolled over and stopped out in 4 days for a 2% account loss, even with ADX reading high at 48.

This one had everything the rules asked for. Price crossed the Hull, it was above the 200-EMA, and ADX read 48, a strong trend by any measure.

It still lost.

The problem was that the move was already extended when the cross fired. Price had run a long way, the buy came late in the leg, and it reversed within four days.

The stop did its job and kept the loss to one unit of risk, 2% of the account.

There is no filter that removes these. A trend setup pays for its big winners with a steady drip of small losses like this one, and the only job is to keep each one small.

The second break is the short side, and it is worse. On gold, taking the red flip to sell was a losing strategy across the whole test, a profit factor of 0.52 for the slope-flip short.

The reason is plain: gold has been in a long bull run, and you cannot fade a trend that keeps going. Every red flip bet against a market that climbed anyway.

That is why the 200-EMA gate matters. It keeps you long-only while gold is above the line, and the short side opens up only if the bigger trend genuinely flips.

Match the tool to the market.

An honest look versus just holding gold

One number keeps the whole thing in perspective. Over the same eight years, simply buying and holding gold returned far more than any of these setups on raw percentage, because the metal has been in a historic bull run.

So why trade the line at all? Because buy-and-hold also sat through a drawdown near 45% on the way, and these setups held their worst drop to between 18% and 27%.

They are in the market only when the trend is confirmed, and out of it when it is not.

That is the honest pitch. The Hull setups are not here to beat a raging bull on total return.

They are here to catch trends with far less pain, and to keep working when gold eventually stops going straight up.

Does the edge survive out of sample?

A backtest is easy to fit to the past. The test that matters is whether an edge holds on data it was never tuned to.

We split each setup’s trades into an earlier half and a later half, then checked whether the later, unseen trades paid like the earlier ones.

Hull setups, in-sample versus out-of-sample profit factor (gold daily, long)
SetupEarlier trades (in-sample)Later trades (unseen)
Price cross1.761.99
Slope flip1.492.24
Fast/slow cross1.881.94

Read it this way: the left column is the half the setup was checked on, the right column is the later trades it never saw. An edge that survives the unseen half is the trustworthy kind.

All three got better, not worse, on the unseen trades. That is the opposite of a curve-fit, where the number falls apart the moment you leave the data it was tuned to.

The honest caveat is that most of that recent strength rode the gold bull run. If gold spends a year going sideways, expect these setups to grind rather than gallop.

That is a condition to know, not a reason to distrust the line.

How to set it up and trade it

If you want to put this to work, here is the whole method in plain steps.

  1. Load the lines. On the daily gold chart, add the Hull Moving Average at length 28, a second Hull at length 9 if you want the fast/slow cross, the 200-EMA for regime, and ADX for a trend-strength check.
  2. Check the regime. Only take longs while price is above the 200-EMA. On a bull chart the short side simply waits.
  3. Wait for your signal. The fast Hull crossing the slow Hull, price closing above the single Hull, or the slope flipping green, depending on which setup you chose.
  4. Sanity-check the trend. The cleanest signals fire with ADX already above 22. A cross into a flat, sub-22 market is the one most likely to whipsaw.
  5. Place the order. A buy at the signal close, a stop-loss in the field below the recent swing low, and a take-profit at twice that distance for the 1:2 target.
  6. Size to the stop, not the other way round. Risk a fixed slice of the account, around 2% per trade, and let the position size fall out of where your stop sits. Never widen the stop to fit a bigger position.

On the tools, name the exact indicators so you reproduce these charts and not a look-alike. On TradingView, search Hull Moving Average (HMA) for the line, set the length to 28 or 9.

Add Moving Average Exponential at length 200 for the regime, and Average Directional Index (ADX) at length 14 for the trend check.

If you are matching the charts above bar for bar, note that a couple of the single-line examples are drawn at a slightly shorter length to keep the picture clean. The length that tested best on gold is 28, so trade the 28 and read the shorter one as illustration.

One trap worth flagging. TradingView also lists a popular community script called the Hull Suite, which plots several bands and looks nothing like the single line here.

Stick to the plain Hull Moving Average built-in. On MT4 or MT5 the Hull is not a default, so you add it through Insert, then Indicators, then a custom Hull Moving Average file, while ADX and the EMA are already in the standard menu.

A last word on discipline, tied to these exact numbers. At a win rate in the mid-50s, three or four losses in a row is ordinary variance, not a broken system.

If you hit six or more in a row, that is beyond normal, and a signal to check whether gold has stopped trending and slipped into chop. Chop is the one condition that switches this edge off.

Keep a calm eye on your live results against the trade history above, and only ever trade money you can afford to lose. A tool that rides trends is not a machine that prints in every market.

Where to go from here

The natural next steps are the tools this method leans on:

FAQ

What is the Hull Moving Average, in plain terms?
It is a moving average built to turn almost as soon as price does, instead of lagging behind the way a normal average does. Alan Hull stacked weighted averages so the line hugs recent price and swings up or down with barely any delay. You read it by its slope: rising means the trend is up, falling means it is down or fading. Because it has so little lag, it flags a trend change days before a slower average would agree.
Does the Hull Moving Average actually work?
On a trending market like gold, yes. In our eight-year test on daily gold, all three long setups built on the Hull line ran a profit factor near 1.9, and every one held up or improved on data it was never tuned to. The catch is that its low lag also flips it early into moves that fail, so the short side lost in gold's bull run and the whipsaws are a steady cost. It is a trend tool, so it pays where markets trend and struggles where they chop.
What are the best Hull Moving Average settings?
For the single line and the price-cross setup, a length of 28 gave the best profit factor on gold when we swept lengths of 16, 21 and 28. For the two-line crossover, pair a fast Hull at 9 with a slow Hull at 28. Shorter lengths turn faster but whipsaw more; longer lengths smooth out but give back the low-lag advantage the Hull exists for. Length 28 with the 9 for the fast line is a sound starting point.
What is the difference between the Hull and a normal moving average?
A simple or exponential moving average smooths price by looking back over a window, which makes it turn late. The Hull uses a math trick, subtracting a slower weighted average from a faster one and smoothing the result, to cancel most of that delay. The upshot is a line that tracks price closely and changes direction near the actual turn, rather than several bars after it. The trade-off is that it reacts to short moves a slower line would ignore.
Which is the best of the three Hull setups?
By the numbers they are almost a tie, all near a 1.9 profit factor. The fast/slow Hull cross had the smoothest ride, with an 18% max drawdown. The price cross catches trends a touch earlier at a slightly deeper 22% drawdown. The slope flip on its own is the earliest and jumpiest, with the deepest 27% drawdown. Pick the fast/slow cross for the calmest equity curve and the slope flip only if you can sit through bigger dips.
Why does the short side lose?
Because gold has been in a long bull run, and the short side means betting against that trend. The slope-flip short posted a 0.52 profit factor over the test, a clear loser, because every red flip sold into a market that kept climbing. The fix is the 200-day EMA regime filter: stay long-only while price is above it. The short side opens up only when the bigger trend genuinely turns down.
What timeframe and market is it best on?
We tested it on the daily chart of gold, which is the market trending hardest right now. Daily bars give clean structure and fewer false signals than faster charts, where the Hull's low lag produces far more whipsaws. The same logic should carry to other strong-trending markets, but the numbers here are gold-specific. Faster timeframes flip more often and on more noise, so the daily is the recommended starting point.
How do I avoid the whipsaws?
You cannot avoid them entirely; small losses are the cost of a trend setup. But two filters cut the worst ones. First, only take signals while ADX is above about 22, which confirms a real trend rather than chop. Second, respect the 200-EMA regime and stay long-only in an uptrend. Even then, a cross that fires late into an already-stretched move can reverse, as one of our losing examples did at an ADX of 48, so keep every loss to a fixed 2% of the account.
How much money do I need to start?
Enough that a fixed 2% risk reaches your broker's smallest position on gold. Gold's dollar stops are wide, so small accounts often need a broker offering fractional or cent-lot sizing to place a trade at proper risk. Never widen your stop or oversize the position to force a trade to fit a small account. Size always bends to the risk, not the other way round.
Is the Hull Moving Average available on TradingView and MT4?
On TradingView it is built in: search Hull Moving Average or HMA and set the length. Watch out for the community Hull Suite script, which plots several bands and is a different tool. On MT4 and MT5 the Hull is not a default indicator, so you add it as a custom Hull Moving Average file through the Insert menu, while ADX and the EMA are already in the standard indicator list.
What do the key terms mean?
Hull Moving Average (HMA) is a low-lag moving average that turns close to when price turns. Profit factor is total dollars won divided by total dollars lost, above 1.0 makes money. Reward-to-risk (1:X) compares one trade's reward to the risk on its stop. The 200-EMA is a slow average used to read the bigger trend, or regime. ADX is a trend-strength gauge, above about 22 meaning a genuine trend. Drawdown is the biggest drop from a peak in your account along the way.

🌍 Our recommended brokers

★★★★☆ 4.4
CySEC · ASIC Since 2009 $5
EUR/USD spread 1.6 pips
Min deposit $5

Regulated broker, $30 no-deposit bonus. 1000+ instruments.

Claim Bonus →

74% of retail CFD accounts lose money.

Compare top forex brokers →
★★★★★ 4.6
FCA · CySEC Since 2007 $50
Copy trading ✓ Built-in
Min deposit $50

Trade stocks, crypto and forex. 30M+ users worldwide.

Join eToro →

74% of retail CFD accounts lose money.

Full eToro review →

Reader Reviews

0.0 No reviews yet

Be the first to review this — tell other traders what actually helped, or where it fell short.

Leave a Review

Nina Carr
Nina Carr

Quant Researcher & Systems Builder

Quantitative researcher who builds the automated systems behind Arxum strategy testing. Works in Python and Pine Script, using AI alongside classic backtesting to validate strategies on years of real data.

Strategy AutomationPython & Pine ScriptAI-Assisted BacktestingSystematic Validation