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 • 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 • 136 days ago #

    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

avatar
Register or

Likes

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

+1 more likes

Related users ' posts
BullBear Insgesamt sehr interessant. Vielen Dank für die weitergehenden Erläuterungen.
Thomas Ich habe den Bereich "Bull-/BearTrend" verändert. So liefert er sauberere und stabilere Sign...
ESCapedTestSubject Interesting. Many thanks. What is the market open indicator that you use? Could you share ...
Vonasi There are actually two ways to calculate standard deviations and I seem to have used the ver...
Vonasi You can open a free end of day account directly with PRT and so play with some of the new fe...
segie Can something similar be done with Supertrends?
Vonasi Not sure I fully understand what you are asking for. Are you asking for MTF Supertrend level...
swedshare You got some potential here. A couple of things I think about: 1, The opening hours in this...
phoentzs Ich habe hier mit Spread 2 gerechnet, also etwa dem Mittelwert zwischen Tag und Nacht. Das G...
phoentzs Hab festgestellt, das US500 fast noch besser funktioniert als der Dax. Was aber auch daran l...
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...
robertogozzi You can read this topic (https://www.prorealcode.com/topic/multiple-strategies-within-one-tr...
Gaby Thanks Roberto to post this Kama SMA strategy.
Philstrading Ok I just noticed your lower down comment about opening u pnew topic... sorry about that.......
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...
berga Hi, thank you very much for this very useful screener. I would like to get another very clos...
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...
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. ...
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