Agimat FX® MetaTrader 5 · Non‑repaint

Home  /  Guides

Does Heiken Ashi repaint?

Two tests: one on closed candles, one on every tick of the forming candle. Heiken Ashi passes the first. The second shows why its colour can't be trusted until the candle closes.

Last updated 2026-11-23

No — a closed Heiken Ashi candle never changes. But more than 1 in 4 candles changes colour while it is still forming. Across 22,111 hourly candles of gold, 0 values changed after the close. Replayed on 306.8 million real ticks, 6,325 of 22,159 candles (28.5%) showed the other colour at some point before they closed.

Heiken Ashi is built into MetaTrader, and it is one of the indicators traders most often call “repainting”. The honest answer needs two tests, because the word covers two different things: a finished candle that changes later, and a candle that changes while you watch it form. We ran both.

What was tested

Test 1: closed candles — passed

candles compared   22,111
buffers checked    5 (open, high, low, close, colour)
values changed     0

Heiken Ashi only uses the current candle and the one before it, and once a candle has closed it is never recalculated. By the strict definition — a closed candle must never change — Heiken Ashi does not repaint.

Test 2: the forming candle — the colour you can’t trust yet

Each Heiken Ashi candle opens at a fixed level: halfway between the previous candle’s open and close. Its close is the average of the real candle’s open, high, low and current price — so it moves with every tick. The colour is simply which of the two is higher. While the candle is forming, it can cross back and forth as often as price does.

6,325  candles changed colour while forming (28.5% of 22,159)
3,914  started with the wrong colour (17.7%)
3,065  wrong colour for 15 minutes or more
1,720  wrong colour for 30 minutes or more
  729  wrong colour for 45 minutes or more
  311  colour changes in one candle, the most (2025.12.24 07:00)
candles that changed colour while forming, by minutes shown in the wrong colour 1,872777611484444417403305283267260202015304560 minutes the candle showed the wrong colour (red bars: 30 minutes or more)
XAUUSD H1 · 22,159 candles · 306.8 million real ticks · from the raw test data below

The rate barely moves from year to year — 2023: 29.3%, 2024: 28.1%, 2025: 28.1%, 2026: 28.7% — so this is how the indicator works, not a quirk of one market phase. A typical colour change lasted 14 minutes of the hour, long enough to look like a real signal.

By the definition on our non-repaint page, this is not repainting: the candle was still forming, and a colour on a forming candle is provisional. It matters anyway, because many Heiken Ashi alerts and EAs read the forming candle (shift 0). Every one of these 6,325 candles could have triggered a colour-change signal that is not on the chart once the candle closes.

What it means if you use it

The same two tests on Agimat FX

We run every test on our own indicator first. Agimat FX Gold, same market, same candles, same 306.8 million real ticks:

closed candles changed   0  of 22,111
arrows that vanished     0  of 1,102

Agimat FX signals print on the closed candle, so an arrow that appears is the arrow that stays — on the forming candle, at the close and fifty candles later. Non-repainting is the minimum, not the reason to buy it: what it adds is shown on real charts — signals from the daily chart down to one minute, and an EA that can take them for you and let winners run behind a trailing stop.

Check it yourself