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?

New! PRC is also now 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 • 167 days ago #

    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.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar
Related users ' posts
Alai-n @Vonasi Thanks
jiddan78 how to convert to afl amibroker ?
Nicolas We do not supply free coding assistance for AFL Amibroker on the website. You can ask for pa...
Zebra OpenTime < 090000 AND OpenTime > 190000 should probably be OpenTime < 090000 OR Op...
robertogozzi Well spotted Zebra!
alfcont Is this trading system generating profit on micro DAX future?
GraHal Is there a switch to start / stop the Trailing SL / TP as when I GRAPH SL & TP neither a...
robertogozzi No GraHal, there's no topic open. It would be great if you could start one and post that lin...
GraHal Discussion Topic started here ... https://www.prorealcode.com/topic/discussion-re-auto-sy...
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...
bala Hi Kris, I have imported the screen. I don't see any instrument loaded under this screen....
Kris75 Hi Bala, you need first to install ZeroLagMACDWeek indicator and then add on it the diverg...
berga Hi, thank you very much for this very useful screener. I would like to get another very clos...
cv I noticed T-Radar mentioned that all his candles are yellow, mine are too. Is there anything...
ALE Hello CV, The color of the candles depends on the values, if you try the indicator on the ...
cv Thank you Ale.
Domenec Hola Nicolas todo y el suavizado es como el awesome da ala señal 3 velas atrasada a veces de...
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. ...
finplus Muchas gracias. Have a good day.
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
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