Heiken Ashi

Modified on Mon, 08 May 2023 at 07:13 PM

Heiken Ashi (HA) - type of representation quotations on time segments, based on the averaged price fluctuations of the previous time period.

View of indicator on the chart:

Methodology of building HA candles.

Opening price:

Open = (Open (i-1) + Close (i-1)) / 2

Where, Open - the value of the opening of the current price, Open (i-1) - the price of opening the previous candle, Close (i-1) - the closing price of the previous candle. That is, for the price of opening the current candle is taken the average value between the price of opening and closing of the previous candle.

Closing price:

Close = (open (i) + high (i) + low (i) + close (i)) / 4

The closing price is calculated as the average value of the opening, maximum, minimum and closing of the candle.

Maximum price:

High = MathMax (high (i), MathMax (Open, Close))

The maximum value from two numbers high (i) - maximum closing price of the candle and MathMax (Open, Close) -  maximum value between the opening and closing price. That is, if we say in simple words, then the greater of two numbers is determined  and the final value of High is assigned to it.

By analogy with High, the value Low is calculated, only the difference, taken minimum of two numbers:

Low = MathMin (low (i), MathMin (Open, Close))

Based on the obtained values, the indicator builds its own candles chart, which are superimposed over the main chart.

To add and configure the indicator, you must open the settings window.


Source - settings of calculation parameters of the indicator::

  • Open
  • High
  • Low
  • Close
  • Volume


Panel - select the location of the indicator on the chart:

  • New panel
  • Chart


Visible - turn on/off display of bars.

Heiken Ashi

Visible - turn on/off display of HA candles.

Scale - if this option is enabled, the scale will automatically be calculated based on the minimum and maximum values of the indicator, in order for the indicator to be placed on the graph.

Up Candle Color - choose color of upward candle.

Down Candle Color - choose color of downward candle.

Candle Border - choose color or candle`s border.


  • Candles
  • Bars


Show description of indicator

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article