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.
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
- The indicator: MetaTrader 5’s own
Examples\Heiken_Ashi, the one that ships with every terminal. No settings to change. - The market: XAUUSD, 1-hour chart, January 2023 to October 2026.
- Test 1, closed candles: all five buffers (HA open, high, low, close and the colour) recorded the moment each candle closes, then read again fifty candles later. How the test works.
- Test 2, the forming candle: the colour read on every single tick of every candle — 306.8 million real ticks — timed, and compared with the colour the candle closed with.
Test 1: closed candles — passed
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.
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)
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
- Read the colour only after the candle closes. A closed Heiken Ashi candle is final; Test 1 proves it.
- Check what your EA or alert reads. It should use the last closed candle (shift 1), not the forming one (shift 0). On gold H1 that difference touched 28.5% of all candles.
- Its history is honest. Every past candle was available exactly as you see it when it closed. What the history cannot show you is the colour it showed on the way.
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:
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
- heikenashi-repaint-audit.csv — Test 1, every candle and buffer, at the close and fifty candles later · config: heikenashi-repaint.ini
- heikenashi-color-audit.csv — Test 2, every candle: first colour, final colour, number of changes, seconds in each colour · config: heikenashi-color.ini
- agimat-intrabar-audit.csv — Test 2 on Agimat FX · config: agimat-intrabar.ini
- IndiProbe.ex5 and ColorProbe.ex5 — both probes, to run the same tests on any colour indicator you own
Be told when the new build is ready
Two emails: when it opens, and the day before launch. Nothing else.
The list hears first.