Calculating the Heikin Ashi Bars
Normal candlestick charts are composed of a series of open-high-low-close (OHLC) bars set apart by a time series. The Heikin Ashi technique uses a modified formula:
xClose = (Open+High+Low+Close)/4
Average price of the current bar
xOpen = [xOpen(Previous Bar) + xClose(Previous Bar)]/2
Midpoint of the previous bar
xHigh = Max(High, xOpen, xClose)
Highest value in the set
xLow = Min(Low, xOpen, xClose)
Lowest value in the set