Heikin-Ashi candle smoothed

Heikin-Ashi candle smoothed

You can use this indicators in different ways

  • Moving Average
  • Range area
  • Filtered area of market movement

You can set :

  • Average period of candle=HeikinPeriod
  • Average Type (simple,exponential,triangular, etc) = AverageType
  • Average period of impression channel (Highest/Lowest) = ChannelPeriod
  • Transparency of the candle =Transparency

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

New! PRC is also now on YouTube, subscribe to our channel for exclusive content and tutorials

  1. T-rader • 06/30/2018 #

    I only get yellow candles. Can I change it?

    • ALE • 06/30/2018 #

      Please write any questions in this Topic “Heikin-Ashi candle smoothed TOPIC”

    • ALE • 06/30/2018 #

      T-rader Have you already find a solution?

  2. RAAAMMY • 06/30/2018 #

    Is it possible to set an audio alarm when colour of candle changes?

  3. cv • 06/30/2018 #

    Hi All,
    My coding knowledge is very poor, and I would really appreciate some help adding this indicator. I get the following message when I try to add the indicator –
    Syntax error:
    The following variable is undefined: heikinperiod
    The following variable is undefined: averagetype
    The following variable is undefined: channelperiod
    The following variable is undefined: transparency

    Could someone please help me to fix this error?

    Thank you

    • Nicolas • 06/30/2018 #

      Download the .itf file and import it into your platform. Or remove all the // before the name of the missing variables in the code.

  4. cv • 06/30/2018 #

    Thank you very much for your help Nicolas.

  5. cv • 06/30/2018 #

    I noticed T-Radar mentioned that all his candles are yellow, mine are too. Is there anything I can do to change that ?
    Thank you

  6. ALE • 06/30/2018 #

    Hello CV,
    The color of the candles depends on the values, if you try the indicator on the indexes you will see what colors will be correct.

  7. cv • 06/30/2018 #

    Thank you Ale.

  8. vanheckealain • 297 days ago #

    to remove color, just edit the code and comment to color selection
    //Colour Setting
    //MyDi = xxclose-xxclose[1]

    and remove:
    Coloured (R,G,b,MAX(50,Transparency*10))

    from your code.

  9. cv • 188 days ago #

    Hi all,
    Still seeking help with this indicator. I love using it but my candles are all yellow, and I do not know how to change them to display as red and green. I have tried the suggestions above, but they haven’t solved the issue. The code I am using is:

    IF BarIndex=0 THEN
    xClose = (open+high+low+close)/4
    xOpen = open
    xHigh = high
    xLow = low
    xClose = (open+high+low+close)/4
    xOpen = (xOpen[1]+xClose[1])/2
    xHigh = Max(max(high, xOpen), xClose)
    xLow = Min(min(Low, xOpen), xClose)
    //Smoothed Heikin-Ashi
    xxclose=Average[max (1,HeikinPeriod),AverageType](xclose)
    xxOpen = Average[max (1,HeikinPeriod),AverageType](xOpen)
    xxHigh = Average[max (1,HeikinPeriod),AverageType](xHigh)
    xxLow = Average[max (1,HeikinPeriod),AverageType](xLow)

    //Colour Setting
    MyDi = xxclose-xxclose[1]
    //Build channel with Highest and Lowest of Heikin-Ashi smoothed candle
    DRAWCANDLE(xxOpen, highest[max(1, ChannelPeriod)](xxHigh), lowest[max(1, ChannelPeriod)](xxlow), xxClose) Coloured (R,G,b,MAX(50,Transparency*10))

    I would really appreciate some help with this.
    Thank you


    • ALE • 188 days ago #

      Let me know which colours of candle do you wants

  10. cv • 185 days ago #

    Hi Ale,

    Thank you for getting back to me. I would like the standard green for up and red for down.
    Kind regards,

    • ALE • 185 days ago #

      Hello Corinne
      I’ve updated code, you will find it in the following topic: Heikin-Ashi candle smoothed
      Kind Regards

    • Nicolas • 185 days ago #

      I added the new ITF file in this page too (heikin ashi smoothed with colors)

  11. ALE • 185 days ago #

    Thanks Nicolas!

  12. cv • 184 days ago #

    Thank you very much Nicolas and Ale,

Register or


avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Thomas OBV and Worrior
Fabian Hi Thomas, thanks for your explanations. Which indicator do you use in the screenshot ...
Thomas Thats On Balance Volume and Bollinger or SMA or what you want. It shows me the volume flow. ...
imran Hi I have been trying to test a strategy to buy and sell based on the indicator cross overs...
ESCapedTestSubject Interesting. Many thanks. What is the market open indicator that you use? Could you share ...
Lean Hi! I love your indicator, but from some days ago it doesn't work in pro real time, do you k...
oliverkeim Hi, also here not working. Only white lines.
Maik2404 wie kann ich den Code bekommen Paul?
jens_kittner Works with US Crude at 1h as well!
Jean-Claude REGIS Je préconise de regarder les graphiques H1 et M15 pour visualiser la tendance de fond et d'...
Jean-Claude REGIS Merci Nicolas de la rep oui bien sur que le prix a une position identique le but est d'avoir...
cv Hi All, I am not very knowledgeable with coding. I have tried to add this indicator and get ...
Nicolas Download the .itf file and import it into the platform, you'll get all the necessary setting...
Domenec Hola Nicolas todo y el suavizado es como el awesome da ala se√Īal 3 velas atrasada a veces de...
Lednora Bonjour à tous, Merci pour ce superbe indicateur! Est-il possible de rajouter une alerte su...
Arnaud HALVICK Hello! Very nice screener. Thank you! I am using it to scan stocks (weekly). It is very good.
odin you welcome. i would be glad when the screener is nice for you
HeikinAshi what do you think about using the screener in smaller time units (H1, M30) on indexes? And w...
mcha Bonjour Nicolas J'ai mis cet indicateur sur une période graphique 1 heure. J'ai choisi 1...
marzibre Bonjour Nicolas. I work mainly on Daily timeframe. I was looking something similar but usi...
TraderGlyn This is an excellent indicator, it provides a hugely useful visual interpretation that filte...
Nicolas Formule de l'indicateur Momentum: Le Momentum se calcule avec une simple soustraction pour ...
Roberto1 Hi, can this code be converted for the Nanotrader Platform or for the MT4 Platform?
Nicolas This website is dedicated for PRT programming, but you can still ask for private coding with...
rafadonl2 I have modified some lines and it seems this version will work better. Even so, I recommend...
LucioleLucide Anyway so the arrows aren't so hight compared to the candles ? Can't see any offset
rafadonl2 For the last who liked the code I suggest this new one: /. para los que han dado like al in...