Technical Analysis › Alternative Chart Types

Heikin-Ashi Candles: Formula, Construction, and Limitations

Spot the edge. Swoop in.

Heikin-Ashi ("average bar" in Japanese) recolors a price chart into smoothed, trend-highlighting candles by averaging each period's data with the candle before it. The visual payoff is real — long, clean runs of same-colored candles during a trend — but the tradeoff is just as real: Heikin-Ashi values are not the actual prices the market printed. This guide walks through the exact formula, a fully worked example, and why that distinction matters before you ever place an order.

By Swoopr Editorial Team

Published · Updated

AI-assisted content · Swoopr is responsible for the final published article.

Key Takeaways

Direct answer: Heikin-Ashi candles are constructed by replacing each period's raw open and close with averaged values: HA-Close is the average of the current period's open, high, low, and close, and HA-Open is the average of the prior period's HA-Open and HA-Close. That averaging smooths and lags the price series, producing visually cleaner trend runs at the cost of no longer plotting real, tradeable OHLC prices.

How are Heikin-Ashi candles constructed?

Heikin-Ashi candles are built from a four-part formula applied every period, using both that period's raw OHLC data and the previous Heikin-Ashi candle's values. Unlike a standard candlestick — which plots the four raw prices the market actually produced — every Heikin-Ashi value is an average, and two of the four carry information forward from every prior candle in the series.

The formula

Heikin-Ashi candle construction formula
ComponentFormula
HA-Close(Open + High + Low + Close) / 4, using the current period's raw OHLC
HA-Open(previous HA-Open + previous HA-Close) / 2
HA-Highmax(current period's raw High, HA-Open, HA-Close)
HA-Lowmin(current period's raw Low, HA-Open, HA-Close)

HA-Close averages all four of the current period's raw prices into a single smoothed value — it moves less erratically than the raw close alone because a single wick-driven high or low can't dominate it the way it can dominate a raw close. HA-Open is where the lag comes from: it's the midpoint of the previous Heikin-Ashi candle's open and close, not the current period's actual opening print. That means every HA-Open carries a piece of every candle before it, smoothing the series but delaying it relative to the raw price. For the very first candle in a series, where no previous HA-Open exists, the standard convention is to set HA-Open equal to the average of that first period's own raw open and close.

Common mistake

The common mistake is treating the Heikin-Ashi close as if it were the actual closing price for that period. It isn't. HA-Close blends the period's open, high, low, and close into one averaged number, and HA-Open blends in the entire history of prior candles through the recursive formula above. A trader who places a real limit order or calculates a real profit/loss using a Heikin-Ashi level is referencing a number the market never actually traded at.

Worked Example: Three Sequential Heikin-Ashi Candles

Illustrative numbers — not live market data.

Start with three periods of raw, hypothetical OHLC data, then apply the formula period by period. Because HA-Open depends on the previous Heikin-Ashi candle, each row's calculation depends on the row before it.

Raw OHLC inputs for the three-candle worked example
PeriodOpenHighLowClose
1100.00108.0098.00105.00
2105.00112.00104.00110.00
3110.00111.00103.00104.00

Period 1 is the first candle in the series, so HA-Open uses the standard first-candle convention: the average of that period's own raw open and close. HA-Open = (100.00 + 105.00) / 2 = 102.50. HA-Close = (100.00 + 108.00 + 98.00 + 105.00) / 4 = 411.00 / 4 = 102.75. HA-High = max(108.00, 102.50, 102.75) = 108.00. HA-Low = min(98.00, 102.50, 102.75) = 98.00.

Period 2 now uses period 1's Heikin-Ashi values as inputs. HA-Open = (102.50 + 102.75) / 2 = 205.25 / 2 = 102.625. HA-Close = (105.00 + 112.00 + 104.00 + 110.00) / 4 = 431.00 / 4 = 107.75. HA-High = max(112.00, 102.625, 107.75) = 112.00. HA-Low = min(104.00, 102.625, 107.75) = 102.625.

Period 3 repeats the same recursive step using period 2's values. HA-Open = (102.625 + 107.75) / 2 = 210.375 / 2 = 105.1875. HA-Close = (110.00 + 111.00 + 103.00 + 104.00) / 4 = 428.00 / 4 = 107.00. HA-High = max(111.00, 105.1875, 107.00) = 111.00. HA-Low = min(103.00, 105.1875, 107.00) = 103.00.

Resulting Heikin-Ashi candle values for the three-candle worked example
PeriodHA-OpenHA-HighHA-LowHA-Close
1102.50108.0098.00102.75
2102.625112.00102.625107.75
3105.1875111.00103.00107.00

Notice period 3's raw close (104.00) actually fell from period 2's raw close (110.00) — the raw price series turned down. But period 3's HA-Close (107.00) is still well above period 2's HA-Open (102.625), and period 3's HA-Open (105.1875) sits between the two prior HA-Close values rather than jumping straight to the new, weaker raw close. This is the smoothing effect in action: a single down period doesn't immediately flip the Heikin-Ashi candle bearish the way it would on a raw candlestick chart, because the formula is still averaging in the stronger prior data.

Common mistake

The common mistake in a worked example like this is forgetting that HA-Open for period 2 and beyond never touches that period's own raw open at all — it is calculated entirely from the previous Heikin-Ashi candle. Confusing "period 2's raw open of 105.00" with "period 2's HA-Open of 102.625" is an easy arithmetic slip and a meaningful one, since it changes both HA-High and HA-Low.

Why Do Heikin-Ashi Charts Show Long Runs of Same-Colored Candles?

Because HA-Open is the midpoint of the prior candle's open and close, it sits inside the prior candle's body rather than gapping away from it the way a raw open sometimes does. During a sustained trend this keeps each new HA-Open close to the previous HA-Close, which produces small or entirely absent wicks and a long visual run of same-colored bodies. That clean appearance is the averaging formula suppressing the small counter-trend fluctuations a raw candlestick chart would still display individually — it makes a trend easier to see, not a different trend than the one the raw chart shows.

Is the Heikin-Ashi close a real, tradeable price?

No. The Heikin-Ashi close is an average of four values from the current period plus, indirectly through HA-Open, values carried forward from every prior period. It is not a price any exchange ever printed and not a level you could have gotten filled at. Placing a real order based on a Heikin-Ashi level is a common and costly mistake — always reference the underlying raw OHLC chart for actual entry, exit, and stop prices.

Misconceptions Versus Reality

MisconceptionReality
The Heikin-Ashi close is the period's actual closing priceHA-Close is an average of the current period's open, high, low, and close — never a price the market actually printed for that period
You can place a stop-loss or limit order at a Heikin-Ashi levelHeikin-Ashi values are derived averages with no corresponding real order book price; real orders must reference the raw OHLC chart
A single reversal candle on a Heikin-Ashi chart means the raw price also just reversed sharplyBecause HA-Open and HA-Close both smooth in prior data, Heikin-Ashi lags the raw price and can understate how fast the underlying move actually was, as the worked example's period 3 shows
Heikin-Ashi and standard candlesticks are two ways of showing the same pricesStandard candlesticks plot raw, tradeable OHLC prices; Heikin-Ashi plots a smoothed transformation of those prices — they are visually similar but numerically different series

Risks, Limitations, and Exceptions

Frequently Asked Questions

How are Heikin-Ashi candles constructed?

Each Heikin-Ashi candle is built from a four-part formula applied to the raw OHLC data: HA-Close averages the current period's open, high, low, and close; HA-Open averages the prior HA-Open and prior HA-Close; HA-High takes the highest of the period's raw high, HA-Open, and HA-Close; and HA-Low takes the lowest of the period's raw low, HA-Open, and HA-Close. Because HA-Open and HA-Close both carry forward a piece of the previous candle, the result is a smoothed, lagging series rather than a plot of the raw prices.

Is the Heikin-Ashi close a real, tradeable price?

No. The Heikin-Ashi close is an average of four values from the current period plus, indirectly through HA-Open, values carried forward from every prior period. It is not a price any exchange ever printed and not a level you could have gotten filled at. Placing a real order based on a Heikin-Ashi level is a common and costly mistake — always reference the underlying raw OHLC chart for actual entry, exit, and stop prices.

Why do Heikin-Ashi charts show long runs of same-colored candles?

Because HA-Open is the midpoint of the prior candle's open and close, it sits inside the prior candle's body rather than gapping away from it. During a sustained trend this keeps each new HA-Open close to the previous HA-Close, producing small or absent wicks and a long visual run of same-colored bodies. That smoothing is the averaging formula suppressing the small counter-trend fluctuations that a raw candlestick chart would still show individually.

Sources and Methodology

Heikin-Ashi construction follows the long-standing, publicly documented averaging formula used across technical-analysis literature and charting platforms. Key reference sources include:

The three-candle worked example in this guide uses a clearly labeled, deterministic illustrative dataset, not live market data. This content was reviewed by the Swoopr Editorial Team in August 2026.

Related Reading