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.
Key Takeaways
- HA-Close = (Open + High + Low + Close) / 4, using the current period's raw OHLC.
- HA-Open = (previous HA-Open + previous HA-Close) / 2. This is what carries the smoothing forward from candle to candle.
- HA-High = the maximum of the current period's raw High, HA-Open, and HA-Close.
- HA-Low = the minimum of the current period's raw Low, HA-Open, and HA-Close.
- None of the four Heikin-Ashi values is a real traded price, they are all derived averages, and the HA-Close in particular is never a level the market actually printed.
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
| Component | Formula |
|---|---|
| HA-Close | (Open + High + Low + Close) / 4, using the current period's raw OHLC |
| HA-Open | (previous HA-Open + previous HA-Close) / 2 |
| HA-High | max(current period's raw High, HA-Open, HA-Close) |
| HA-Low | min(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.
| Period | Open | High | Low | Close |
|---|---|---|---|---|
| 1 | 100.00 | 108.00 | 98.00 | 105.00 |
| 2 | 105.00 | 112.00 | 104.00 | 110.00 |
| 3 | 110.00 | 111.00 | 103.00 | 104.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.
| Period | HA-Open | HA-High | HA-Low | HA-Close |
|---|---|---|---|---|
| 1 | 102.50 | 108.00 | 98.00 | 102.75 |
| 2 | 102.625 | 112.00 | 102.625 | 107.75 |
| 3 | 105.1875 | 111.00 | 103.00 | 107.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
| Misconception | Reality |
|---|---|
| The Heikin-Ashi close is the period's actual closing price | HA-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 level | Heikin-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 sharply | Because 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 prices | Standard 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
- None of the four Heikin-Ashi values is a real traded price, they are derived averages, so orders, stop-losses, and profit/loss calculations should always reference the raw OHLC chart, not the Heikin-Ashi chart.
- The smoothing that makes trends easier to read also introduces lag, since HA-Open recursively blends in every prior candle, a genuine reversal can take longer to show up clearly on a Heikin-Ashi chart than on a raw candlestick chart.
- Because HA-Open and HA-Close both average multiple values together, gap-driven information (an overnight gap up or down) is partially absorbed into the smoothing rather than shown as a distinct visual gap the way it would appear on a raw candlestick chart.
- Some charting platforms differ slightly on the first-candle convention for HA-Open (the average of the first period's own open and close is the most common approach used here), which means the very start of a Heikin-Ashi series can differ marginally between providers even from identical raw data.
- The worked example in this guide uses illustrative, deterministic numbers, not live market data.
You Cannot Place an Order at a Heikin-Ashi Price
The single most important consequence of the formula is easy to state and easy to forget while looking at a clean-running chart: none of the four values is a price the market printed. HA-Close is an average of the period own four values, and HA-Open blends the two previous HA values, so both are constructions. Orders, stop levels and profit calculations belong on the raw OHLC chart, and a stop placed at a level read off a Heikin-Ashi candle refers to a price that never traded.
The smoothing that produces the long runs of same-coloured candles comes from that recursion, and so does the lag. HA-Open carries a trace of every prior candle forward, which means a genuine reversal takes longer to become visible here than on a raw chart. The clean appearance and the delay are the same property viewed from two sides.
Gaps are the other casualty. An overnight move that would show as a visible break on a candlestick chart gets partly absorbed into the averaging, so the chart understates a category of event that often matters most. If gap behaviour is part of your analysis, this is not the chart to do it on.
One practical caution: platforms differ on the first-candle convention for HA-Open, which means the earliest bars of a series can vary slightly between charts. It rarely matters far into a series and it is worth knowing when two charts of the same instrument disagree.
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.
Why do two Heikin-Ashi charts of the same asset sometimes differ?
The Heikin-Ashi open is defined recursively from the previous Heikin-Ashi open and close, so every value on the chart traces back to whichever bar the platform used to seed the series. Two charts loaded with different history lengths or different start dates begin the recursion at different places. The difference decays as bars accumulate, but near the start of a short window it can be visible.
Do Heikin-Ashi charts show gaps?
No, and that is a direct consequence of the formula. The Heikin-Ashi open is the midpoint of the prior Heikin-Ashi bar, which forces each body to begin inside the one before it. An overnight gap in the real price series is absorbed into the averaged values and disappears from view, so a chart that looks continuous can be hiding a discontinuity that mattered for execution and for risk.
How do you set a stop loss from a Heikin-Ashi chart?
Any stop has to reference a real traded price, because Heikin-Ashi values are averages that no order can be filled at. A common approach is to use the Heikin-Ashi chart to read the trend and then take the level itself from the underlying candles, for instance the real low of the bar the signal formed on. Placing an order at a Heikin-Ashi price means placing it at a number that never traded.
Can indicators be calculated on Heikin-Ashi values instead of real prices?
Most platforms allow it, and the output is not the same indicator. An RSI computed on Heikin-Ashi closes is an RSI of a smoothed series, so it reaches extremes less often and turns later than the RSI of the same asset. The number will be labelled RSI on the chart, which is exactly why the substitution is easy to make without noticing. Treat it as a different measurement rather than a cleaner version of the same one.
What does a Heikin-Ashi candle with no lower shadow mean?
The Heikin-Ashi low is the minimum of the real low, the Heikin-Ashi open and the Heikin-Ashi close. A missing lower shadow means the Heikin-Ashi open was itself the lowest of the three, which happens when the real low did not fall below the midpoint of the previous averaged bar. It is usually read as one-sided pressure, though it describes a relationship between averaged values rather than an observed absence of selling.
How much does Heikin-Ashi lag compared with a moving average?
The comparison does not map cleanly. A simple moving average has a fixed window and therefore a describable lag. Heikin-Ashi blends two bars directly and then carries that blend forward through the recursive open, so the smoothing accumulates without a fixed lookback. In practice the colour changes after the underlying price has already turned, but the delay is not a constant number of bars.
References
Heikin-Ashi construction follows the long-standing, publicly documented averaging formula used across technical-analysis literature and charting platforms. Key reference sources include:
- CME Group, Heikin-Ashi Charting Technique: cmegroup.com/education: exchange-published overview of the Heikin-Ashi calculation and its intended use.
- Nasdaq, Charting and Technical Analysis Resources: nasdaq.com/market-activity: reference for standard raw OHLC data conventions this transformation is built on.
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.