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
Doddge Hola Iván, ¿sería posible crear un screener que indique cuándo las velas coloreadas del indi...
RTR Ivan thank you for the pro-screener. I a trying to understand how to write the signals from ...
Iván Hi, Lines 62 and 63. These lines define buy and sell conditions.
Gio56 Super idée. j'ai juste un souci. j'ai pas de barre verte mais plusieurs lignes de couleurs.....
DeathMetal change line in histgram, (click on indicator name, click on tool (
Gio56 Super merci.
gidien
11 months ago
Cram13 Bonjour, qu'elles sont les valeurs des variables ? Avec mes remerciements Marc
gidien This indicator will not return any value. You can change the last line to : return ao...
gidien SMA1 = MovingAverage Length applied to the source candles (high , low, op...
Bateson
1 year ago
Stanko Ciao Crusoe, grazie per il commento: confermo che il trailing stop non funziona bene. Provo ...
taklause I was wondering, you said it works on the 1 min Chart, but you never use it in the code as t...
Stanko Ciao taklause. Utilizzando il grafico a 1 minuto e fino al grafico a 15 minuti il codice fun...
FXtonio Nicolas.... MERCI 1 millions de fois, cet indicateur gagne dans 75% des cas en scalping m1 ...
davy42 bonjour, à quel moment apparait le fleche, à l'ouverture ou la fermeture de la bougie? merci
Freezer Bonjour, est-il possible d'ajouter une alarme sonore sur PRT à l'apparition des flèches ? Br...
BriceE Bonjour Nicolas, Je suis a la recherche d'indicateurs pour me donner la meilleure indicatio...
Paris On est bien d accord que l indicateur repeint ....
Nicolas naturellement si la bougie du timeframe supérieur n'est pas terminé
ThePenntChemist Does this show 5min time frame?
IV Mcm Good job !
IV Mcm Vous devez faire un clic droit sur le prix > propriété > ajouter indicateur Si vous...
punch1 Fonctionne pas chez moi il s'affiche rien pourtant j'ai bien fait le clic droit sur le prix ...
punch1 Je peux te faire un screen d'ecran si tu as un email :)
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. ...
bertrandpinoy @MAKSIDE I would be grateful if you send me your version. have a nice day
imran Hi I have been trying to test a strategy to buy and sell based on the indicator cross overs...
Zigo I'am sorry that I answer so late, but the code seems to be working perfect. I use the indica...
oliverkeim Hi, also here not working. Only white lines.
killerplatuze Dont work anymore with the current version?
KryptoKat tolle Arbeit, professionell
Vonasi There are actually two ways to calculate standard deviations and I seem to have used the ver...
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...
Kris75 very interesting; thanks !
FXmike hey my friends, thank you for this great code. my problem is he make no trade open. backtest...
FXmike Can i put a Action that my start contract is smaller than 1 ? 0.3 or 0.5 ? In wich Position...
phoentzs I wrote the code for M15 back then and also variants in H1 and M1. Everything works so far....
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...
Ngomsi @ Vonasi, how to use timeframe , 13 minutes ,21 minutes, 34 minutes,et 55 minutes with this...
YvesRobert @robertogozzi. It's done. Thank you
YvesRobert Hello Roberto, some questions about your strategy. 1 - Do the 2 lines SET TARGET pPROFIT T...
robertogozzi 1. The 2 lines SET TARGET pPROFIT TP and SET STOP pLOSS SL are always executed, each bar. Bu...
avatar
Anonymous Hi robertogozzi - thank you very much for sharing this strategy. I have performed various ...
robertogozzi Thank you samsampop.
Dotan Hello guys I really appreciate this coding effort but can I use this code for Mt5 Forex Trad...
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'...

Top