Heikin Ashi vs candlestick: the calculation changes
Let O, H, L and C denote the current standard bar. HA-O, HA-H, HA-L and HA-C denote its Heikin Ashi values. The previous open and close in the HA formula are previous HA values, not previous ordinary candle values. All examples below compare completed bars on one time interval.
- HA open is recursive. Reproducing it requires a previous HA state or an explicit initialization rule. Do not restart the calculation at each visible candle.
- This comparison uses body direction: green when close exceeds open, red when it is below open. Disable "Color bars based on previous close" when comparing colors in TradingView; that option changes their meaning.
| Value | Standard candle | Heikin Ashi candle |
|---|---|---|
| Open | O | (Previous HA-O + previous HA-C) / 2 |
| Close | C | (O + H + L + C) / 4 |
| High | H | Maximum of H, HA-O and HA-C |
| Low | L | Minimum of L, HA-O and HA-C |
| Body size | Absolute difference between C and O | Absolute difference between HA-C and HA-O |