Heikin Ashi of higher timeframes (hourly TF)

v10.3
Heikin Ashi of higher timeframes (hourly TF)

This indicator displays the colors of the heikin ashi candles of the higher timeframe (to be chosen with the “TimeframeHeikinAshi” parameter) under the price graph in a separate window.
In the example we display the HeikinAshi candle colors of timeframes H1, H4 and Daily. The indicator is only compatible with in hours format units, the possible parameters are:
1 = H1
2 = H2
etc.
1440 = Daily (D1)
etc.

At each new bar detected, the indicator displays a vertical bar of gray color.
With each change of color of the heikin ashi bar of the higher timeframe, a “signal” (black histogram) is displayed, this allowing you to recover the information for the creation of an automatic trading strategy for example. It is therefore possible to recover all the changes of direction of each candlestick that took place inside it without waiting for the Close.

 

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?

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

  1. cfta • 02/22/2018 #

    Congratulations Nicolas for one more briliant indicator, this might become the new favorite indicator for a Heiken Ashi fetischist as myself 🙂 However I’m puzzled regarding how we can easily use as a signal or filter in strategies since it seems tricky to find something for the strategy to differentiate longs from shorts by color, the change is easier to manage but if it is already showing one color and we want to enter a position based on the current color.

    Would it be possible to modify the indicator to only return one value and possibly set longs to equal 1 and shorts to equal -1? Hence we can use CROSSES OVER/UNDER 0 for change and >0 or <0 to enter on current signal. What do you think?

    • Nicolas • 02/22/2018 #

      I anticipated that question, that’s why I added a variable called ‘signal’ which already gives 1 or -1 when the heikin ashi color change.

    • cfta • 02/22/2018 #

      As always you’re one step ahead Nicolas. I figured that out on my own yesterday before I noticed your reply.

      Another question though, do you think you might be able to find time to creat another version adapted for minutes TFs? Such as running it on m1 showing the Heiken Ashi candle of 5,15 and 30 minutes, combined with the current indicator showing H1 or H4 that can become a very powerful strategy.

    • Nicolas • 02/22/2018 #

      Yes, that sounds possible, let me think of it.

  2. Leo • 02/22/2018 #

    Hi Nicolas, is it not the definition in line 44 like this:

    Opentf= (opentf+haclose)/2

    Cheers

    • Nicolas • 02/22/2018 #

      No, because opentf is only used to calculate the haclose at line 53 and we need the real price of when the superior timeframe candlestick is opened.

  3. avatar
    fabioerliam • 02/22/2018 #

    Hi Nicolas!
    thanks for this indicator!
    I don’t understand why to indicate the daily timeframe we have to use 1440 and not 24…if it is set in houres it should be 24 to indicate a daily candle…
    what I don’t understand?
    thanks

  4. avatar
    fabioerliam • 02/22/2018 #

    Sorry guys…why to indicate the daily timeframe we have to use 1440 and not 24 if this indicator is set in houres? If 1 is for 1houre, 2 is for 2 houres…24 should be for the daily…why I’m wrong? Thanks to the one that can answer!

  5. avatar
    fabioerliam • 02/22/2018 #

    Hi Nicolas, can you create the same indicator for the heikin ashi smoothed? I’ve tried to create by myself putting the heikin smoothes code after the “if hourecheck then” but It doesn’t work…need help please:)

    • Nicolas • 02/22/2018 #

      Please don’t spam the comments. Should be hard because Smoothed Heikin Ashi are made with moving average and without arrays capabilities, it’s tricky.. sorry.

  6. avatar
    fabioerliam • 02/22/2018 #

    Sorry Nicolas…wasn’t what I was thinking to do…I thought you couldn’t received the notification of the messages if I don’t insert the “#”….anyway thanks for the answer and for the time u dedicate to us!!!!! What about the other question I would like to know? You can see it on the posts above…it’s about why I have to indicate the daily tf with 1440 and instead the one houre with 1….the mtf is express in minite or houres?
    Many thanks

  7. Nicolas • 02/22/2018 #

    A tweaked version which allow to use timeframe in minutes: https://www.prorealcode.com/topic/heikin-ashi-of-higher-timeframes-under-h1/

  8. mcha • 02/22/2018 #

    Bonjour Nicolas
    J’ai mis cet indicateur sur une période graphique 1 heure.
    J’ai choisi 1 pour 1 heure, 2 pour 2 heures.
    Mais que faut-il choisir dans propriétés comme valeur de TimeframeHeikinAshi pour obtenir un indicateur ”daily”. Je n’obtiens qu’un histogramme vert que je choisisse 24 ou 1440 ce qui n’est pas la réalité si on se réfère à un graphe daily avec données Heikin ashi
    Je suis en difficulté sûrement pas insurmontable mais je ne sais pas la manœuvre ou l’astuce.
    Merci par avance de votre aide.

  9. marzibre • 02/22/2018 #

    Bonjour Nicolas.
    I work mainly on Daily timeframe. I was looking something similar but using Daily as base timeframe and Weekly and Monthly as superior timeframe.
    Do you think is it possible to changes on this ?

    Many thanks in advance

  10. TraderGlyn • 02/22/2018 #

    This is an excellent indicator, it provides a hugely useful visual interpretation that filters entries well. Thanks for creating it.

    I’m finding it particularly useful for scalping the DAX and DOW whilst using a hull ma and HA candles.

    One thing I’ve noticed is that the histogram colours change when you vary the units displayed, and that the colours don’t always reflect the actual HA candle colour. Different time frames with the same indi also vary in the way they show higher TF candles.

    Is there an optimal units and or time frame for best consistency?

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+2 more likes

Related users ' posts
Nicolas Download the .itf file and import it into the platform, you'll get all the necessary setting...
Guibourse Hi, I don't know why but I cannot add the 1 minute Heikin candles on a 100 ticks TF (but the...
pableitor Hi, this indicator was programmed for PRT 10.3 , I had to do the high TF detection by softwa...
leoulve Hello, I uploaded correctly the screener and it is not selecting any. Is it normal? cheers
Oliviertrader2020 Hello, where do you find the ZeroLagMACDWeek indicator? You only posted the mtf-macd-diverge...
MJZTrader Good morning! I was trying to tweek the code in the way as to set it for intraday (1 Min to ...
Nicolas I added the new ITF file in this page too (heikin ashi smoothed with colors)
ALE Thanks Nicolas!
cv Thank you very much Nicolas and Ale,
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...
Nicolas Sorry again, doing my best to fix this problem..
Gianluca Sorry but the 2° code that you posted have some problem it doesn't work
Leo I have to check
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...
Mirko Vaglio Interesting idea to bypass the limit of PRT about multiple timeframe, and I am just trying t...
Mirko Vaglio Looking a little bit more, now I understand what had to be absolutely obvious from the first...
Seb nice code! I'm trying to use your method to do a higher timeframe EMA, without success yet. ...
rafadonl2 is not taken into account in the procedure. It considers only if it is a doji or when candle...
Guibourse Okay thanks, just a question : how do you plot your two lines in the same window as price ? ...
rafadonl2 sorry, I don't understand your question. Indicator draws Heikin Ashi candle, not price cand...
Nicolas You'll need to preload bars to get the good calculations of you indicators. I did not test i...
David Nicolas I tried DEFPARAM Preloadbars = 5000 And still the same drawn output of entries/exit...
marcara Hi, Thank you very much for the Moving Average Daily indicator, I am using it as indicator i...

Top