Heikin-Ashi candles are calculated differently from traditional candlesticks, which simply use the open, high, low, and close prices of each period. Whereas, the Heikin-Ashi method averages these prices and uses a modified calculation method. Let’s see in easy steps how you can calculate the values of Heikin-Ashi candles:
Step I: Calculate the close price
- The closing price for a Heikin-Ashi candlestick is one-fourth of the average of the open, high, low, and close prices of the current period.
- Formula: (Open + High + Low + Close)/4
- This represents the average price of the current bar.
Step II: Calculate the open price
- The opening price for a Heikin-Ashi candlestick is half of the average of the open and close prices of the previous period.
- Formula: (Opening of previous bar + Closing of previous bar)/2
- This represents the mid-point of the previous bar.
Step III: High price calculation
- The high price for a Heikin-Ashi candlestick is the highest value among the high, open, and close prices of the current period.
- Formula: Max[High, Open, Close]
Step IV: Low price calculation:
- The low price for a Heikin-Ashi candlestick is the lowest value among the low, open, and close prices of the current period.
- Formula: Min[Low, Open, Close]
For more clarity, let’s study a hypothetical example:
- Say you have the following data for a particular period:
- Open: 100
- High: 110
- Low: 95
- Close: 105
- The previous period's opening was 98 and closing was 103
Now, let’s calculate the different values using the Heikin-Ashi formulas:
- Close: (100 + 110 + 95 + 105 )/4 = 102.5
- Open: (98 + 103 )/2 = 100.5
- High: Max(110, 102.5, 100.5) = 110
- Low: Low(95, 102.5, 100.5) = 95
Hence, in this case, the Heikin-Ashi candles for this period would have:
- Open: 100.5
- High: 110
- Low: 95
- Close: 102.5
Ever wondered how tick size affects your trades? Check its meaning and learn how it works.