Renders the visible window as Heikin-Ashi candles.
Heikin-Ashi is stateful — HA.open depends on the previous HA
candle — so computing it only over the visible slice would
produce a wrong open at the left edge. We seed the computation
with a warmup lead-in of WARMUP candles before start; the
seeding bias decays within a few bars, so the visible range is
visually correct.
The transformed values are packed into a synthetic CandleView
(offset = start) and handed to the standard CandleRenderer, so
HA shares all the candle drawing logic (pixel snapping, two-pass
bull/bear fill, min body height).
Renders the visible window as Heikin-Ashi candles.
Heikin-Ashi is stateful —
HA.opendepends on the previous HA candle — so computing it only over the visible slice would produce a wrong open at the left edge. We seed the computation with a warmup lead-in ofWARMUPcandles beforestart; the seeding bias decays within a few bars, so the visible range is visually correct.The transformed values are packed into a synthetic
CandleView(offset = start) and handed to the standardCandleRenderer, so HA shares all the candle drawing logic (pixel snapping, two-pass bull/bear fill, min body height).