Heikin Ashi 4 hours in a 1 minute timeframe

Forums ProRealTime English forum ProBuilder support Heikin Ashi 4 hours in a 1 minute timeframe

  • This topic has 14 replies, 4 voices, and was last updated 6 years ago by avatarLeo.
Viewing 15 posts - 1 through 15 (of 15 total)
  • #63343

    Hi

    I am using a 4 hour Heikin Ashi filter in one of my trading strategies (e.g. when 4h Heikin Ashi is green the main trent is Bull and when it becomes red then trent has changed to Bear). The trigger for buy/sell is done in a 1 minute chart and I wounder if it is possible to create a code that will give tru/false (1/-1) for the filer (4h HA) in the 1 minute chart?

    #63351

    I moved your post to a whole new topic.

    I think that it would be possible to code something about this idea. But, do you want to know the 4 hours Heikin Ashi candlestick color while it is still not closed in this timeframe? Or do you want to update the info only once the 4h candle has closed (so one time each 4 hours)?

    #63364

    Hi Nicolas and thank´s for your answer!

    Yes, I want to know if 4 hr Heikin Ashi is green (bull) or red (bear) during the 4 hr period (sometimes it switches from bull to bear /bear to bull during the open period). E.g when I have a trigger buy (bull position) in my 1 minute chart the overall trend, during the open period, 4 hour Heikin Ashi has to be bull (green). Otherwise, the trigger is false.

    I want the script to test in the current period how 4 hr Heikin Ashi is located, red or green (not the previous closed period)

    Now I using this script (I think you’ve created it), see below. At the moment I doing the filtering manually and it would be greath if I can ad a code into the 1 minute trigger script.

     

    Thanks in advance

    #63380

    Paste the wrong code.

    This is the code i’m using for manual filtering.

     

    #63445

    I made this code, it is only compatible for a 1 minute timeframe. I made comparison with the 4 hours timeframe and it seems good.

     

    1 user thanked author for this post.
    #63463

    Bonjour Nicolas,

     

    Pourquoi l’affichage d’unités d’historique en 1 minutes changent elles la donne sur l’indicateur???

    #63465

    @Alai-n

    Sorry, english topic..


    @benji_064

    Made a complete indicator with more options, in particular the capability to choose higher timeframe: Heikin Ashi of higher timeframes (hourly TF)

    #63470

    Hello Nicolas,

     

    Why does the display of historical units in 1 minutes change the situation on the indicator ???

    #63472

    Because Heikin Ashi refer to last known candle at its open, so the more data you have the better and accurate is the calculation. Because we try here to get the superior timeframe value, we need many bars to compute at least 3 or 4 H4 candlesticks and get the same HAOPEN than in the superior timeframe. Hope it’s clear.

    1 user thanked author for this post.
    #63476

    Not clear at all;) But hey I trust you … If I use it I remember that it needed history, it’s already that !!!

    1 user thanked author for this post.
    #63650

    Hi Nicolas,

    Many thanks the response and the code. It looks like imitating 4 hr Heikin Ashi very well. I will try and see how it works. What changes to the code would I have to do if I were to emulate 1 hr Heikin Ashi to the 1 minute graph?

    #63652

    What changes to the code would I have to do if I were to emulate 1 hr Heikin Ashi to the 1 minute graph?

    Nothing to change, use the indicator I posted in the library and set the setting to “1”. Everything is explained in the above link.

    1 user thanked author for this post.
    #63658

    What changes to the code would I have to do if I were to emulate 1 hr Heikin Ashi to the 1 minute graph?

    Nothing to change, use the indicator I posted in the library and set the setting to “1”. Everything is explained in the above link.

    Ok, thank’s!  I tryed to use the indicator that you have created but something seems to be wrong. See attached picture.

    Capture1

    #63665

    You made a wrong copy/paste. Please download the .itf file and import it directly into your platform: How to import and export codes from ProRealTime platform?

    1 user thanked author for this post.
    #63719
    Leo

    I think line 4 is :

    open4h = (open4h+haclose)

    very clever method for calculating 4 hour tf in minute chart. Thanks Nicolas.

    benjamin: let us know your methodology of trading, seems very interesting for scalping.

    thanks in advance.

Viewing 15 posts - 1 through 15 (of 15 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login