What Is Heikin Ashi? It Looks So Smooth Because It Does Not Draw Traded Prices

“After switching to Heikin Ashi, the trend is so clear, with bar after bar in the same colour. Doesn’t that make it easier to trade?”

It certainly looks smoother, but Heikin Ashi does not draw traded prices; it draws re-averaged numbers. Colour changes fall by half, in exchange for telling you a few bars later. And if a backtest uses the drawn prices directly, the results are overstated. This article first works it out once with a table, then looks at real pound prices, and finally uses 3,365 tests on 9 instruments to see how much it overstates.

This article is part of MASQuant’s “Trading Academy · Technical Indicators” series. All the indicators are sorted by category in Technical Indicators: The Complete Guide.

In one sentence

Heikin Ashi = candles drawn after re-averaging open, high, low and close.

Its close is the average of the four prices, and its open is the midpoint of the previous Heikin Ashi body. The Japanese name means “average bar”.

Heikin Ashi is like a beauty filter for the market: the skin looks smooth and the spots disappear, but that is not the original face. Trends look clearer because small opposite candles have been averaged away; what was averaged away has not vanished, you just cannot see it.

Work it out once: one Heikin Ashi candle

Suppose today’s real open, high, low and close are 100, 106, 98 and 104, and the previous Heikin Ashi candle had an open of 99 and a close of 101 (the following are round numbers for illustration, not market data):

Item Calculation Heikin Ashi Real candle
Close (100 + 106 + 98 + 104) ÷ 4 102 104
Open (99 + 101) ÷ 2 100 100
High Highest of 106, 100, 102 106 106
Low Lowest of 98, 100, 102 98 98

This table shows the most important point: today’s real close is 104, but the Heikin Ashi close is 102. That 102 was not the traded price at any moment; it is only a calculated number. The same goes for the open: the Heikin Ashi open comes from the previous candle and has no direct link to today’s real open. In this example both happen to be 100.

The formula

HA close = (open + high + low + close) ÷ 4
HA open = (previous HA open + previous HA close) ÷ 2
HA high = highest of high, HA open, HA close
HA low = lowest of low, HA open, HA close

Heikin Ashi comes from Japan. It is not among MT5’s chart types; look for Heiken Ashi in the Examples folder under custom indicators and overlay it on the chart. It is not a different market, just the same open, high, low and close redrawn.

Read the chart: GBP/USD in 2024, following 1 to 3

The chart below shows GBP/USD daily from April to November 2024, taken from MT5 historical prices. The candles on the chart are Heikin Ashi; the orange line is the real close. From 4 April to 20 June it ranged, ending just 0.1% from the start; from 21 June to 26 September it rose 6.1%; from 27 September to 22 November it fell 6.3%.

GBP/USD Heikin Ashi candles, April to November 2024: the rally shows bar after bar of hollow candles, the orange line is the real close, and after the high the candles change colour a few bars late
Chart: GBP/USD daily, 4 April – 22 November 2024, MT5 historical prices. The candles are Heikin Ashi: hollow means the Heikin Ashi candle closed up, filled means it closed down; the orange line is the real close. Grey shading marks the range and light orange shading marks the trend. Price is on the right, dates along the bottom, and the circled numbers match the notes below.
1

Colour changes fall by more than half (around 8 August 2024). Across the 163 bars on this chart, real candles changed colour 86 times, while Heikin Ashi changed only 34 times. In the rally, Heikin Ashi had up to 14 up candles in a row. Yet 9 real candles in this rally closed down and were drawn as up.

2

The high (26 September 2024). The real close was 1.34136 and the Heikin Ashi close 1.33699, a difference of 0.33%. Take the Heikin Ashi close as the current price and you will be off by this much.

3

The colour change (1 October 2024, 3 bars after the high). Only on this day did Heikin Ashi turn down, with a real close of 1.32839, already 1% below the high. This is the cost of fewer colour changes: at a reversal, it tells you later.

This is a real stretch of historical prices, used to show how Heikin Ashi behaves. It is not a general rule. Change the instrument, the timeframe or the period, and every number will change.

Statistics: how much do drawn prices overstate?

First, the daily data of 9 instruments on MT5 (forex, gold, silver, indices, Bitcoin and Ethereum) since 2015, 27,667 bars in all:

Item Real candles Heikin Ashi
Share of bars changing colour 51.2% 24.4%
Average run of the same colour 2.0 bars 4.1 bars

Colour changes really do fall by half, and the Heikin Ashi close sits an average of 0.25 ATR from the real close. Next, a test: buy when Heikin Ashi turns up, sell when it turns down, long only, no costs, 3,365 trades. The same signals, calculated at two kinds of price:

Price used Average per trade Share of winners
Drawn price (the Heikin Ashi close) +1.64% 52.8%
Price you can buy at (the next candle’s open after the signal) +0.64% 39.6%

With the same signals, the drawn prices add 1 percentage point per trade and 13 percentage points to the win rate. The extra cannot be earned, because nobody can buy at that price. When you see a Heikin Ashi backtest with a high win rate, first check which price it uses.

What you see, what it means

What you see What it usually means But be careful
Hollow candles in a row, no lower shadows A smooth rise Real down candles may be hidden inside (9 at 1 on the chart)
Filled candles in a row, no upper shadows A smooth fall Same as above
Colour change The market may be turning Already a few bars late (3 bars and 1% off the high at 3)
Small bodies with shadows on both sides No clear direction Common in ranges, where the colour keeps changing
The candle’s close The average of four prices Not a traded price, so do not use it for entries or stops

How to use it: three examples

Example 1: read direction on it, trade on real candles

Use Heikin Ashi as a filter for reading the trend, and use real prices for entries, stops and backtests. The rule can be written as: “Only consider going long after 3 Heikin Ashi up candles in a row, with the entry at the next real open.”

Example 2: less noise while holding

When you already hold a position, small opposite real candles can tempt you to leave early. Watching Heikin Ashi helps with that, but accept first that the exit will be a few bars late.

Example 3: always switch back to real prices in a backtest

If a strategy uses Heikin Ashi for signals, fills must use the real next open. Otherwise you get the gap between +1.64% and +0.64% in the table.

All three examples have to accept the same thing: Heikin Ashi changes what you see, not the market itself.

Common mistakes

1. Backtesting at drawn prices

In 3,365 tests, the average per trade goes from +0.64% to +1.64%, and the win rate from 39.6% to 52.8%. The extra does not exist.

2. Treating the Heikin Ashi close as the current price

On the day at 2 the difference was 0.33%. On volatile days it is larger, so stops and targets cannot be based on it.

3. Thinking that an unseen pullback is no pullback

In the rally, 9 real candles closed down that Heikin Ashi did not show. Your account’s floating profit and loss follows real prices and does not shrink because the chart looks smoother.

FAQ

What is Heikin Ashi?

Heikin Ashi is a type of candle drawn from averaged open, high, low and close. The Japanese name means “average bar”, and it makes trends look smoother.

How does Heikin Ashi differ from regular candles?

Regular candles draw the real open, high, low and close. In Heikin Ashi, the close is the average of the four prices and the open comes from the previous candle, so these are not traded prices.

Can Heikin Ashi be used in a backtest?

It can generate signals, but fills must use real prices. At drawn prices, the test on 9 instruments overstated the average per trade by 1 percentage point.

Does MT5 have Heikin Ashi?

Yes. It is in the Examples folder under custom indicators, named Heiken Ashi, and is overlaid on the chart.

Conclusion

Heikin Ashi is a good filter and a bad price quote. A smooth chart is one thing; a price you can actually buy at is another.

So the real question is: how much is left of your Heikin Ashi rule once it uses prices you can actually buy at? One stretch of historical prices cannot answer that; you have to backtest the rule over many stretches of the market.

Don’t have rules of your own yet, and don’t want to piece them together one indicator at a time? With MASQuant’s Strategy Genie, you just choose an investment style first; the AI analyses market conditions, selects instruments and gives you three candidate strategies at once. Each one has already been backtested on historical data, with its returns and maximum drawdown laid out in the open, and then you decide whether to deploy it to MT5.

If you already have an idea of your own, write the condition as one sentence, for example “buy at the next open after 3 Heikin Ashi up candles in a row”, give it to the AI Strategy Assistant, and press go to start the backtest. The backtest environment includes real market frictions such as spreads, slippage, changes in market liquidity and execution delays (see the AI Strategy Assistant guide for how to use it). The backtest uses real prices, so what you see is what you could actually have bought. A backtest tells you “how this rule performed in past market conditions”, not a guarantee about the future.

An idea only becomes a strategy once it’s been tested.

Not sure which strategy to use?

New here? Start with this 10-minute beginner’s guide. It walks you through picking your investment style, letting MASQuant’s Strategy Genie use AI to generate and backtest candidate strategies, and running one on an MT5 demo account, step by step.

Read the 10-Minute Beginner’s Guide →

Ready already? Sign in with Google to start for free. No credit card needed for your 15-day free trial.

All strategies and backtests are for reference only and do not constitute investment advice.

The price chart and statistics in this article are taken from historical prices on the MT5 platform (daily; quotes and daily candle cut-off times differ slightly between platforms, so values may not match exactly), and the indicators are calculated by a program using the standard formulas; the round numbers in the example are not market data. The statistics do not include spreads, commissions or slippage. Historical prices are used only to show how the indicator behaves and do not represent future price movements.

Risk disclosure: CFDs are high-risk financial products and can lead to rapid loss of capital. Past performance does not guarantee future results. All strategies and backtests are for reference only and do not constitute investment advice. Please read our Risk Disclosure carefully before trading.