Heikin-Ashi Calculator

Inputs

Heikin-Ashi close103.25
Heikin-Ashi open99.50
Heikin-Ashi high108.00
Heikin-Ashi low99.00
Candle body3.75
Candle readBullish Heikin-Ashi candle
How this was calculated
  1. Inputs: open 100.00, high 108.00, low 99.00, close 106.00; previous Heikin-Ashi open 98.00 and close 101.00.
  2. Heikin-Ashi close: (100.00 + 108.00 + 99.00 + 106.00) / 4 = 103.25.
  3. Heikin-Ashi open: (98.00 + 101.00) / 2 = 99.50.
  4. Heikin-Ashi result: close 103.25 against open 99.50 - bullish Heikin-Ashi candle.

Heikin-Ashi - Japanese for 'average bar' - rebuilds every candlestick from averaged values so that a trend reads as what it feels like: a clean run of one colour. The close of a Heikin-Ashi candle is the mean of the real open, high, low and close. Its open is the midpoint of the previous Heikin-Ashi candle's open and close. The high and low then stretch to whichever reaches further, the real extreme or the averaged open and close. Nothing is invented and nothing is hidden - but everything is smoothed, and the smoothing is the entire point.

Enter one bar's real open, high, low and close, plus the previous Heikin-Ashi bar's open and close, and this calculator returns the full averaged candle with its body and a plain-language read. The worked examples cover a solid bullish bar in an uptrend, a small bullish bar at lower prices, and a high-priced bar whose averaged body nearly vanishes.

Worked examples

Averaged bar keeps the uptrend

(100 · 108 · 99 · 106 · 98 · 101)

Heikin-Ashi close103.25
Heikin-Ashi open99.50
Heikin-Ashi high108.00
Heikin-Ashi low99.00
Candle body3.75
Candle readBullish Heikin-Ashi candle

Small bullish averaged body

(45.2 · 46.8 · 44.5 · 45.9 · 44.8 · 45.1)

Heikin-Ashi close45.60
Heikin-Ashi open44.95
Heikin-Ashi high46.80
Heikin-Ashi low44.50
Candle body0.65
Candle readBullish Heikin-Ashi candle

High-priced bar, narrow averaged body

(210 · 215 · 200 · 204 · 208 · 206)

Heikin-Ashi close207.25
Heikin-Ashi open207.00
Heikin-Ashi high215.00
Heikin-Ashi low200.00
Candle body0.25
Candle readBullish Heikin-Ashi candle

How the averaged bar is built

Two of the four values are simple averages and two are selections. The Heikin-Ashi close averages the bar's four real prints, so a single extreme wick moves it by only a quarter of the wick's size. The Heikin-Ashi open averages the previous averaged open and close, which chains every candle to its predecessor: the new bar always opens at the middle of the old bar's body, and the gaps that punctuate ordinary candlestick charts simply disappear.

The first worked example runs the full construction. The real bar - open 100.00, high 108.00, low 99.00, close 106.00 - averages to a Heikin-Ashi close of 103.25. The previous averaged bar opened at 98.00 and closed at 101.00, so this bar opens at 99.50. The high stays at the real 108.00, the low at the real 99.00, and the result is a bullish candle with a body of 3.75 - direction and strength readable at a glance.

The high and low deserve their selection rule: each takes the most extreme of the real extreme and the two averaged values. In a strong trend the averaged close can exceed the real high's pull on the candle, and letting the averaged values extend the wicks keeps the candle honest about the smoothed path, not just the traded one.

  • HA close = (open + high + low + close) / 4, from the real bar.
  • HA open = (previous HA open + previous HA close) / 2 - the chain that removes gaps.
  • HA high and low take the extreme of the real value and the two averaged values.
  • Averaged prices are not traded prices: never read an entry or stop off them.

Reading trend runs and shadows

The chart language that develops from the construction has three working rules. A strong uptrend prints bullish candles with no lower shadow - the averaged low never dips below the averaged open - and the run continues until a shadow appears on the trend side or the bodies shrink toward doji size. A strong downtrend is the mirror: bearish candles with no upper shadow. Indecision shows as small bodies with shadows both ways, the averaged open and close nearly equal.

The third worked example sits at that indecision boundary. Its real bar travelled from 200.00 to 215.00, yet the averaged candle opens at 207.00 and closes at 207.25 - a body of only 0.25 after the previous averaged bar had already carried the trend up to the 206.00-to-208.00 zone. The real bar was dramatic; the averaged bar says the trend's engine is idling, which is precisely the kind of early, unemotional signal the technique is valued for.

The second example shows the ordinary healthy case at lower prices: an averaged open of 44.95, a close of 45.60, a body of 0.65, with the high extended to the real 46.80. Nothing is stretched, the candle is bullish, and the trend read is simply 'continuing'.

Candle shapeConstructionTrend read
Bullish, no lower shadowHA low equals HA openStrong uptrend; buyers never ceded the averaged low
Bearish, no upper shadowHA high equals HA openStrong downtrend; sellers never ceded the averaged high
Small body, both shadowsHA open near HA closeIndecision; the trend is pausing or turning
Long body, trend-side shadowBody large, wick against trendTrend intact but meeting its first resistance
A body of 0.25 on a bar that really travelled 15.00 - the third example - is Heikin-Ashi doing its job: the trend, not the bar, is what it reports.

Worked examples

Example 1: Open 100; High 108; Low 99; Close 106; Previous Heikin-Ashi open 98; Previous Heikin-Ashi close 101. Heikin-Ashi close = 103.25. Supporting values: Heikin-Ashi open 99.50; Heikin-Ashi high 108.00; Heikin-Ashi low 99.00; Candle body 3.75; Candle read Bullish Heikin-Ashi candle. Inputs: open 100.00, high 108.00, low 99.00, close 106.00; previous Heikin-Ashi open 98.00 and close 101.00. Heikin-Ashi close: (100.00 + 108.00 + 99.00 + 106.00) / 4 = 103.25. Heikin-Ashi open: (98.00 + 101.00) / 2 = 99.50. Heikin-Ashi result: close 103.25 against open 99.50 - bullish Heikin-Ashi candle.

Example 2: Open 45.2; High 46.8; Low 44.5; Close 45.9; Previous Heikin-Ashi open 44.8; Previous Heikin-Ashi close 45.1. Heikin-Ashi close = 45.60. Supporting values: Heikin-Ashi open 44.95; Heikin-Ashi high 46.80; Heikin-Ashi low 44.50; Candle body 0.65; Candle read Bullish Heikin-Ashi candle. Inputs: open 45.20, high 46.80, low 44.50, close 45.90; previous Heikin-Ashi open 44.80 and close 45.10. Heikin-Ashi close: (45.20 + 46.80 + 44.50 + 45.90) / 4 = 45.60. Heikin-Ashi open: (44.80 + 45.10) / 2 = 44.95. Heikin-Ashi result: close 45.60 against open 44.95 - bullish Heikin-Ashi candle.

Example 3: Open 210; High 215; Low 200; Close 204; Previous Heikin-Ashi open 208; Previous Heikin-Ashi close 206. Heikin-Ashi close = 207.25. Supporting values: Heikin-Ashi open 207.00; Heikin-Ashi high 215.00; Heikin-Ashi low 200.00; Candle body 0.25; Candle read Bullish Heikin-Ashi candle. Inputs: open 210.00, high 215.00, low 200.00, close 204.00; previous Heikin-Ashi open 208.00 and close 206.00. Heikin-Ashi close: (210.00 + 215.00 + 200.00 + 204.00) / 4 = 207.25. Heikin-Ashi open: (208.00 + 206.00) / 2 = 207.00. Heikin-Ashi result: close 207.25 against open 207.00 - bullish Heikin-Ashi candle.

Heikin-Ashi against ordinary candlesticks

The trade the technique offers is clarity for immediacy. Ordinary candles report every bar's real geography - gaps, wicks, exact closes - and in a noisy sideways market that geography is mostly weather. Heikin-Ashi suppresses the weather and keeps the climate: trends look longer, reversals look later and cleaner, and sideways churn collapses into sequences of small mixed candles that are easy to stand aside from.

What it cannot do is quote prices. The averaged close of 103.25 in the first example was never a traded price; the real close was 106.00. Any workflow that needs levels - entries, stops, targets, gap measurements - must go back to the real bars. The standard professional arrangement is both charts open: Heikin-Ashi for the trend decision, ordinary candles for the execution levels.

The lag problem: trading real prices

Every average lags, and Heikin-Ashi's open is an average of an average's ingredients, so its turns arrive after the real turn - sometimes a full bar after. In a fast reversal the first bearish averaged candle can appear when much of the move down has already happened. Traders who use the technique for exits accept the lag as the price of not being shaken out by noise; traders who need the first tick of a turn should not be using a smoothing technique at all.

The lag also compounds across the chain: this bar's open depends on the previous bar's open and close, which depend on the bar before. Start a Heikin-Ashi series mid-trend with a guessed previous bar and the first few candles are approximations. The calculator's inputs make the dependency explicit - it asks for the previous averaged open and close precisely because there is no honest way to build the candle without them.

Starting a series from scratch

To seed a series where no previous averaged bar exists, the convention is to open the first Heikin-Ashi candle at the midpoint of the first real bar's open and close, then chain forward. From the second bar onward the construction in this page applies unchanged, and within a handful of bars the seed's influence has washed out of the averages.

For a single-bar check - the use this calculator is built for - take the previous averaged open and close straight from your platform's Heikin-Ashi chart and the real bar from the price chart. The 44.95 open of the second example, from a previous 44.80 open and 45.10 close, is the shape of the handoff: small, stable, and entirely determined by the two numbers you bring.

FAQs

Why does the Heikin-Ashi open use the previous bar?

Because the chain is the smoothing. Opening each bar at the midpoint of the previous averaged body removes gaps and forces continuity, so trends print as unbroken runs. It is also why the calculator asks for the previous HA open and close - without them the candle cannot be built.

The first example's HA close is 103.25 but the real close was 106.00. Which is right?

Both, for different jobs. The real close, 106.00, is the traded price - use it for levels. The averaged close, 103.25, is the trend statement: the mean of the bar's four prints, deliberately damped. Never place an order at an averaged price.

What does a tiny body like the third example's 0.25 mean?

Indecision in the averaged series. The real bar travelled widely, but the previous trend had already carried the averaged values to the same zone, so open and close nearly met. After a run, that is the standard first sign of the trend pausing.

How do I spot a strong trend on Heikin-Ashi?

By the missing shadow. Bullish candles with no lower shadow - the averaged low never dipping below the averaged open - mark a strong uptrend; bearish candles with no upper shadow mark the mirror. The first shadow on the trend side is the early warning.

Can I start Heikin-Ashi without a previous bar?

Yes, with the seeding convention: open the first averaged candle at the midpoint of the first real bar's open and close, then chain forward with the formulas here. The seed's influence washes out within a few bars.

Why are there no gaps on a Heikin-Ashi chart?

Because each open is computed from the previous candle rather than taken from the market. Overnight repricing still happened - it is inside the real high, low and close that feed the average - but the chart chooses to show the trend's continuity instead of the auction's jumps.

Sources

Related calculators

Parabolic SAR Calculator
Wilder's parabolic SAR for one bar - the new stop level from the prior SAR, extreme point and acceleration factor, with the next factor step.
Schaff Trend Cycle Calculator
The Schaff trend cycle's final smoothing stage - STC from the second-pass stochastic of the MACD, its change and the 25/75 signal zone.
Stochastic RSI Calculator
The stochastic oscillator applied to RSI values instead of price: the current RSI rescaled between its lookback low and high, with the 3-period %D signal line.