Indicators

Heikin Ashi Indicator Explained

How Heikin Ashi candles smooth trends into clean runs, their repaint caveat, and how bots use HA state in Setup.Cash.

By Setup.Cash TeamLast updated 2026-07-032 min read227 words

Featured image placeholder

/og/setup-cash-og.svg

Heikin Ashi ('average bar') rebuilds every candle from averaged prices: the body from OHLC4, the open from the prior HA candle's midpoint. Trends that look ragged on normal candles become smooth, single-colored runs — which is exactly what makes HA powerful for automated trend state.

How It Works

  • HA close = average of the bar's OHLC; HA open = midpoint of the previous HA candle.
  • Consecutive green HA candles with no lower wicks = strong, clean uptrend.
  • HA values differ from real prices — signals fire on HA state, but orders execute at market prices.

How to Trade It

The classic bot pattern: enter when HA flips color after a run, stay in while candles stay one-colored and wickless against you, exit on the opposite flip. HA color-count ('5 green HA candles in a row') is also a robust trend filter for other systems.

Building It in Setup.Cash

Add Heikin Ashi in the strategy builder — the length input controls its sensitivity — and use its value in any entry, exit, or filter condition. You can also combine it with other tools in the Indicators Lab or via the AI indicator generator. Pair with ATR stops since HA smoothing hides real-price drawdown inside positions. For the full category overview, see the advanced trend library guide.

Trend tools reward patience: pick one, pair it with a volatility or regime filter, and backtest before trading it live.

Not financial advice. Trading involves risk. Use backtesting and paper trading before risking real capital.

Related Posts

View all

Indicators

AlphaTrend Indicator Explained

How the AlphaTrend indicator combines ATR bands with momentum gating for a self-filtering trend line in Setup.Cash.

2 min read · 207 words

Start here

Build your trading bot workflow with structure

Use Setup.Cash to create, backtest, and paper trade rule-based strategies without relying on guesswork. Not financial advice. Trading involves risk.