• Overview
  • Reviews
  • Comments (1)
  • What's new

Heiken Ashi Levels


The indicator is intended for labeling the chart using horizontal levels and/or half-round prices on Heiken Ashi chart in a separate window.

The indicator may be used with any broker, irrespective of the name of the financial instrument since it is necessary to manually enter the name as an input parameter. If you enter a non-existent or incorrect name of a financial instrument, you will receive an error message that this financial instrument is unknown (does not exist).

A user can choose colors for the indicator lines.

Input Parameters

  1. Currency_Name - name of the financial instrument
  2. Calc_Method - method of calculation of the lines:
    • 0 - levels of round prices.
    • 1 - levels of half-round prices.
  3. Digits_Accepted - flag for calculating the levels by the number of characters in the symbol's quote:
    • true - considering the importance of the number of characters.
    • false - without considering the importance of the number of characters.
  4. Level_Color - color of the lines displayed.
  5. Bars_Number - number of bars for displaying in a separate window.
  6. Bid_Line_Color - color of the Bid line.
  7. Bars_Flag - flag allowing display of the number of bars set in Bars_Number parameter:
    1. true - according to Bars_Number
    2. false - maximum available number of bars in history 
  8. Bulls_Color - bullish candle color
  9. Bears_Color - bearish candle color

On default, the system calculates and plots the levels of half-round prices considering the importance of the number of characters in a quote.


The indicator can be used for manual or automated trading within an Expert Advisor. For automated trading, use any indicator buffer of the double type:

  1. Heiken Ashi prices: Low or High - buffer 2. If the value of buffer 2 > buffer 3, then buffer 2 contains High price, otherwise, buffer 2 is equal to Low price.
  2. Heiken Ashi prices: High or Low - buffer 3.
  3. Heiken Ashi prices: Open - buffer 4.
  4. Heiken Ashi prices: Close - buffer 5.
  5. Highest level - buffer 6.
  6. Lowest level - buffer 7.

Intermediate levels should be calculated using a step that corresponds to a half round or round price values considering the accepted Digits_Accepted parameter, as well as considering the highest and lowest levels obtained by examining the values of the indicator buffers on the corresponding bar.


For the indicator to work, there should be at least ten bars available for the financial instrument. Otherwise, it will show an error message suggesting to update the price history data base. 

No reviews
Version 1.23 2017.03.28
Update in accordance with requirements of the latest version of MetaEditor.