entekhab.netentekhab.nettrilingual encyclopedia

Heikin-Ashi

ENGLISHHeikin-Ashireference
فارسیهایکین‌آشیEnglish term retained
کوردیهەیکین ئاشیEnglish term retained
Category
Technical Analysis
Level
Professional

Simple definition

A candle chart built from averaged prices instead of real ones. It looks much smoother, because every bar borrows part of the bar before it.

Professional definition

A derived candle series. The plotted close is the mean of the current bar's open, high, low and close; the plotted open is the mean of the previous synthetic open and close; the plotted high and low are stretched to cover both. The chart is smoother, at the cost of showing prices that were never traded.

Technical definition

A two-stage filter. Averaging the four prices removes part of the intrabar variation; making each open depend on the previous synthetic bar adds a one-bar recursive lag, so the whole series is path-dependent on its seed. Consequences: colour flips late, same-colour runs are longer than in the real series, gaps disappear by construction because each open sits inside the previous body, and no plotted value is a price that ever traded.

Academic definition

A recursive transform of an OHLC series in which each synthetic close is the four-price mean of the current interval and each synthetic open is the mean of the preceding synthetic open and close.

Mechanism

The smoothing comes from two places at once: a four-price average inside the bar, and an open carried forward from the bar before. Because the previous synthetic bar is itself an input, information propagates forward indefinitely and decays slowly. That is what produces the long unbroken colour runs traders find attractive, and the late turns that make them expensive.

In practice

Who uses it
Trend traders using it as a visual filter, and system developers who plot it for reading but trade and test on the real series.
Why it matters
It makes direction persistence easier to see, by removing the single-bar alternation a raw candle chart shows in full.
Limitations
Every plotted value is synthetic, so none can serve as an entry, exit or stop price. Signals arrive later than on real candles, and a backtest filled at Heikin-Ashi prices is not achievable.

Common mistakes

  • Filling a backtest order at the Heikin-Ashi open or close.
  • Reading the absence of gaps as evidence that none occurred.
  • Measuring a stop distance from a synthetic high or low.

Examples

chart

A choppy sideways week prints alternating red and green real candles. The Heikin-Ashi version of the same week can show one unbroken colour run, because each synthetic open is dragged back toward the previous synthetic body.

numeric

A bar opens 100, reaches 112, dips to 98 and closes 101. Its Heikin-Ashi close is 102.75 — above the real close, and a price that was never quoted. Entering a backtest at 102.75 invents a fill.

Given
  • real bar: O = 100, H = 112, L = 98, C = 101
  • previous synthetic open = 99
  • previous synthetic close = 100.5
Steps
  1. HA close = (100 + 112 + 98 + 101) / 4 = 102.75
  2. HA open = (99 + 100.5) / 2 = 99.75
  3. HA high = max(112, 99.75, 102.75) = 112
  4. HA low = min(98, 99.75, 102.75) = 98
Synthetic bar: open 99.75, high 112, low 98, close 102.75.

Neither 99.75 nor 102.75 was ever a traded price. Both are legitimate to look at and illegitimate to fill an order at.

Mathematical foundation

HA_{c,t} = \frac{O_t + H_t + L_t + C_t}{4}, \quad HA_{o,t} = \frac{HA_{o,t-1} + HA_{c,t-1}}{2}, \quad HA_{h,t} = \max(H_t, HA_{o,t}, HA_{c,t}), \quad HA_{l,t} = \min(L_t, HA_{o,t}, HA_{c,t})

Variables

O_t, H_t, L_t, C_tOpen, high, low and close of the real bar at time tprice units
HA_{c,t}Synthetic close: the four-price mean of the current barprice units
HA_{o,t}Synthetic open: mean of the previous synthetic open and closeprice units
HA_{h,t}, HA_{l,t}Synthetic high and low, stretched to cover the synthetic open and closeprice units

Procedure

For each bar, average the four real prices to get the synthetic close. Take the mean of the previous synthetic open and close to get the synthetic open. Set the synthetic high to the largest of the real high, the synthetic open and the synthetic close, and the synthetic low to the smallest of the real low and those two. Seed the first bar, conventionally with (O1 + C1) / 2 as the first synthetic open.

Worked example

Given
  • real bar: O = 100, H = 112, L = 98, C = 101
  • previous synthetic open = 99, previous synthetic close = 100.5
Steps
  1. HA close = (100 + 112 + 98 + 101) / 4 = 411 / 4 = 102.75
  2. HA open = (99 + 100.5) / 2 = 99.75
  3. HA high = max(112, 99.75, 102.75) = 112
  4. HA low = min(98, 99.75, 102.75) = 98
Synthetic bar O 99.75, H 112, L 98, C 102.75 — a green bar, although the real body rose only one point.

Interpretation

The bar reports a smoothed direction, not a price. A green synthetic bar says the four-price mean sits above the carried-forward open; it does not say any specific level was traded, and the colour can stay unchanged while the real close falls.

Assumptions

  • The seeding convention varies. Most platforms set the first synthetic open to (O1 + C1) / 2; some use O1. The two seeds give slightly different bars for a long stretch afterwards, because the recursion never fully forgets its start.
  • The synthetic high can exceed the real high, and the synthetic low fall below the real low, when the carried-forward open lies outside the current bar's range.
  • Colour convention follows the sign of HA close minus HA open, not of the real close minus the real open.
Limits of the formula
  • No plotted value is a traded price, so a Heikin-Ashi open, high, low or close must never be used as an execution price in a backtest or a live order. Doing so fills at a number the market never quoted.
  • Because the series is recursive, two platforms loading different amounts of history can display different bars for the same dates.
  • The transform adds lag by design: turns are reported later than on real candles, which is the price paid for the smoother picture.

Related terminology

parent
Chart Types
related
Candlestick Chart Types Line Chart Moving Average Backtesting Lookahead Bias Gap
Commonly confused with

Candlestick

A real candle reports four prices that traded. A Heikin-Ashi candle reports four derived numbers, at least two of which never traded.

Sources

Technical Analysis: Modern Perspectives
CMT Association · treatment of charting methods and derived price series
https://cmtassociation.org/wp-content/uploads/2019/01/Technical-Analysis-Modern-Perspectives-CMT-Association.pdf URL verified
CMT Program Guide 2026
CMT Association · charting methods in the body of knowledge
https://cmtassociation.org/wp-content/uploads/2026/03/2026-CMT-Program-Guide_v2026.3.5.pdf URL verified

Editorial status

Needs expert reviewindustry-conventionv1.02026-11-05

Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.

The source registry contains no work dedicated to the Heikin-Ashi transform; the recursion given here is the implementation shared across charting platforms, and the seeding convention genuinely differs between them, which is stated in math.assumptions. Both headwords retain the Japanese name as practitioners do. Flagged needs-expert because the seeding variation affects every value in the series.