Skip to main content
ForexNews24
Trend

Heikin-Ashi indicator: settings and signals

Heikin-Ashi Candles

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

Ordinary candles1.12791.14951.17111.19281.2144The same data as Heikin-Ashi1.12791.14951.17111.19281.2144
OHLCHeikin Ashi
Two panes, the same bars, a different construction. The lower one shows what it is for: runs of same-coloured candles are longer and the noise between them is smoothed. The price is that Heikin-Ashi opens and closes are averaged, so they cannot be traded directly.

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).

Effectiveness by market regime
RegimeScore
Trending market61
Range33
High volatility44
Low volatility40

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

HA_Close = (O+H+L+C)/4; HA_Open = (HA_Open[prev] + HA_Close[prev]) / 2

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

Any
timeframe
No wicks
strong-trend signal
Color change
reversal signal
Standard parameters
ParameterValue
timeframeAny
strong-trend signalNo wicks
reversal signalColor 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)

heikin_ashi.py
def heikin_ashi(o, h, l, c):
ha_close = (o + h + l + c) / 4
ha_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]) / 2
return ha_open, ha_close

When the indicator stops working

Limitations
  • 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.

Other «Trend» indicators

From research to application

In our Allocation product we implemented these algorithms with all the nuances covered across the portal.

Learn about Allocation