Trend indicators

Hull Moving Average (HMA): Alan Hull's Formula, Its Lag Measured, and a Test of Its Turning Points on Real Prices

The Hull moving average from its author's own formula: how the weighted averages cancel most of the lag, what that costs in noise, and what trading its turning points gave on daily Bitcoin and the S&P 500 ETF.

· Founder of PatternsWizard
Checked 8 min read
HMA(20), with EMA(20) and SMA(20) on Bitcoin, daily, August 30, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
On this page
  1. How the Hull moving average is calculated
  2. Lag and noise compared with other averages
  3. Trading the turning points
  4. The turns on the chart above
  5. Does it work?
  6. Tested on our bench
  7. Frequently asked questions

Every pattern's results on one sheet

The only pattern cheat sheet with tested stats: 152 patterns, what the textbook says and what really happened on 6 markets. Free PDF, sent to your inbox.

The PDF by email, plus our newsletter: new tests and results that change. Unsubscribe anytime. Privacy.

The Hull moving average (HMA) is a weighted moving average built to remove most of the lag of an ordinary average while keeping the line smooth. Its author, Alan Hull, writes that he developed it in 2005 while working on another indicator. It takes a weighted average over half the period, doubles it, subtracts a weighted average over the full period, and smooths the result with a short weighted average over the square root of the period. Hull's own advice is to trade its turning points, not price crossing it. Below we compare it with ordinary averages on real daily prices and test the turning point rule on the last 600 daily bars of each, from March 8, 2025 for Bitcoin and June 7, 2024 for the ETF, to October 28, 2026.

Hull moving average (20) on daily Bitcoin, with the EMA and SMA of the same length

HMA(20), with EMA(20) and SMA(20) on Bitcoin, daily, July 1, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.
  • Price, daily candles (hollow up, filled down)
  • HMA(20) (solid line)
  • EMA(20) (solid line, second color)
  • SMA(20) (dashed line)
HMA(20), with EMA(20) and SMA(20) on Bitcoin, daily, July 1, 2026 to October 28, 2026. Illustration of how the indicator reads, not a backtest.

How the Hull moving average is calculated

A weighted moving average (WMA) of n bars weights the latest bar n, the one before n − 1, and so on down to 1. The half-length WMA is closer to price than the full-length one; doubling it and subtracting the full-length WMA pushes the line further toward the latest price, past where an average would normally sit. That overshoots in noisy markets, so the last step smooths it with a WMA over the square root of n, rounded down.

How the Hull formula cancels lag

How the Hull formula cancels lag: price is flat, then jumps to a higher level and stays there. The full-period weighted average climbs slowly toward the new level; the half-period one climbs faster. Twice the half-period average minus the full-period one rises past the new level, then falls back to it. The Hull line, a short weighted average of that overshooting line, reaches the new level much sooner than the full-period average.
Schematic, not market data. Exact computation on an abstract step with a period of 16: half period 8, smoothing over 4 bars.

Lag and noise compared with other averages

We measured lag as the shift k, from 0 to 40 bars, that minimizes the mean of |averaget / closet−k − 1|, on daily Bitcoin and the S&P 500 ETF (dividend-adjusted), to October 28, 2026, after three lengths of warm-up: the 20-bar lines from May 7, 2025 on Bitcoin and September 4, 2024 on the ETF, the 50-bar lines from August 5, 2025 and January 14, 2025. Over the same periods we counted how often the close crossed each line. Measured with the gap in price instead of percent, the Bitcoin SMA(50) lag is 25 bars instead of 26; the Hull values do not change.

AverageBitcoin lagBitcoin crossingsETF lagETF crossings
SMA(20)10 bars6110 bars70
HMA(20)3 bars1183 bars109
SMA(50)26 bars3125 bars31
HMA(50)6 bars546 bars77

Lag of each average, in bars, on daily prices

Lag of each average, in bars, on daily prices. SMA(20): Bitcoin 10 bars, S&P 500 ETF 10 bars; EMA(20): Bitcoin 6 bars, S&P 500 ETF 7 bars; HMA(20): Bitcoin 3 bars, S&P 500 ETF 3 bars; SMA(50): Bitcoin 26 bars, S&P 500 ETF 25 bars; EMA(50): Bitcoin 16 bars, S&P 500 ETF 20 bars; HMA(50): Bitcoin 6 bars, S&P 500 ETF 6 bars. Our computation; the inputs and the method are in the text.
  • Bitcoin
  • S&P 500 ETF
Our computation; the inputs and the method are in the text.Lag: the shift from 0 to 40 bars that best lines the average up with past closes, as described above. Bitcoin to October 28, 2026 from May 7, 2025 (20 bars) and August 5, 2025 (50 bars); ETF from September 4, 2024 and January 14, 2025. The EMA lines are measured the same way.

The Hull average does what Hull says: on our data it lagged a quarter to a third as much as a simple average of the same length. The price paid is in crossings: the close crossed a 20-bar Hull line nearly twice as often as a 20-bar simple average on Bitcoin. That is why Hull himself warns against crossover signals, and the chart above shows the EMA and SMA of the same length for comparison. The bar chart adds the EMA of each length: its lag sits between the two. The moving average guide has the same measurement for the EMA and WMA.

Trading the turning points

Hull recommends using the HMA's turning points as entry and exit signals. We tested the simplest version on both series: go long at the next open when the HMA turns up, reverse to short at the next open when it turns down, always in the market, before costs.

Market and lengthFromTradesWinning closed tradesResultHolding
Bitcoin, HMA(20)April 12, 20255820 of 57+54.50%−2.49%
Bitcoin, HMA(55)June 1, 20252710 of 26+4.94%−22.23%
S&P 500 ETF, HMA(20)July 19, 20247324 of 72−16.33%+43.47%
S&P 500 ETF, HMA(55)November 1, 2024279 of 26+2.90%+38.30%

Holding is measured from the first entry of each test to the close of October 28, 2026; each result includes a position still open on that day. Fewer than four trades in ten won with either length. In these two single examples, on Bitcoin, which went nowhere or fell over these periods, a system that could go short beat holding; on the rising ETF, every turn down reversed it into a short, and the 20-bar version lost money while holding gained 43%. A trade lasted 9.8 bars on average with the 20-bar HMA on Bitcoin, and 12 of its 57 closed trades were over within three bars.

Trading HMA turning points against holding, before costs

Trading HMA turning points against holding, before costs. Bitcoin, HMA(20): Turning-point rule +54.5%, Holding −2.5%; Bitcoin, HMA(55): Turning-point rule +4.9%, Holding −22.2%; S&P 500 ETF, HMA(20): Turning-point rule −16.3%, Holding +43.5%; S&P 500 ETF, HMA(55): Turning-point rule +2.9%, Holding +38.3%. Our computation; the inputs and the method are in the text.
  • Turning-point rule
  • Holding
Our computation; the inputs and the method are in the text.Long after a turn up, short after a turn down, at the next open, always in the market. From the first entry (April 12 and June 1, 2025 on Bitcoin; July 19 and November 1, 2024 on the ETF) to the close of October 28, 2026, open position included.

The turns on the chart above

The chart shows daily Bitcoin from July 1 to October 28, 2026, with HMA(20). On July 1 the rule was short, from June 22 at 63,312; the HMA turned up on July 3 and the short was closed on July 4 at 62,583.26, a gain of 1.15%. The 16 trades that followed, 15 closed in the window and one still open, went as follows:

  • July 4 to August 19, six trades; through August 18 the close stayed between 62,290 and 66,556.16: −0.40%, −4.35% (a one-bar short on July 14), −1.03%, −0.45%, −1.83% and −1.96%;
  • long from August 19 at 64,725.42 to August 31 at 77,682: +20.02%;
  • three losing trades in early September: −3.42%, −2.35% and −3.09%;
  • long September 19 to 30: +3.44%; then −3.43% and −3.71% on two quick reversals in early October;
  • short October 8 to 21: +0.35%; long October 21 to 25: −2.58%;
  • short from October 25 at 80,888.15, still open on October 28 at a close of 81,343.50: −0.56%.

Three of the 15 closed trades won, and one of them, the August rally, paid for most of the losses: a fast line catches the start of a trend early, and pays for it with many false turns in between.

Does it work?

Our bench tested Hull's turning point rule and price crossings of the line across markets after costs: both lagged the market, the short side by a small, fragile margin; the results are in the section below (see our methodology). The tests above cover two markets from 2024 or 2025 to October 2026, before costs. They show the lag and noise trade-off, not an edge. For other fast averages, see the ALMA and the Williams Alligator, or the full list of trend indicators.

Data from our test bench

Tested on our bench

We coded the 4 strategies taught on this page, buy and sell side, and ran them on stocks, ETFs, indices, forex, crypto and commodities. With all markets pooled (daily bars): 4 did worse than the market.

Hull MA turns, bullishLagged the market

Entry: HMA(20) rises after falling. Exit: Opposite signal (stop and reverse).

The trade itself made money on average, but less than the rest of the market over the same bars.

In detail, all markets pooled

On daily bars, the rule fired 468,314 times on 2,356 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 18 bars on each asset.

The average trade returned +0.35% before costs and the median trade −1.25%; 38% of trades made money, and the gains added up to 1.15 times the losses.

A trade lasted 8 bars at the median, half of them between 4 and 13 bars.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.21% per trade after costs (95% interval −0.26% to −0.16%).

Signals
468,3142,356 assets, 1970 to 2026
Average trade
+0.35%before costs; median −1.25%
Winning trades
38%profit factor 1.15
Median hold
8 barshalf between 4 and 13
Vs the market, after costs
−0.21%95% interval −0.26% to −0.16%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal50.1%51.5%51.7%53.2%54.3%
Random dates50.6%51.9%52.6%53.6%54.6%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 2012156,187−0.16%
2012 to 2021156,120−0.11%
2021 to 2026156,007−0.05%

Stress tests

The same trades, measured again under harsher assumptions (vs market, after costs).

VariantVs marketResult
As tested: entry at the signal close, standard costs−0.21%
Entry at the next bar's open−0.24%Holds
Trading costs doubled−0.32%Holds
1% most extreme trades trimmed on each side−0.35%Holds

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 38% of 466,216 trades hit the target first, for +0.15 R per trade on average against +0.15 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −85.2% on OM/USDT, signal of 2025-04-09.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Hull MA turns, bullish: real trade on XRP/USDT, 2026-07-20, daily chart
Most recentXRP 2026-07-20 daily chartBought at the close of 2026-07-20 (1.11), sold 5 bars later, when the exit rule fired (1.10): −1.3% before costs.Against the other crypto pairs over the same bars, after costs: +0.4%.Hull MA
Hull MA turns, bullish: real trade on AAVE/USDT, 2020-12-31, daily chart
Best tradeAAVE 2020-12-31 daily chartBought at the close of 2020-12-31 (88.48), sold 45 bars later, when the exit rule fired (468.5): +429.5% before costs.Against the other crypto pairs over the same bars, after costs: +31.5%.Hull MA
Hull MA turns, bullish: real trade on VRRM, 2026-05-22, daily chart
Worst tradeVRRM 2026-05-22 daily chartBought at the close of 2026-05-22 (13.49), sold 2 bars later, when the exit rule fired (3.85): −71.5% before costs.Against the other stocks over the same bars, after costs: −71.9%.Hull MA
Hull MA turns, bullish: real trade on CAT, 1988-12-06, daily chart
Typical tradeCAT 1988-12-06 daily chartBought at the close of 1988-12-06 (3.35), sold 2 bars later, when the exit rule fired (3.31): −1.2% before costs.Against the other stocks over the same bars, after costs: −0.9%.Hull MA

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily406,082+0.30%38%−0.22%Lagged the market
ETFsdaily13,979+0.21%41%−0.09%No edge found
Indicesdaily7,539+0.31%42%n/aNot measured
Forexdaily4,862−0.001%36%−0.05%No edge found
Cryptodaily31,686+1.24%31%−0.18%No edge found
Commoditiesdaily4,166+0.27%38%−0.19%No edge found
All markets4-hour232,279−0.03%33%−0.28%Lagged the market
Forex4-hour29,026−0.01%35%−0.04%No edge found
Crypto4-hour203,253−0.03%33%−0.31%Lagged the market
All marketsweekly82,219+2.44%42%−0.44%Lagged the market
Stocksweekly73,241+1.98%42%−0.46%Lagged the market
ETFsweekly2,702+1.62%46%+0.05%No edge found
Indicesweekly1,498+1.97%46%−0.11%No edge found
Forexweekly970−0.22%34%−0.25%Inconclusive
Cryptoweekly2,956+22.60%35%n/aNot measured
Commoditiesweekly852+2.26%41%+0.05%No edge found
Hull MA turns, bearishLagged the market, fragile

Entry: HMA(20) falls after rising. Exit: Opposite signal (stop and reverse).

In detail, all markets pooled

On daily bars, the rule fired 471,171 times on 2,360 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 18 bars on each asset.

The average trade returned −0.56% before costs and the median trade −1.65%; 32% of trades made money, and the gains added up to only 0.79 times the losses. For this sell signal, a trade gains when the price falls (a short sale).

A trade lasted 8 bars at the median, half of them between 4 and 11 bars.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.18% per trade after costs (95% interval −0.23% to −0.14%). For a sell signal, a positive number means the asset did worse than the others, as the signal announced.

Signals
471,1712,360 assets, 1970 to 2026
Average trade
−0.56%before costs; median −1.65%
Winning trades
32%profit factor 0.79
Median hold
8 barshalf between 4 and 11
Vs the market, after costs
−0.18%95% interval −0.23% to −0.14%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal47.5%46.8%46.2%45.9%45.4%
Random dates48.2%47.5%47.0%46.2%45.3%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 2012157,243−0.10%
2012 to 2021156,916−0.09%
2021 to 2026157,012−0.04%

Stress tests

The same trades, measured again under harsher assumptions (vs market, after costs).

VariantVs marketResult
As tested: entry at the signal close, standard costs−0.18%
Entry at the next bar's open−0.15%Does not hold
Trading costs doubled−0.29%Holds
1% most extreme trades trimmed on each side−0.18%Holds

The result no longer holds when entering at the next bar's open instead of the signal close.

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 28% of 468,168 trades hit the target first, for −0.16 R per trade on average against −0.15 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −368.5% on NU/USDT, signal of 2021-10-11.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Hull MA turns, bearish: real trade on ETC/USDT, 2026-07-20, daily chart
Most recentETC 2026-07-20 daily chartSold short at the close of 2026-07-20 (6.92), bought back 1 bar later, when the exit rule fired (7.00): −1.2% before costs.Against the other crypto pairs over the same bars, after costs: −1.7%.Hull MA
Hull MA turns, bearish: real trade on SUNE, 2025-03-28, daily chart
Best tradeSUNE 2025-03-28 daily chartSold short at the close of 2025-03-28 (82.00), bought back 15 bars later, when the exit rule fired (2.79): +96.6% before costs.Against the other stocks over the same bars, after costs: +96.2%.Hull MA
Hull MA turns, bearish: real trade on DOGE/USDT, 2021-01-11, daily chart
Worst tradeDOGE 2021-01-11 daily chartSold short at the close of 2021-01-11 (0.008833), bought back 17 bars later, when the exit rule fired (0.0365): −313.2% before costs.Against the other crypto pairs over the same bars, after costs: −196.2%.Hull MA
Hull MA turns, bearish: real trade on MDY, 2012-10-10, daily chart
Typical tradeMDY 2012-10-10 daily chartSold short at the close of 2012-10-10 (149.7), bought back 4 bars later, when the exit rule fired (152.2): −1.6% before costs.Against the other ETFs over the same bars, after costs: −0.4%.Hull MA

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily407,820−0.68%31%−0.19%Lagged the market
ETFsdaily13,966−0.44%29%−0.08%No edge found
Indicesdaily7,538−0.36%29%n/aNot measured
Forexdaily4,864−0.02%35%−0.05%No edge found
Cryptodaily32,793+0.81%44%−0.19%No edge found
Commoditiesdaily4,190−0.37%34%−0.18%No edge found
All markets4-hour233,445−0.08%37%−0.27%Lagged the market
Forex4-hour29,241−0.01%35%−0.04%No edge found
Crypto4-hour204,204−0.09%37%−0.30%Lagged the market
All marketsweekly85,256−2.29%28%−0.24%No edge found
Stocksweekly75,694−2.47%28%−0.24%No edge found
ETFsweekly2,730−1.26%27%+0.07%No edge found
Indicesweekly1,504−1.16%26%−0.09%No edge found
Forexweekly965−0.24%35%−0.19%No edge found
Cryptoweekly3,498+0.65%49%n/aNot measured
Commoditiesweekly865−0.92%32%−0.39%No edge found
Price crosses the Hull MA, bullishLagged the market

Entry: Close crosses above HMA(20). Exit: Opposite signal (stop and reverse).

The trade itself made money on average, but less than the rest of the market over the same bars.

In detail, all markets pooled

On daily bars, the rule fired 931,584 times on 2,357 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 9 bars on each asset.

The average trade returned +0.18% before costs and the median trade −0.78%; 36% of trades made money, and the gains added up to 1.11 times the losses.

A trade lasted 4 bars at the median, half of them between 1 and 7 bars.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.15% per trade after costs (95% interval −0.17% to −0.13%).

Signals
931,5842,357 assets, 1970 to 2026
Average trade
+0.18%before costs; median −0.78%
Winning trades
36%profit factor 1.11
Median hold
4 barshalf between 1 and 7
Vs the market, after costs
−0.15%95% interval −0.17% to −0.13%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal50.0%51.9%52.2%53.3%54.5%
Random dates50.6%51.9%52.6%53.6%54.6%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 2012310,546−0.07%
2012 to 2021310,556−0.01%
2021 to 2026310,482−0.06%

Stress tests

The same trades, measured again under harsher assumptions (vs market, after costs).

VariantVs marketResult
As tested: entry at the signal close, standard costs−0.15%
Entry at the next bar's open−0.17%Holds
Trading costs doubled−0.25%Holds
1% most extreme trades trimmed on each side−0.23%Holds

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 38% of 926,990 trades hit the target first, for +0.15 R per trade on average against +0.15 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −71.2% on VRRM, signal of 2026-05-18.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Price crosses the Hull MA, bullish: real trade on ETH/USDT, 2026-07-20, daily chart
Most recentETH 2026-07-20 daily chartBought at the close of 2026-07-20 (1,905), sold 3 bars later, when the exit rule fired (1,878): −1.4% before costs.Against the other crypto pairs over the same bars, after costs: +0.8%.Hull MA
Price crosses the Hull MA, bullish: real trade on DOGE/USDT, 2021-04-10, daily chart
Best tradeDOGE 2021-04-10 daily chartBought at the close of 2021-04-10 (0.0637), sold 10 bars later, when the exit rule fired (0.3173): +398.0% before costs.Against the other crypto pairs over the same bars, after costs: +430.4%.Hull MA
Price crosses the Hull MA, bullish: real trade on VRRM, 2026-05-18, daily chart
Worst tradeVRRM 2026-05-18 daily chartBought at the close of 2026-05-18 (13.37), sold 6 bars later, when the exit rule fired (3.85): −71.2% before costs.Against the other stocks over the same bars, after costs: −72.2%.Hull MA
Price crosses the Hull MA, bullish: real trade on MTH, 2017-06-19, daily chart
Typical tradeMTH 2017-06-19 daily chartBought at the close of 2017-06-19 (18.94), sold 3 bars later, when the exit rule fired (18.80): −0.7% before costs.Against the other stocks over the same bars, after costs: +0.4%.Hull MA

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily806,952+0.16%36%−0.14%Lagged the market
ETFsdaily28,615+0.08%38%−0.09%Inconclusive
Indicesdaily15,047+0.22%41%n/aNot measured
Forexdaily9,839+0.01%35%−0.03%No edge found
Cryptodaily62,720+0.47%31%−0.29%No edge found
Commoditiesdaily8,411+0.14%35%−0.13%No edge found
All markets4-hour455,811−0.004%32%−0.22%Lagged the market
Forex4-hour56,579−0.003%34%−0.03%No edge found
Crypto4-hour399,232−0.004%32%−0.25%Lagged the market
All marketsweekly170,749+1.09%39%−0.29%Lagged the market
Stocksweekly152,392+0.86%39%−0.31%Lagged the market
ETFsweekly5,822+0.68%41%+0.01%No edge found
Indicesweekly3,233+0.91%43%−0.13%No edge found
Forexweekly1,992−0.12%32%−0.14%No edge found
Cryptoweekly5,570+12.25%37%n/aNot measured
Commoditiesweekly1,740+0.66%37%−0.02%No edge found
Price crosses the Hull MA, bearishLagged the market, fragile

Entry: Close crosses below HMA(20). Exit: Opposite signal (stop and reverse).

In detail, all markets pooled

On daily bars, the rule fired 935,705 times on 2,360 assets (stocks, ETFs, indices, currency pairs, crypto pairs and commodity futures) between 1970 and 2026, about once every 9 bars on each asset.

The average trade returned −0.29% before costs and the median trade −1.06%; 31% of trades made money, and the gains added up to only 0.84 times the losses. For this sell signal, a trade gains when the price falls (a short sale).

A trade lasted 4 bars at the median, half of them between 1 and 7 bars.

Over exactly the same bars, compared with an equal-weight basket of the other assets of the same market, the trades ended −0.14% per trade after costs (95% interval −0.16% to −0.12%). For a sell signal, a positive number means the asset did worse than the others, as the signal announced.

Signals
935,7052,360 assets, 1970 to 2026
Average trade
−0.29%before costs; median −1.06%
Winning trades
31%profit factor 0.84
Median hold
4 barshalf between 1 and 7
Vs the market, after costs
−0.14%95% interval −0.16% to −0.12%

After the signal, bar by bar

Share of signals where the price had moved in the signal’s direction after N bars, against the same assets at random dates (before costs).

Bars after1351020
After the signal47.8%47.5%46.8%45.8%45.3%
Random dates48.2%47.4%47.0%46.2%45.3%

Over time

The history cut into three periods with the same number of signals: gap per trade against the rest of the market, before costs.

PeriodSignalsVs market, before costs
1970 to 2012311,943−0.05%
2012 to 2021312,041−0.002%
2021 to 2026311,721−0.07%

Stress tests

The same trades, measured again under harsher assumptions (vs market, after costs).

VariantVs marketResult
As tested: entry at the signal close, standard costs−0.14%
Entry at the next bar's open−0.12%Does not hold
Trading costs doubled−0.25%Holds
1% most extreme trades trimmed on each side−0.14%Holds

The result no longer holds when entering at the next bar's open instead of the signal close.

With the trade we run on chart patterns instead (stop at 2 ATR, target at twice the risk, entry at the signal close), 28% of 929,743 trades hit the target first, for −0.15 R per trade on average against −0.15 R for the same trade at random dates of the same assets: no measurable difference from random dates.

Worst single trade of the whole test: −348.6% on NU/USDT, signal of 2021-10-08.

Real trades from the test

Taken from the test itself on well-known assets: the indicator lines are the values the bench computed for that signal, the shaded zone is the time in the trade, from the signal close to the exit. Best and worst are chosen among these assets, not over the whole test.

Price crosses the Hull MA, bearish: real trade on DOGE/USDT, 2026-07-20, daily chart
Most recentDOGE 2026-07-20 daily chartSold short at the close of 2026-07-20 (0.0722), bought back 1 bar later, when the exit rule fired (0.0734): −1.7% before costs.Against the other crypto pairs over the same bars, after costs: −2.2%.Hull MA
Price crosses the Hull MA, bearish: real trade on SUNE, 2025-03-25, daily chart
Best tradeSUNE 2025-03-25 daily chartSold short at the close of 2025-03-25 (96.00), bought back 13 bars later, when the exit rule fired (4.00): +95.8% before costs.Against the other stocks over the same bars, after costs: +95.3%.Hull MA
Price crosses the Hull MA, bearish: real trade on DOGE/USDT, 2021-01-25, daily chart
Worst tradeDOGE 2021-01-25 daily chartSold short at the close of 2021-01-25 (0.008351), bought back 3 bars later, when the exit rule fired (0.0365): −337.1% before costs.Against the other crypto pairs over the same bars, after costs: −320.1%.Hull MA
Price crosses the Hull MA, bearish: real trade on PFGC, 2025-05-16, daily chart
Typical tradePFGC 2025-05-16 daily chartSold short at the close of 2025-05-16 (88.09), bought back 7 bars later, when the exit rule fired (89.01): −1.0% before costs.Against the other stocks over the same bars, after costs: −3.9%.Hull MA

Market by market

MarketBarsSignalsAvg tradeWinnersVs market, after costsResult
Stocksdaily810,318−0.34%30%−0.13%Lagged the market, fragile
ETFsdaily28,620−0.24%30%−0.08%No edge found
Indicesdaily15,045−0.12%31%n/aNot measured
Forexdaily9,835−0.002%33%−0.03%No edge found
Cryptodaily63,475+0.26%38%−0.35%Inconclusive
Commoditiesdaily8,412−0.15%33%−0.13%No edge found
All markets4-hour457,965−0.04%34%−0.22%Lagged the market, fragile
Forex4-hour58,112−0.01%33%−0.03%No edge found
Crypto4-hour399,853−0.05%34%−0.25%Lagged the market, fragile
All marketsweekly174,111−1.25%28%−0.19%Lagged the market
Stocksweekly154,867−1.35%28%−0.22%Lagged the market
ETFsweekly5,829−0.67%27%−0.01%No edge found
Indicesweekly3,236−0.55%27%−0.13%No edge found
Forexweekly1,998−0.14%33%−0.11%No edge found
Cryptoweekly6,432+0.47%41%n/aNot measured
Commoditiesweekly1,749−0.82%31%−0.08%No edge found

Each strategy enters at the close of the signal bar and exits at the exit it teaches, without a stop. The test compares the asset with an equal-weight basket of the other assets of its market over exactly the same bars, net of trading costs; for a sell signal, beating the market means the asset did worse than the others. A result is shown as beating or lagging the market only when it survives a correction for the number of tests and holds in both halves of the history; it is marked fragile when entering at the next open, doubling costs or trimming extreme trades removes it. Daily index bars are not compared with other indices, because their closes fall at different hours; “Not measured” also covers samples too small to test. Rules were fixed before any result was seen. How we test

Frequently asked questions

What is the Hull moving average formula?

HMA = WMA(2 × WMA(close, n / 2) − WMA(close, n), √n), with the half period and the square root rounded down to whole numbers, as Alan Hull writes it.

What is the best setting for the Hull moving average?

The MetaStock code Hull publishes uses 20 as its default input. Shorter lengths turn more often; on our data a 55-bar Hull average made fewer than half as many trades as a 20-bar one. There is no setting that suits every market.

Is the Hull moving average better than the EMA?

It lags less: on our daily data, about 3 bars for a 20-bar HMA against 6 to 7 for a 20-bar EMA, measured in our moving average guide. It is also noisier, so it gives more false turns. Better depends on whether you value speed or fewer signals.

How do you trade the Hull moving average?

Hull recommends its turning points: up for an entry or exit to the long side, down for the short side. He advises against trading price crossings of the line. On our two daily series the turning point rule beat holding on falling Bitcoin and lost to holding on the rising S&P 500 ETF. Across markets after costs, our bench found it lagged the market.

Who invented the Hull moving average?

Alan Hull, who writes on his website that he developed it in 2005.

Sources

  1. Alan Hull, Hull Moving Average
  2. MetaTrader 5 Help, Moving Average (linear weighted moving average)
, Founder of PatternsWizard

Passionate about finance, quantitative trading and data analysis. Amaury built the PatternsWizard test bench, which detects each pattern on full price history and measures what happened next against random entries.

PatternsWizard tests chart and candlestick patterns on full market history, against random entries. How we test patterns.

179 patterns testedRandom-walk self-test passed

All trend indicators articles