The short answer
Heikin Ashi has no period to optimise, so “settings” on gold really means entry rules: act on the first colour change, wait for two or three candles of the new colour, or wait for a strong candle with no opposite wick. On two years of hourly XAUUSD data with a $0.30 per ounce cost per trade, every rule we tested finished positive, but with thin edges. The best was two candles of the same colour, only in the direction of the 200 EMA: plus $1,872 an ounce, and positive in both years.
Heikin Ashi is a smoothing tool. It helps you stay in trends and see direction, but it trades often, so costs eat a large share of any edge.
What Heikin Ashi measures
Heikin Ashi (“average bar”) candles are built from averages:
- HA close = (open + high + low + close) ÷ 4 of the real bar
- HA open = the midpoint of the previous HA candle’s open and close
- HA high and low = the extremes of the real high or low and the HA open and close
The result is a chart where trends show as runs of same-coloured candles and noise is smoothed away. The trade-off is lag, and one big trap: HA prices are not real prices. The HA close of a bar can be several dollars away from where gold actually traded. For classic candlestick reading on real candles, see our lesson on candlestick patterns on gold.
The Heikin Ashi rules gold traders use
| Rule | Idea | Character |
|---|---|---|
| Colour change (1 candle) | Act on the first candle of a new colour | Fastest, most trades |
| 2 candles same colour | Wait for confirmation | Fewer false flips |
| 3 candles same colour | Wait longer | Later entries, fewer trades |
| Strong candle (no opposite wick) | Enter on a “flat-bottomed” bull or “flat-topped” bear candle | Momentum filter |
| 2 candles + 200 EMA filter | Only trade in the direction of the trend | Fewer, trend-aligned trades |
Why gold’s volatility changes things
Gold’s average daily range on COMEX futures went from about $34 in 2024 to $64 in 2025 and around $123 so far in 2026, and the hourly ATR(14) averaged $17.49 over our test window. Bigger hourly swings mean more colour changes inside what is really one trend, and each extra flip costs a spread. Higher volatility also widens the gap between HA prices and real prices, which makes HA-price backtests even more misleading.
We tested 5 Heikin Ashi rules on 2 years of hourly gold data
How we tested. COMEX gold futures (GC=F) 1-hour bars from 30 October 2024 to 30 October 2026, 11,445 bars, plus daily bars from January 2015. Rule: signals come from Heikin Ashi candles; go long after the required number of bullish HA candles that follow a bearish one, and short on the mirror image. Exit on the first opposite-colour HA candle. Every fill is at the real next-bar open, never an HA price. Each trade is 1 ounce and pays $0.30 per ounce for spread and slippage. Results are in US dollars per ounce; maximum drawdown is the largest fall in closed-trade equity. Year 1 ends on 30 October 2025.
For context, holding gold gained about $1,194 an ounce in year 1 and about $14 in year 2, with a run to about $5,627 in January 2026 and a sharp fall in between.
Hourly (H1) results
| Setting | Trades | Win rate | Avg per trade | Profit factor | Net result | Max drawdown | Year 1 | Year 2 |
|---|---|---|---|---|---|---|---|---|
| HA colour change (1 candle) | 2,849 | 34.2% | +$0.34 | 1.05 | +$964 | $960 | +$747 | +$217 |
| HA 2 candles same colour | 2,159 | 36.6% | +$0.82 | 1.12 | +$1,778 | $879 | +$1,338 | +$440 |
| HA 3 candles same colour | 1,594 | 36.9% | +$1.01 | 1.15 | +$1,611 | $587 | +$932 | +$679 |
| HA strong candle (no opposite wick) | 1,685 | 34.9% | +$0.79 | 1.10 | +$1,336 | $694 | +$1,295 | +$41 |
| HA 2 candles + 200 EMA filter | 1,130 | 38.0% | +$1.66 | 1.23 | +$1,872 | $625 | +$938 | +$934 |
Daily (D1) results since 2015
| Setting | Trades | Win rate | Avg per trade | Profit factor | Net result | Max drawdown | 2015–20 | 2021–26 |
|---|---|---|---|---|---|---|---|---|
| HA colour change (1 candle) | 784 | 37.5% | −$0.18 | 0.99 | −$141 | $1,028 | +$94 | −$234 |
| HA 2 candles same colour | 571 | 41.5% | +$1.49 | 1.12 | +$852 | $818 | +$161 | +$691 |
| HA 3 candles same colour | 413 | 38.3% | +$0.15 | 1.01 | +$62 | $1,271 | −$8 | +$70 |
| HA strong candle (no opposite wick) | 536 | 39.4% | +$0.52 | 1.04 | +$280 | $1,003 | −$85 | +$364 |
| HA 2 candles + 200 EMA filter | 304 | 40.5% | +$3.00 | 1.23 | +$912 | $460 | −$80 | +$991 |
What the results say, in plain English
- The edges are thin. The plain colour-change rule made 34 cents an ounce per trade on average. That is about the size of the cost we charged, which means a slightly worse spread would wipe it out. At $0.60 per round trip instead of $0.30, its $964 net result would shrink to about $109.
- Waiting helped. Two or three candles of confirmation roughly doubled or tripled the average per trade compared with acting on the first candle, and cut the number of trades.
- The trend filter was the best improvement. Adding a 200 EMA filter to the two-candle rule raised the profit factor from 1.12 to 1.23, lowered the drawdown and, unusually, made the result almost identical in both years (+$938 and +$934).
- The “strong candle” rule was a year-1 effect. It made $1,295 in year 1 and $41 in year 2.
- On daily data, results were weak. Only the two-candle rules made meaningful money, and the filtered version made almost all of it after 2020.
How to use Heikin Ashi on different timeframes
Scalping (M1 to M5). HA colour changes come thick and fast here, and each flip costs you a spread. Most scalpers use HA to hold a trade while candles stay one colour, not to enter on every flip. Check the cost per trade at your size with the gold pip calculator.
Intraday (M15 to H1). This is where our test found its best results. A two-candle confirmation in the direction of the H1 200 EMA is a simple, testable rule. Keep a normal candle chart open as well, so you see real prices for stops and entries.
Swing (H4 to D1). HA on daily charts gives clean visual trends but, in our test, a weak mechanical edge. Use it to judge whether a swing trend is intact rather than as an entry trigger.
A combination idea: HA for holding, EMA for direction, levels for entry
- Use the 200 EMA on H1 for direction.
- Enter on a real-price setup, such as a pullback to support that holds.
- Hold while the HA candles stay the trend colour; consider exiting after two opposite-colour HA candles.
- Set the stop beyond the real swing low, using real prices, and size it with the position size calculator.
Using HA only for the exit keeps its biggest strength, staying with a trend, without paying for every false flip.
Common mistakes with Heikin Ashi on gold
- Backtesting with HA prices. This is the big one. A tester that buys at the HA close can show large profits that are not real. Always fill at real prices; our backtesting lesson covers this kind of trap.
- Placing stops at HA highs and lows. Real price may have traded beyond them.
- Acting on every colour change. In our test that paid about $855 an ounce in costs for a tiny net result.
- Ignoring the trend. The filtered version was clearly better than the unfiltered one on both timeframes.
- Trusting the smooth look. HA hides noise, but the noise is still there in your fills.
These results come from simple mechanical rules on past data and are not recommendations. Thin edges like these are very sensitive to costs and can disappear with a wider spread or a different period.
Test it yourself
If your platform tests strategies on Heikin Ashi charts, check whether it fills at HA prices or real prices; many do the former by default. Generate the signal from HA, but fill at the real open of the next bar, and include your actual spread. Compare the first-candle rule with a two-candle rule and see whether the extra confirmation pays for its lag on your data. The gold indicator settings hub shows how HA compares with 11 other indicators under the same test.
Test it with other traders
Heikin Ashi charts are easy to share and easy to misread. Inside the XAUUSD Global community, traders compare HA rules on the same weeks of gold data and check each other’s backtests for the HA-price trap. The first month is free, then $19.99 a month.
Educational content only, not financial advice. Trading gold with leverage carries a high risk of loss.
Frequently asked questions
Does Heikin Ashi work on gold?
In our two-year hourly test, every Heikin Ashi rule finished positive after a $0.30 per ounce cost, but the edges were thin: profit factors from 1.05 to 1.23. The best was waiting for two candles of the same colour and only trading in the direction of the 200 EMA, which made $1,872 per ounce over 1,130 trades and was positive in both years.
What is the best Heikin Ashi setting for XAUUSD?
Heikin Ashi has no period setting; the choices are about how many candles you wait for and whether you filter. In our test, waiting for 2 or 3 candles of the new colour beat acting on the first one, and adding a 200 EMA direction filter improved the result further on both hourly and daily data.
Why is backtesting on Heikin Ashi candles misleading?
Heikin Ashi open and close prices are averages, not prices you could have traded. A backtest that fills orders at Heikin Ashi prices can show profits that never existed. We generated signals from Heikin Ashi candles but filled every trade at the real next-hour open.
Is Heikin Ashi good for gold scalping?
Acting on every colour change on the hourly chart produced 2,849 trades in two years and paid about $855 per ounce in costs. On M1 to M5 charts there would be many more. Scalpers who use Heikin Ashi usually use it to stay in a move, not to enter on every flip.
What is a strong Heikin Ashi candle?
A bullish Heikin Ashi candle with no lower wick, or a bearish one with no upper wick, is often read as strong momentum. In our test, entering on the first such candle was positive but weaker than simply waiting for two candles of the same colour, and almost all of its gain came in year 1.
Sources and further reading
- CME Group — Gold futures overview — Contract specifications and trading hours for COMEX gold
- CFTC — Commitments of Traders — Weekly futures positioning, including gold
- Investor.gov — Stop order — How stop orders work, and their limits in fast markets
External sites are independent of XAUUSD Global. Check dates and data yourself.