Heikin-Ashi indicator: settings and signals
Heikin Ashi is a way of constructing candles in which each candle is averaged with the previous one, which removes noise at the cost of losing the real open and close prices.
What the indicator looks like on a real chart
Data: EUR/USD, daily bars, 2025-06-16 — 2026-07-20. The indicator is computed over 400 bars; the chart shows the last 180. Quote source: Binance Spot REST API (api.binance.com/api/v3/klines).
| Regime | Score |
|---|---|
| Trending market | 61 |
| Range | 33 |
| High volatility | 44 |
| Low volatility | 40 |
What the indicator actually measures
The close of a Heikin Ashi candle is the average of the four prices of the source bar, and the open is the midpoint of the previous Heikin Ashi candle. Because of this recursion each candle carries the entire preceding history within it, and the series comes out noticeably smoother than the original.
The practical effect is clearly visible when comparing two panels: where ordinary candles alternate color almost every bar, Heikin Ashi builds long single-color runs. A change of color becomes a rare event, and that is what is made the basis of the signal.
The price for smoothness is substantial: the open and close of Heikin Ashi are computed, not real. You cannot place orders by them, you cannot compute entry points, and any backtest on these prices will give a result unattainable in real trading.
Formula
The close is the average of the open, high, low and close of the source bar. The open is the half-sum of the open and close of the previous Heikin Ashi candle. Because of the recursive dependency the values do not coincide with any actually traded price.
Standard settings
| Parameter | Value |
|---|---|
| timeframe | Any |
| strong-trend signal | No wicks |
| reversal signal | Color change |
There are no adjustable parameters — it is a charting method, not an indicator with a period. Sometimes double smoothing is applied, passing already-smoothed candles through the same formula, which makes the picture even smoother and takes it even further from real prices.
Implementation code (Python)
def heikin_ashi(o, h, l, c):ha_close = (o + h + l + c) / 4ha_open = ha_close.copy()for i in range(1, len(c)):ha_open.iloc[i] = (ha_open.iloc[i-1] + ha_close.iloc[i-1]) / 2return ha_open, ha_close
When the indicator stops working
- The open and close prices do not correspond to real trades — an order cannot be executed at them.
- Smoothing introduces lag: the color change happens after the actual reversal.
- Gaps visually disappear, since the open is computed from the previous candle rather than taken from the market.
Common mistakes in use
- Running a backtest on Heikin Ashi prices. The result will be unattainable: entry at a price that did not exist in the market systematically overstates profit.
- Setting a stop-loss by the bounds of the smoothed candles instead of the real extremes.
- Treating a long run of single-color candles as a sign of trend strength. The run is a consequence of smoothing, not a market phenomenon.
- Forgetting that gaps are invisible on such a chart, and losing sight of the real price discontinuities.
Who needs this and why
A visual-assessment tool for those bothered by the noise of ordinary candles when determining direction. All calculations — entries, stops, testing — should be done on ordinary prices.
Frequently asked questions
Can I trade at Heikin Ashi prices?
No. The open and close of these candles are computed by formula and do not correspond to the prices of real trades. They can be used only for a visual assessment of direction, while orders and protective levels should be calculated on the ordinary chart.
Why are the single-color runs of candles so long?
This is the result of recursive smoothing: the open of each candle depends on the previous one, so a change of color requires a more substantial price move than on an ordinary chart. A long run reflects the mechanics of construction, not a special trend strength.
What, then, is the practical benefit?
A reduction of visual noise when assessing direction. On ordinary candles a trader sees frequent color changes and tends to react to every fluctuation; Heikin Ashi makes the main direction more evident. It is a tool of perception, not of calculation.