Skip to content

Documentation / @finchart/indicators / heikinAshiLast

Function: heikinAshiLast() ​

heikinAshiLast(previous, source, change): OHLC[]

Defined in: indicators/src/heikin-ashi.ts:64

The tail of heikinAshi — deriveLast for a candle series fed by it:

ts
pane.addSeries({ series: candleSeries(), data: bars, derive: heikinAshi, deriveLast: heikinAshiLast });

Returns exactly the changed tail — count bars for an append, folded from the last HA bar held, one for a replace, folded from the HA bar before it (or from the raw bar's own seed when that is bar 0). The prefix stays where it is; the door keeps it.

Parameters ​

previous ​

DataView<OHLC>

source ​

DataView<OHLC>

change ​

count ​

number

kind ​

"append" | "replace"

Returns ​

OHLC[]