You'll have to say if it does/doesn't, not recently I have tried to use HA this way, but didn't show the right candle, why I used ChatGPT and it said:
Why the lines appear on the wrong candle
Your logic is correct, but the visual mismatch happens because of how MT4 handles:
Heikin‑Ashi indexing
Shift timing
Bar completion
Redrawing on every tick
Two things cause the lines to appear on the 3rd candle instead of the 1st:
Heikin‑Ashi is not aligned with the chart candles
You’re drawing lines on the real chart, but your logic is detecting HA candles, which do not line up 1:1 with the visible candles.
So:
HA shift 1 ≠ real chart shift 1
HA shift 2 ≠ real chart shift 2
This alone can move your line forward by 1–2 candles.
Your code uses Time[1], but the HA candle you detected may actually correspond to Time[2] or Time[3]
Because HA candles are synthetic, the “bullish HA candle at shift 1” might visually appear on the chart two candles later.
So the line is drawn correctly according to your logic, but not where your eyes expect it.
so good luck relying on the standard blocks... as in your picture above it looks like this is the problem you are facing.