Function: heikinAshi()
ts
function heikinAshi(d): OhlcArrays;Defined in: finance/transforms.ts:30
Heikin-Ashi candles — a smoothed OHLC that filters noise and makes trends obvious. Output has the same length; feed it to a candlestick layer.
haClose = (o+h+l+c)/4 haOpen = (prevHaOpen + prevHaClose)/2 (seed: (o₀+c₀)/2) haHigh = max(h, haOpen, haClose) haLow = min(l, haOpen, haClose)
Parameters
| Parameter | Type |
|---|---|
d | Ohlc |