Tested by BacktestingMax
Hull Moving Average turn (Hull Suite) strategy backtest
Does the Hull Moving Average turn (Hull Suite) strategy make money?
Mostly no, with the standard rules. 11 out of 32 backtests made money from 2019 to 2025, after trading costs: 8 markets, each on 4 charts. None made money on 15-minute charts, 3 out of 8 on 1-hour, 2 out of 8 on 4-hour and 6 out of 8 on daily charts. The Hull Moving Average (HMA), the line of the Hull Suite indicator, follows price with little delay. We used length 55. The strategy buys when the HMA turns up (it is above its value 2 candles ago) and sells short when it turns down. The next turn closes the trade and opens one the other way: stop and reverse. The stop-loss is 2 ATR away (ATR is how far price moves in an average candle). Only 3 tests made money in both 2019–2022 and 2023–2025 with at least 100 trades. A 200 EMA filter helped most: buy only when the close is above the 200 EMA (a moving average that weights recent closes more), sell short only below it. With it, 18 out of 32 made money. We picked it using 2019–2022 only. In 2023–2025, it was close overall (13 out of 32, against 12 out of 32), but on 4-hour charts 5 out of 8 made money, against 3 out of 8. On daily charts over 2014–2025, the standard rules made under +13% on every market, while buying and holding gold made +253%.
32 backtests 2019–2025 Trading costs included Tested 23 November 2026
Where it worked 32 backtests- Made money
- 5 of 32 tests, with the standard rules
- Made money in both periods
- 3 2019–2022 and again 2023–2025
- Best backtest
- +684% USD/JPY, 1-hour chart: account growth 2019–2025
- With a 200 EMA trend filter
- 8 tests made money in both periods, compared with 3 with the standard rules
Made money in both periods
- USD/JPY, 1-hour
- Gold, 1-hour
- Gold, 4-hour
Lost money on every market
- 15-minute charts
The results
Results on every market
Each box shows one backtest of the Hull Moving Average Turn (Hull Suite) with the standard rules, from 2019 to 2025, after trading costs: the % result, and a small chart of the account balance. The solid line is the account balance and the dashed line is the starting balance. Green results made money; red results lost money. Under each result: whether it made money in both 2019–2022 and 2023–2025, or passed all four of our checks (see "How a test passes" further down).
| Market | 15-minute | 1-hour | 4-hour | daily |
|---|---|---|---|---|
| EUR/USD | −100% Lost money. Account down 90% by Feb 2020 | −77% Lost money | −7% Lost money | −0.2% Too few trades |
| GBP/USD | −99% Lost money. Account down 90% by Mar 2021 | −42% Lost money | −7% Lost money | +2% Too few trades |
| USD/JPY | −98% Lost money. Account down 90% by Jul 2020 | +684% Made money in both periods | −5% Lost money | +10% Too few trades |
| AUD/USD | −100% Lost money. Account down 90% by Jan 2020 | −70% Lost money | −45% Lost money | −6% Too few trades |
| Gold | −98% Lost money. Account down 90% by May 2021 | +123% Made money in both periods | +36% Made money in both periods | +14% Too few trades |
| Silver | −98% Lost money. Account down 90% by May 2019 | −60% Lost money | +0.3% Made money overall, lost in one period | +10% Too few trades |
| Nasdaq 100 | −75% Lost money | +27% Made money overall, lost in one period | −14% Lost money | +4% Too few trades |
| S&P 500 | −83% Lost money | −15% Lost money | −13% Lost money | +12% Too few trades |
All the numbers, test by test
| Market | Chart | Trades | Win rate | Profit factor | Result | Max drawdown | 2019–2022 | 2023–2025 | Monte Carlo drawdown | Trading costs |
|---|---|---|---|---|---|---|---|---|---|---|
| EUR/USD | 15-minute | 4,457 | 27.1% | 0.72 | −99.5% | −99.5% | −99.1% | −45.7% | −99.7% | $5,390 |
| EUR/USD | 1-hour | 2,007 | 30.4% | 0.86 | −77.1% | −77.8% | −62.9% | −38.3% | −86.3% | $3,357 |
| EUR/USD | 4-hour | 478 | 32.8% | 0.98 | −7.2% | −44.6% | +29.0% | −28.1% | −39.6% | $839 |
| EUR/USD | daily | 80 | 38.8% | 0.99 | −0.2% | −5.3% | −4.0% | +4.0% | −13.5% | $43 |
| GBP/USD | 15-minute | 4,573 | 27.3% | 0.80 | −99.1% | −99.2% | −98.5% | −42.0% | −99.5% | $6,560 |
| GBP/USD | 1-hour | 1,999 | 32.6% | 0.96 | −41.7% | −62.3% | +3.2% | −43.5% | −73.1% | $6,118 |
| GBP/USD | 4-hour | 484 | 36.2% | 0.97 | −7.1% | −35.9% | +5.4% | −11.9% | −38.5% | $782 |
| GBP/USD | daily | 75 | 37.3% | 1.08 | +2.3% | −7.5% | −3.2% | +5.7% | −12.0% | $41 |
| USD/JPY | 15-minute | 7,675 | 29.1% | 0.80 | −97.6% | −98.8% | −96.7% | −26.5% | −99.0% | $7,660 |
| USD/JPY | 1-hour | 1,980 | 33.2% | 1.28 | +683.9% | −31.9% | +120.5% | +255.6% | −46.4% | $12,287 |
| USD/JPY | 4-hour | 495 | 30.9% | 0.98 | −4.6% | −22.4% | +11.3% | −14.3% | −41.3% | $720 |
| USD/JPY | daily | 80 | 33.8% | 1.28 | +9.7% | −15.7% | −2.0% | +11.9% | −14.3% | $42 |
| AUD/USD | 15-minute | 3,918 | 28.8% | 0.71 | −99.5% | −99.5% | −99.0% | −46.5% | −99.6% | $6,577 |
| AUD/USD | 1-hour | 1,976 | 32% | 0.89 | −70.2% | −73.5% | −48.2% | −42.4% | −82.1% | $5,409 |
| AUD/USD | 4-hour | 534 | 29.6% | 0.80 | −44.7% | −61.9% | −21.5% | −29.6% | −56.6% | $860 |
| AUD/USD | daily | 78 | 30.8% | 0.86 | −5.7% | −15.3% | +8.8% | −13.4% | −18.2% | $62 |
| Gold | 15-minute | 4,399 | 27.5% | 0.86 | −97.9% | −98.2% | −95.5% | −53.4% | −98.8% | $13,352 |
| Gold | 1-hour | 1,856 | 32.2% | 1.10 | +122.8% | −37.1% | +35.9% | +63.9% | −53.8% | $7,517 |
| Gold | 4-hour | 487 | 32.6% | 1.13 | +36.1% | −35.8% | +7.1% | +27.1% | −33.0% | $861 |
| Gold | daily | 79 | 32.9% | 1.45 | +14.0% | −6.1% | +2.8% | +10.8% | −11.3% | $41 |
| Silver | 15-minute | 802 | 20.7% | 0.36 | −98.1% | −98.1% | −98.1% | 0.0% | −98.3% | $9,144 |
| Silver | 1-hour | 1,850 | 30.3% | 0.90 | −59.5% | −73.1% | −44.2% | −27.5% | −78.0% | $12,200 |
| Silver | 4-hour | 492 | 30.9% | 1.00 | +0.3% | −26.2% | −5.3% | +5.9% | −38.0% | $1,989 |
| Silver | daily | 70 | 35.7% | 1.38 | +10.4% | −9.2% | +9.5% | +0.9% | −11.0% | $95 |
| Nasdaq 100 | 15-minute | 7,302 | 29.2% | 0.97 | −75.1% | −83.7% | −33.6% | −62.5% | −96.2% | $20,408 |
| Nasdaq 100 | 1-hour | 1,841 | 31.8% | 1.02 | +27.3% | −29.9% | +67.9% | −24.1% | −62.2% | $4,311 |
| Nasdaq 100 | 4-hour | 462 | 33.1% | 0.93 | −14.0% | −21.1% | −15.1% | +1.3% | −40.4% | $348 |
| Nasdaq 100 | daily | 71 | 36.6% | 1.15 | +4.4% | −4.0% | +4.3% | +0.1% | −10.6% | $17 |
| S&P 500 | 15-minute | 7,451 | 29.3% | 0.97 | −83.3% | −91.9% | +18.1% | −85.8% | −97.1% | $24,677 |
| S&P 500 | 1-hour | 1,835 | 30.9% | 0.99 | −14.5% | −54.4% | +37.0% | −37.6% | −68.7% | $4,918 |
| S&P 500 | 4-hour | 506 | 33% | 0.95 | −13.2% | −22.4% | −2.3% | −11.2% | −43.2% | $499 |
| S&P 500 | daily | 65 | 40% | 1.38 | +11.7% | −5.1% | +5.8% | +5.6% | −10.9% | $22 |
Profit factor is the money won divided by the money lost. Above 1 means the test made money. Max drawdown is the biggest fall from the highest balance. 2019–2022 and 2023–2025 show the result in each period on its own. Monte Carlo drawdown: we shuffled the trades into a random order 1,000 times; in 95% of those runs, the worst drawdown was this number or less. Result is the change in the account, with the risk of each trade set to 1% of the account at that time.
The account balance
The best test and the middle test
What we found
What the 32 backtests show
The HMA turned about 4 to 5 times every 100 candles on 1-hour, 4-hour and daily charts, A typical trade lasted 18 to 22 candles (see the first table below). 1R is the money a trade risked at its stop-loss: 1% of the account when the trade opened. Trades that hit the stop-loss lost about 1R. Trades that the next turn closed made +0.56R to +0.63R on average, and about half of them made money. So the strategy needs a trend now and then, and wins only about 1 trade in 3. On 15-minute charts, the spread cost $6.92 for every $100 risked, against $0.59 on daily charts, and all 8 tests lost between 75% and 99.5% of the starting $10,000. Daily charts had the best average trade, +0.082R, but 65 to 80 trades on each market from 2019 to 2025 are too few to judge.
Reading the turn over 1 candle instead of 2 made almost no difference. Alan Hull's own turning point compares the HMA with its value 1 candle ago. The Hull Suite compares it with its value 2 candles ago, and the standard rules do the same. The one-candle turn opened 1.6% to 3.2% more trades on each chart: 15,829 instead of 15,344 on 1-hour charts, and 4,062 instead of 3,938 on 4-hour charts. 12 out of 32 backtests made money with it, compared with 11 out of 32. On 1-hour charts, the same 3 markets made money with the 1-candle turn as with the standard rules: USD/JPY, gold and the Nasdaq 100. A likely reason is that the HMA is smooth. Once it has turned, it rarely turns back within one candle.
The 200 EMA filter helped by cutting the sells. The filter buys only when the turn candle closes above the 200 EMA, and sells short only when it closes below. On 4-hour charts, with the 8 markets added together, the sells went from −210.5R to −62.8R. The buys stayed about the same: +172.3R and +188.0R. The filter halved the number of trades, from 3,938 to 2,040. 7 out of 8 tests made money on 4-hour charts, compared with 2 out of 8 with the standard rules (see the second table below). A likely reason is that gold, silver and the two stock indices rose a lot from 2019 to 2025, so many sells went against the rise. But the filter did not fix 15-minute charts: all 8 tests still lost, from −21.7% to −99.3%.
USD/JPY and gold did best on 1-hour charts, but they did not work on every chart. USD/JPY made +683.9% on 1-hour charts from 2019 to 2025. It grew the account by +120.5% in 2019–2022, and then by +255.6% in 2023–2025, starting from that bigger account. Gold made +122.8%. On other charts, USD/JPY lost 4.6% on 4-hour charts and 97.6% on 15-minute charts, and gold lost 97.9% on 15-minute charts. USD/JPY on 1-hour charts made money even without its 10 best trades: the other 1,970 trades made +120.3R. Gold on 1-hour charts did not. Its 10 best trades made +107.1R, and the other 1,846 trades lost 3.3R. Buying and holding gold from 2019 to 2025 made +237%, more than the strategy did.
Over 12 years on daily charts, the results were small. From 2014 to 2025, with the standard rules, 5 out of 8 markets made money: GBP/USD +1.0%, USD/JPY +1.6%, gold +12.9%, silver +2.1% and the S&P 500 +7.0%. EUR/USD (−9.0%), AUD/USD (−16.3%) and the Nasdaq 100 (−1.2%) lost. From 2014 to 2021, only 2 out of 8 made money (gold +3.4%, silver +4.9%). From 2022 to 2025, 4 out of 8 did. All 8 markets together made +4.1R in 1,110 trades, and 2015, 2016, 2018 and 2019 each lost more than 8R (see the last table below). Buying and holding from 2014 to 2025 made +252.8% on gold, +257.8% on silver, +270.6% on the S&P 500 and +603.2% on the Nasdaq 100.
How often it trades
On 1-hour, 4-hour and daily charts, the HMA turned about 4 to 5 times every 100 candles, and a typical trade lasted 18 to 22 candles
These numbers come from the standard rules, from 2019 to 2025. A typical trade is the median: half of the trades were shorter, half longer. The time in brackets includes weekends. The average trade is the result of all trades of the 8 markets of each chart added together, after trading costs, divided by the number of trades. Trading costs show what the spread cost for every $100 the trades risked.
| Chart | Trades a year, on each market | A typical trade | Trades that hit the stop-loss | Trading costs per $100 risked | Average trade, after costs |
|---|---|---|---|---|---|
| 15-minute | 1,043 to 1,096 on USD/JPY, the S&P 500 and the Nasdaq 100; 115 to 653 on the other 5 markets, because signals were skipped once their accounts fell below $1,000 | 15 candles (3.7 hours) | 40.1% | $6.92 | −0.061R |
| 1-hour | 262 to 287 | 18 candles (18 hours) | 38.2% | $3.20 | +0.004R |
| 4-hour | 66 to 76 | 22 candles (3.7 days) | 38.9% | $1.75 | −0.010R |
| Daily | 9 to 11 | 21 candles (21 days) | 35.1% | $0.59 | +0.082R |
On every chart, trades that hit the stop-loss lost 0.86R to 1.01R on average. Trades that the next turn closed made +0.56R to +0.63R on average, and about half of them made money. On a 15-minute chart the stop-loss is close to the entry price, so the same spread is a bigger share of what a trade risks.
The 200 EMA filter
On 4-hour charts, the filter cut the losses on sells, and 7 out of 8 markets made money
These numbers come from the 8 markets on 4-hour charts, from 2019 to 2025, added together, in R, after trading costs. The standard rules traded 3,938 times. With the 200 EMA filter, they traded 2,040 times.
- Standard rules
- −38.2R 2 out of 8 markets made money, in 3,938 trades.
- With the 200 EMA filter
- +125.1R 7 out of 8 markets made money, in 2,040 trades.
- Sells
- −210.5R → −62.8R 1,974 sell trades with the standard rules, 849 with the filter.
- Buys
- +172.3R → +188.0R 1,964 buy trades with the standard rules, 1,191 with the filter.
The filter buys only when the turn candle closes above the 200 EMA, and sells short only when it closes below. A turn the other way still closes an open trade.
Daily charts, 2014 to 2025
On daily charts, the 8 markets together lost more than 8R in 4 years out of 12
Each bar is the result of all trades that opened in that year, for the 8 markets added together, after trading costs, in R. The years follow the entry time in New York. The first trades in 2014 opened in April.
- 201467 trades +21.9R
- 2015112 trades −16.6R
- 2016104 trades −30.8R
- 201790 trades +2.2R
- 2018113 trades −14.6R
- 2019104 trades −8.3R
- 202091 trades +12.3R
- 202186 trades −0.1R
- 202285 trades +21.0R
- 202388 trades +8.2R
- 202481 trades +10.2R
- 202589 trades −1.2R
All 12 years together: +4.1R in 1,110 trades.
The strategy
What the Hull Moving Average Turn (Hull Suite) is
The Hull Moving Average (HMA) is an indicator that Alan Hull made to fix a problem of moving averages: they follow price late. It uses the weighted moving average (WMA), which gives the newest candle the biggest weight and the oldest candle the smallest. The HMA takes two WMAs of the closing prices: one over the last 27 closes (half of 55) and one over the last 55 closes. It doubles the short one and subtracts the long one. This removes much of the delay. Last, a WMA over the last 7 of these values (the square root of 55, rounded) smooths the result into one line. The Hull Suite is an indicator on TradingView, by InSilico, that draws this line. We used the same line, with mode Hma and length 55. The HMA is one line, so traders can read its direction instead of waiting for two lines to cross. In the Hull Suite, the line turns up when it is above its value 2 candles ago, and down when it is below. Alan Hull's own turning point is a little faster: the HMA is above, or below, its value 1 candle ago. The strategy we tested trades every turn of the line. It buys at a turn up, sells short at a turn down, and always reverses at the next turn. So it has a trade open most of the time.
- Hull Moving Average
- HMA 55 on the close: a WMA over 7 values of 2 × WMA 27 − WMA 55. This is the same line as the Hull Suite on TradingView, with mode Hma and length 55.
- Turn
- Up when the HMA is above its value 2 candles ago, down when it is below. The first direction does not trade.
- Stop-loss
- 2 × ATR(14) from the close of the last candle before the trade opens. The ATR uses Wilder's average, a slow moving average. The stop-loss does not move.
- Exit
- The next turn the other way closes the trade at the next candle's open. The new trade opens one candle later, after the closing has filled. If the HMA turned back during that candle, the waiting trade is dropped, and the turn back is a new signal.
- Take-profit
- None.
- Risk per trade
- 1% of the account, which started at $10,000. The trade size is worked out at the close of the last candle before the trade opens, so a loss at the stop-loss is about 1%. When price jumped past the stop-loss, the loss was bigger. With the standard rules, 130 out of 40,577 trades on 15-minute charts lost more than 1.5R: 81 of them on silver, where the spread (see 'Trading costs') was large next to the stop-loss. On 1-hour charts it was 21 out of 15,344 trades, on 4-hour charts 7 out of 3,938, and on daily charts none. The biggest loss was −7.44R: a Nasdaq 100 trade on the 15-minute chart on 17 February 2020, a US holiday.
- Trading costs
- The spread, which is the gap between the buy price and the sell price. On currency pairs, the spread is in pips: a pip is 0.0001 on EUR/USD, GBP/USD and AUD/USD, and 0.01 on USD/JPY. The spread is 0.8 pips on EUR/USD, 1.2 on GBP/USD, 0.9 on USD/JPY and 1.0 on AUD/USD. It is $0.30 an ounce on gold and $0.020 on silver, and 0.4 points on the S&P 500 and 1.5 on the Nasdaq 100. For silver and the Nasdaq 100, these are wider than our backtest engine's own spreads, to match a typical retail broker. Every order in this test is a market order or a stop-loss, so each trade pays half the spread when it opens and half when it closes. There is no commission. For every $100 the trades risked, the spread cost $6.92 on 15-minute charts, $3.20 on 1-hour charts, $1.75 on 4-hour charts and $0.59 on daily charts.
- Smallest trade size
- A trade that risks 1% can be smaller than the smallest trade a market allows. The smallest trades are 1,000 units of a currency pair, 1 ounce of gold, 50 ounces of silver and 0.1 of an index contract. A trade can also need more margin than the account has. Then the test skips the signal and waits for the next turn. On 1-hour, 4-hour and daily charts, with the standard rules, this happened 55 times, all on silver, gold and the Nasdaq 100, and 52 of them in 2025, when these markets moved the most: 48 silver signals, 5 gold and 2 Nasdaq 100. 37 of the 48 silver signals were on the 1-hour chart, after the silver 1-hour account had fallen below $5,000. In the daily tests from 2014 to 2025, it happened 14 times: 8 on silver, 5 on gold and 1 on the Nasdaq 100. On 15-minute charts, it happened 23,295 times. Almost all of these came after the account had fallen below $1,000. On silver, 7,217 out of 8,019 signals were skipped, so the 15-minute silver test made only 802 trades, the last in February 2020. On the Nasdaq 100 and the S&P 500, only 2 signals each were skipped.
- Overnight fees
- Not included. Brokers charge a fee (a swap), or sometimes pay one, for each night a trade stays open. With the standard rules, half of the trades stayed open longer than 3.7 hours on 15-minute charts and 18 hours on 1-hour charts. On 4-hour charts it was 3.7 days, and on daily charts 21 days.
- Price data
- CFD prices: the prices a broker quotes for a CFD (contract for difference), the product most brokers outside the US offer for trading these markets. The strategy leaves out two kinds of candle. One kind opens on a Friday at 17:00 New York time or later. The other is flat: the high equals the low, for example on a market holiday. They don't count for the HMA, the ATR or the 200 EMA. When no candle is left out, the HMA is the same as BacktestingMax's own Hull Suite indicator.
- Silver data
- Our silver data has a few wrong prices on 1 June 2023, for 7 minutes. Three silver 1-hour trades were open that day (+0.85R, −0.58R and −0.10R), and so were one silver 4-hour trade (+0.69R) and one silver daily trade (about 0R). We did not run the tests again without those wrong prices. Without the three 1-hour trades, silver on 1-hour charts would still have lost money.
The rules we tested
- Work out the HMA with length 55 on the closing prices of the chart's candles: 15-minute, 1-hour, 4-hour or daily. It is a WMA (weighted moving average) over the last 7 values of 2 × (WMA of 27 closes) − (WMA of 55 closes).
- Compare the HMA with its value 2 candles ago. If it is above, the HMA points up. If it is below, it points down. If the two values are equal, the direction stays the same. The first direction does not trade.
- Buy when the HMA turns up: it pointed down on the candle before, and it points up now. Sell short when it turns down. Selling short means selling first and buying back later, so the trade makes money if price falls. We read the HMA when each candle closes, and the trade opens at the next candle's open.
- Put the stop-loss 2 times the ATR away from the close of the last candle before the trade opens. The ATR (average true range) is how far price moves in an average candle, over the last 14 candles. The stop-loss does not move. After a stop-loss, wait for the next turn. The strategy never buys again on the same turn up.
- Stop and reverse: the next turn the other way closes the trade at the next candle's open. The new trade opens one candle later, when the closing has filled. If the HMA turned back during that candle, the new trade is dropped, and the turn back counts as a new signal.
- There is no take-profit: a trade stays open until its stop-loss or the next turn.
- Size every trade so that a loss at the stop-loss costs 1% of the account. Only one trade is open at a time.
The method
How we tested it
The test
- Markets
- EUR/USD, GBP/USD, USD/JPY, AUD/USD, Gold, Silver, Nasdaq 100 and S&P 500
- Charts
- 15-minute, 1-hour, 4-hour and daily candles
- Dates
- January 2019 to December 2025
- Account
- $10,000, risking 1% of the account on each trade
- Trading costs
- Included. Every trade pays that market's normal trading cost: the spread, which is the gap between the buy price and the sell price.
How a test passes
We call a test passed only if it meets all four checks. A strategy can make money in one backtest and still fail one of these checks.
- At least 100 trades. With fewer trades, a good result could be luck.
- It made money from 2019 to 2022 and again from 2023 to 2025. This shows whether the strategy kept working in the newer years, not only in the older ones.
- A profit factor (the money won divided by the money lost) of at least 1.2 from 2023 to 2025, after trading costs.
- In 95% of 1,000 random shuffles of the trades, the account must not fall more than 30% from its highest point.
Improvements
Can the Hull Moving Average Turn (Hull Suite) be improved?
We tried three changes, one at a time, on the same 32 tests. Alan Hull's own turning point compares the HMA with its last value, not with its value 2 candles ago. A 200 EMA filter is a common way to trade only with the long trend. A take-profit at 2R makes a trade close when it has made twice what it risked. If you pick the best change and judge it on the same years, it will almost always look good. So we picked the best change using 2019–2022 only, by the number of tests that made money, and then checked it on 2023–2025.
| Version | Made money 2019–2022years used to pick the best version | Made money 2023–2025years not used to pick it | Made money in both periods | Passed all four checks |
|---|---|---|---|---|
| Standard rules: Hull Suite turn, HMA 55 The rules above, with nothing changed. | 15 of 32middle test −2.1% | 12 of 32middle test −13.9% | 3 | 0 |
| Turn against the previous candle (Alan Hull's turning point) The HMA turns up when it is above its value 1 candle ago, instead of 2 candles ago, and down when it is below. Everything else stays the same. | 14 of 32middle test −4.4% | 11 of 32middle test −15.2% | 4 | 0 |
| With a 200 EMA trend filterBest on 2019–2022 Buy only when the turn candle closes above the 200 EMA, and sell short only when it closes below. The EMA (exponential moving average) is an average of the closing prices that gives more weight to recent candles. A turn the other way still closes an open trade. | 19 of 32middle test +3.5% | 13 of 32middle test −3.4% | 8 | 3 |
| With a take-profit at 2R Add a take-profit at 2 times the distance to the stop-loss, measured from the close of the last candle before the trade opens. A turn the other way still closes the trade if it comes first. | 15 of 32middle test −4.1% | 12 of 32middle test −11.9% | 3 | 0 |
The 200 EMA filter did best in 2019–2022, the years we used to pick the change. 19 out of 32 tests made money, compared with 15 out of 32 with the standard rules, 14 with the one-candle turn and 15 with the take-profit. In 2023–2025, the years we kept for the check, 13 out of 32 filter tests made money, compared with 12 out of 32 with the standard rules. In 2023–2025, the middle test (half of the 32 did better, half worse) lost 3.4% with the filter, compared with 13.9% with the standard rules. Most of the gain was on 4-hour charts: 5 out of 8 tests made money in 2023–2025, compared with 3 out of 8. On 1-hour charts it was 3 out of 8, compared with 2 out of 8. On daily charts it was 5 out of 8, compared with 7 out of 8, but each filtered daily test had only 30 to 41 trades, too few to judge. The filter had 8 tests that made money in both periods with at least 100 trades. They were USD/JPY, gold and silver on 1-hour charts, and USD/JPY, gold, silver, the Nasdaq 100 and the S&P 500 on 4-hour charts. The standard rules had 3. The one-candle turn made money in 12 out of 32 tests over 2019–2025: 0, 3, 2 and 7 by chart, from 15-minute to daily. 4 of them made money in both periods with at least 100 trades: USD/JPY and gold on 1-hour charts, and gold and silver on 4-hour charts. The take-profit at 2R made money in 12 out of 32 tests, but only 3 made money in both periods with at least 100 trades. They were USD/JPY, the Nasdaq 100 and the S&P 500 on 4-hour charts. On 1-hour charts, only 1 out of 8 made money, compared with 3 out of 8. On 15-minute charts, no version made money in any test over 2019–2025.
Passed all four checks with a 200 EMA trend filter
- USD/JPY, 4-hour
- Gold, 4-hour
- Nasdaq 100, 4-hour
Questions
Questions traders ask
Is the Hull Suite a good indicator?
Not on its own, in our backtest. It draws a smooth line that follows price closely, but trading every turn mostly did not make money. With the standard rules, 11 out of 32 tests made money from 2019 to 2025, after trading costs. Only 3 made money in both 2019–2022 and 2023–2025 with at least 100 trades: USD/JPY and gold on 1-hour charts, and gold on 4-hour charts. None of the 8 tests on 15-minute charts made money. A 200 EMA filter did better: 18 out of 32 made money, and 7 out of 8 on 4-hour charts. Test any setup on your own market before you trade it.
What is the best Hull Moving Average setting?
We cannot say from this test, because we tested one length only: 55, the length of the Hull Suite we used. We did not try other lengths, so we do not know whether 21, 34 or 100 would do better. What we did test was the way to read the turn. We compared the HMA with its value 2 candles ago (the Hull Suite) and 1 candle ago (Alan Hull's own turn). The results were almost the same: 11 and 12 out of 32 tests made money.
Does the Hull Moving Average repaint?
On a candle that has not closed yet, the HMA changes with every price move, so a turn can show up and then disappear. After the candle closes, its HMA value does not change. Our test used closed candles only: it reads the HMA when a candle closes, and the trade opens at the next candle's open. So the results do not depend on a turn that later disappeared.
Which timeframe is best for the Hull Moving Average turn?
With the standard rules, no chart was clearly best. From 2019 to 2025, daily charts had the most winners (6 out of 8), but each daily test had only 65 to 80 trades. Over 12 years on daily charts, 5 out of 8 made money, all under +13%, while buying and holding the Nasdaq 100 made +603% in the same years. On 15-minute charts, none made money, because every trade pays the spread and the strategy trades so often: the spread cost $6.92 for every $100 risked, against $0.59 on daily charts. With the 200 EMA filter, 4-hour charts did best: 7 out of 8 made money.
The strategy code we ran
This is the exact code from the BacktestingMax strategy engine. Paste it into the strategy editor in the app to run it on any market.
class HullMovingAverageTurn(Strategy):
"""The Hull Moving Average turn, traded as a stop-and-reverse system, plus the changes
traders argue about.
The Hull Moving Average (HMA, by Alan Hull) is a moving average made to follow price closely
without lagging. It is worked out from the closing prices in three steps, each a weighted
moving average (WMA: recent candles count more than old ones):
1. a WMA of the last 27 closes (half of 55, rounded down)
2. a WMA of the last 55 closes
3. the HMA is a WMA over the last 7 values (the square root of 55, rounded) of
2 x step 1 - step 2
This is the same line as the Hull Suite on TradingView (mode HMA, length 55).
Standard (all switches off): the HMA is turning up when it is above its value 2 candles ago,
and turning down when it is below that value. Buy when it turns up (it was down on the
candle before); sell short when it turns down. The first direction it shows does not trade,
only the first change after it. A trade opens at the next candle's open, with a stop-loss
2 x ATR(14) away from the close of the last candle before the trade opens (the ATR is the
average true range: how far price moves in an average candle; here it is Wilder's average
over 14 candles). Size so that the stop costs 1% of the account. The stop stays where it
is. The opposite turn closes the trade at the next candle's open, and a trade the other way
opens one candle later, once the old trade has closed. If the HMA turned back on that next
candle, the waiting trade is dropped and the turn back is a new signal. After a stop-loss, wait for the next turn:
the strategy never buys again on the same up-turn. One trade at a time.
Skipped candles: a candle that opens on a Friday at 17:00 New York time or later (the
markets in this test are closed then, but some S&P 500 and DAX data has a few minutes of
prices after the close, which make a tiny extra candle), and a flat candle (high = low: no
price change at all, for example on a market holiday). The strategy ignores them: they do
not go into the HMA, the ATR or the 200 EMA, and they can't be a signal. That is why the
lines are worked out here instead of with the built-in indicator (builtin:hull_suite gives
the same HMA when no candle is skipped). On a market that trades at the weekend, remove the
Friday skip.
The changes, one at a time:
turn_bars = 1 the turn is measured against the previous candle instead of 2 candles ago
(Alan Hull's own turning point: the HMA is above, or below, its last value).
Up to 5 candles ago is allowed.
ema_filter = 1 only buy when the close of the turn candle is above its 200 EMA (an
exponential moving average of the last 200 closes) and only sell short when
it is below. An opposite turn still closes an open trade, even when the
new trade is filtered out.
exit_rr = 2 add a take-profit at 2 times the risk (the distance from the close of the
last candle before the trade opens to the stop), measured from that
close; a turn still closes the trade.
"""
params = {"length": Param(type=int, default=55, min=4, max=500),
"turn_bars": Param(type=int, default=2, min=1, max=5),
"ema_filter": Param(type=int, default=0, min=0, max=1),
"exit_rr": Param(type=float, default=0.0, min=0.0, max=10.0),
"atr_mult": Param(type=float, default=2.0, min=0.5, max=10.0)}
lookback = 2
ema_length = 200
def init(self, ctx):
self.ny = ctx.clock("America/New_York")
n = ctx.params.length
self.half = max(1, n // 2)
self.root = max(1, int(round(n ** 0.5)))
self.closes = [] # the last `length` closes of the candles used
self.diffs = [] # the last `root` values of 2 x WMA(half) - WMA(length)
self.hull = [] # the last turn_bars + 1 HMA values
self.prev_candle_close = None
self.atr = None # Wilder's average of the true range (the ATR)
self.candles = 0
self.ema = None # 200 EMA of the close
self.direction = 0 # 1 = HMA above its value turn_bars ago, -1 = below, 0 = none yet
self.reverse_to = None # (side,): open this once the closing trade is gone
def skip(self, ctx):
"""A tiny candle after the Friday close, or a flat candle (see above)."""
friday_evening = self.ny.weekday == 4 and self.ny.hour >= 17
return friday_evening or ctx.high[0] == ctx.low[0]
@staticmethod
def wma(values, n):
"""Weighted moving average of the last n values: the newest counts n, the oldest 1."""
window = values[-n:]
return sum((i + 1) * v for i, v in enumerate(window)) / (n * (n + 1) / 2)
def update(self, ctx):
"""ATR, 200 EMA and the HMA on this candle. Returns the HMA, or None while warming up."""
n = ctx.params.length
high, low, close = ctx.high[0], ctx.low[0], ctx.close[0]
if self.prev_candle_close is None:
true_range = high - low
else:
true_range = max(high - low, abs(high - self.prev_candle_close),
abs(low - self.prev_candle_close))
self.prev_candle_close = close
self.candles += 1
if self.atr is None:
self.atr = true_range
else:
self.atr += (true_range - self.atr) / 14
self.ema = close if self.ema is None else self.ema + (close - self.ema) * 2.0 / (self.ema_length + 1)
self.closes.append(close)
if len(self.closes) > n:
self.closes.pop(0)
if len(self.closes) < n:
return None
self.diffs.append(2.0 * self.wma(self.closes, self.half) - self.wma(self.closes, n))
if len(self.diffs) > self.root:
self.diffs.pop(0)
if len(self.diffs) < self.root:
return None
return self.wma(self.diffs, self.root)
def on_bar(self, ctx):
if self.skip(ctx):
return
hma = self.update(ctx)
if hma is None or self.candles < 14:
return
bars = ctx.params.turn_bars
self.hull.append(hma)
if len(self.hull) > bars + 1:
self.hull.pop(0)
if len(self.hull) < bars + 1:
return
before = self.direction
if hma > self.hull[0]:
self.direction = 1
elif hma < self.hull[0]:
self.direction = -1
turn_up = before == -1 and self.direction == 1 # the first direction is not a turn
turn_down = before == 1 and self.direction == -1
use_ema = ctx.params.ema_filter == 1
if use_ema and self.candles < self.ema_length:
return
long_ok = (not use_ema) or ctx.close[0] > self.ema
short_ok = (not use_ema) or ctx.close[0] < self.ema
pos = ctx.position
if pos is not None:
if pos.is_long and turn_down:
ctx.close_position()
self.reverse_to = ("short",) if short_ok else None
elif pos.is_short and turn_up:
ctx.close_position()
self.reverse_to = ("long",) if long_ok else None
return
# A reversal waits one candle for the close to fill. Drop it if the HMA turned back.
pending, self.reverse_to = self.reverse_to, None
entry, atr, side = ctx.close[0], self.atr, None
if pending is not None:
# Stopped and sized from this candle, the last one before the trade opens.
if pending[0] == "long" and self.direction == 1:
side = "long"
elif pending[0] == "short" and self.direction == -1:
side = "short"
# No reversal waiting (or it was dropped because the HMA turned back): a turn on this
# candle is a new signal.
if side is None:
if ctx.gate("hma_turns_up", turn_up) and ctx.gate("close_above_ema200", long_ok):
side = "long"
elif ctx.gate("hma_turns_down", turn_down) and ctx.gate("close_below_ema200", short_ok):
side = "short"
if side is None:
return
distance = ctx.params.atr_mult * atr
rr = ctx.params.exit_rr
if side == "long":
stop = entry - distance
tp = entry + rr * distance if rr > 0 else None
if stop >= ctx.close[0] or (tp is not None and tp <= ctx.close[0]):
return
ctx.buy(size=ctx.size_by_risk_pct(0.01, stop=stop, entry=entry), sl=stop, tp=tp, tag="hma_long")
else:
stop = entry + distance
tp = entry - rr * distance if rr > 0 else None
if stop <= ctx.close[0] or (tp is not None and tp >= ctx.close[0]):
return
ctx.sell(size=ctx.size_by_risk_pct(0.01, stop=stop, entry=entry), sl=stop, tp=tp, tag="hma_short")
Your turn
Test the Hull Moving Average Turn (Hull Suite) yourself
Change the settings, the market or the stop-loss and see the result in seconds. Ask the BacktestingMax AI: Backtest the Hull Moving Average turn (Hull Suite, length 55) on USD/JPY, 1-hour chart: buy when the HMA turns up, sell short when it turns down (HMA above or below its value 2 candles ago), stop-loss 2 ATR, 1% risk per trade
.
Free account. No credit card needed.
See every strategy we tested Browse strategies shared by tradersBacktest on historical data with trading costs, run by BacktestingMax. Past results do not guarantee future results, and nothing here is financial advice. Updated 23 November 2026.