Heikin Ashi chart

A Heikin Ashi series is typically used to present the modified open, high, low and close price over a period of time. A Heikin Ashi point is composed of a body and an upper and a lower wick similarly to the candlestick. The only difference is that the open, high, low and close values have been modified by the formula.

When the data grouping is enabled, points are grouped and then the Heikin Ashi values are calculated based on grouped points.

heikinashi.png

Calculating Heikin Ashi points

newOpen = (previousOpen + previousClose) / 2;
newClose = (open + high + low + close) / 4;
newHigh = Math.max(high, newClose, newOpen);
newClose = Math.min(low, newClose, newOpen);

heikinashi-calculation.png

For more information on the Heikin Ashi chart, see the API reference.