Skip to main content

Heikin-Ashi Candles

TL;DR

Heikin-Ashi ("average bar" in Japanese) is a modified candlestick chart that smooths price action into cleaner-looking trends. Each HA candle is built from averages of prior bars, so strings of same-color candles appear longer and chop fades into the background. Traders use them for trend visualization, but they hide real prices — never use Heikin-Ashi for entry/exit price decisions.

How Heikin-Ashi candles are calculated

For each bar:

HA Close = (Open + High + Low + Close) / 4 (average of the real bar)
HA Open = (Prior HA Open + Prior HA Close) / 2 (smoothed from prior HA bar)
HA High = max(High, HA Open, HA Close)
HA Low = min(Low, HA Open, HA Close)

That smoothing of HA Open (using the prior HA bar, not the real current bar's open) is what makes strings of same-color candles appear — it takes multiple bars of counter-trend pressure to flip the color.

What Heikin-Ashi reveals

Trends look cleaner. A 10-bar uptrend that prints 3 red candles in real candles might print 0 red candles in HA. Your eye tracks the trend without being distracted by noise.

Reversals are signaled by color change + specific patterns:

  • Small body with long wicks = indecision, possible reversal
  • Color change with no wick in the prior direction = strong reversal
  • Series of same-color candles losing body size = trend weakening

Confluence with trailing stops. A green (bullish) HA candle closing below a trailing EMA = exit signal. The color provides the trend read; the EMA triggers the exit.

What Heikin-Ashi hides

Real prices. HA candles show averaged prices, not real prices. The HA close is not a level you can trade at. For entries and exits, always reference the real candle data or live quotes.

Gaps. Because HA smooths, gaps between sessions disappear. On overnight-risk analysis, you need real candles.

Intra-bar extremes. The smoothing can hide legitimate spike wicks that matter for real-price stops.

How to use HA correctly

For trend analysis, not price decisions. Use HA on a higher timeframe to read trend direction. Execute entries and exits on real candles at the lower timeframe using real prices.

Example workflow. Set daily HA → determines bias. Switch to 15-min standard candles → execute within HA bias direction.

Heikin-Ashi in Pine Script (v6)

Pine Script can plot HA on any chart without requiring the chart to be in HA mode:

//@version=6
indicator("Heikin-Ashi Overlay", overlay=true)

// Compute HA values from the real bars
float haClose = (open + high + low + close) / 4
var float haOpen = na
haOpen := na(haOpen[1]) ? (open + close) / 2 : (haOpen[1] + haClose[1]) / 2
float haHigh = math.max(high, math.max(haOpen, haClose))
float haLow = math.min(low, math.min(haOpen, haClose))

// Color and plot as colored columns
haColor = haClose >= haOpen ? color.green : color.red

plotcandle(haOpen, haHigh, haLow, haClose, title="Heikin-Ashi", color=haColor, wickcolor=haColor, bordercolor=haColor)

// Trend color-change alert
haUp = haClose > haOpen
haDown = haClose < haOpen
flipBull = haUp and not haUp[1]
flipBear = haDown and not haDown[1]

if flipBull
alert("Heikin-Ashi turned bullish on " + syminfo.ticker, alert.freq_once_per_bar_close)
if flipBear
alert("Heikin-Ashi turned bearish on " + syminfo.ticker, alert.freq_once_per_bar_close)

Common mistakes

  • Using HA close as an execution price. You can't actually buy at the HA close — it's a computed average. Always reference real quotes for orders.
  • Ignoring real-candle stop placement. HA smooths extremes; your stop should be based on real candle highs/lows, not HA values.
  • Trading every HA color flip. Some flips are false — especially on low-timeframe charts. Add a filter (prior candle was opposite color with body larger than X) to reduce whipsaws.

Frequently Asked Questions

Are Heikin-Ashi candles more accurate than regular candles?

No — they're less accurate, in the sense that they show averaged prices instead of real ones. They're more useful for visualizing trend direction, but they hide real price information. Use them for reading trends, not for deciding entry/exit prices.

Can I day-trade using only Heikin-Ashi candles?

Not recommended. HA candles hide real prices, which you need for accurate stop placement and order execution. Most traders use HA as a trend-reading overlay and execute on real candles.

What's the best timeframe for Heikin-Ashi?

Daily and 4-hour timeframes produce the cleanest HA trends. On fast intraday charts (1-minute, 5-minute), the smoothing lag makes HA too slow for precise entries. Use HA for higher-timeframe trend bias, standard candles for execution timing.