Sur cette page
Open a chart with normal candlesticks and a chart with Heikin-Ashi candles side by side. The normal chart looks like a thunderstorm. The Heikin-Ashi chart looks like a series of clean directional waves. The same price action, two completely different stories. The story Heikin-Ashi tells is the easier one to trade — but it's also the one that loses traders money when they trust it too much.
The formula
Heikin-Ashi ("average bar" in Japanese) is a recursive transformation of OHLC data. Each candle's open, high, low and close are computed from the previous Heikin-Ashi candle plus the current real candle:
# Real candle: open, high, low, close
# Previous HA candle: ha_open_prev, ha_close_prev
ha_close = (open + high + low + close) / 4
ha_open = (ha_open_prev + ha_close_prev) / 2
ha_high = max(high, ha_open, ha_close)
ha_low = min(low, ha_open, ha_close)
# First candle (no previous):
# ha_open = (open + close) / 2The HA close is the average of the real OHLC — that's the smoothing step. The HA open is the midpoint of the previous HA candle's body — that's the recursion that makes each candle dependent on the last. Together, they produce the iconic streaks of same-colour candles that show trends as continuous coloured blocks.
What they actually tell you
Three readable signals. First, a streak of consecutive same-colour candles (say, 5+ green HA candles) indicates trending momentum. Second, candles with no opposing wick (a green candle with no lower wick, or red with no upper wick) indicate strong directional control — buyers or sellers never let the price challenge the open. Third, a doji-like HA candle (small body, both wicks) signals indecision and possible reversal.
All three are also visible on normal candles, but the eye picks them up faster on Heikin-Ashi because the smoothing removes most of the bar-to-bar noise.
The catch: HA prices are synthetic
The Heikin-Ashi close is not a real price. No one ever traded at it. It's an average. You cannot buy at the HA open and sell at the HA close — your real fills happen at real OHLC prices. That makes HA charts dangerous for two reasons: they hide gaps (the HA open is the midpoint of the previous HA body, not the real overnight open) and they lag (the recursion means the current HA candle is partly built from history).
Good uses for Heikin-Ashi
- Visual trend confirmation. Add HA as an overlay and check the colour of the last 3-5 candles. Same-colour streak = trending; mixed = chop. A simple way to wire intuition.
- Filter for trend-following strategies. "Only enter long when the last 3 HA candles were green" is a clean rule that captures real trend momentum without the noise of single-candle signals.
- Exit confirmation. A trend-following strategy that exits on the first opposite-colour HA candle catches reversals slightly later than raw-candle signals, but gets fewer false exits.
Rule snippet
strategy:
name: ema_cross_with_ha_filter
indicators:
- { id: fast, kind: EMA, period: 20 }
- { id: slow, kind: EMA, period: 50 }
- { id: ha, kind: HeikinAshi }
rules:
entry:
type: AND
children:
- { type: cross_above, left: fast, right: slow }
- { type: eq, left: ha.streak_green, right: 3 } # 3+ green HA bars
exit:
type: OR
children:
- { type: cross_below, left: fast, right: slow }
- { type: gte, left: ha.streak_red, right: 2 } # 2 red HA bars
risk:
size_pct: 1.0
stop_loss_atr: 2.0
note: ALL FILLS happen at real OHLC, not HA. HA is a filter only.Next steps
Heikin-Ashi is most powerful when you understand the underlying candlestick anatomy it's transforming. For other forms of smoothing in trading, see the moving averages post.
Essaie-le sur tes propres données
Chaque concept ci-dessus est implémenté dans la plateforme. Backtest, walk-forward, paper trading, puis passage en live — même jeu de règles à chaque étape.