Heikin Ashi candlestick body and moving average condition

Forums ProRealTime English forum ProOrder support Heikin Ashi candlestick body and moving average condition

Tagged: 

Viewing 15 posts - 1 through 15 (of 24 total)
  • #80715

    Hello Everyone!

     

    I hope you are well! Once more I’d like to thanks all the participants that makes this website so useful…!

     

    I am currently blocked, I’d like to make a condition that allows me to sell, for example, if the previous Heinkin Ashi candle was under the moving average 30

     

    Does someone knows or has a clue? I can’t find the solution… @Nicolas?

     

    Thanks! 😀

    #80734

    There are so many Heikin Ashi codes around that I think you haven’t search enough 🙂

    Anyway, here is an example about looking for an heikin ashi candlestick below a moving average:

    Close of an Heikin Ashi candle is the same as “totalprice”.

    #80753

    Thank you @Nicolas!

     

    Yes, I’ve seen some but none of them suits what I’m looking for.

     

    In fact, I don’t understand why but when I implement such a strategy it does not take all the possible entries but only some of them and I don’t understand why

     

    Do you have an idea regarding this?

     

    THANKS!!! 😀

     

    #80754

    Everytime you add a leading “@” to a nickname that user receives an email + he receives a further, duplicate, email because he subscribed (just answering) to a topic. So, please don’t abuse “@”!

     

    #80755

    Oh! Ok! I’m sorry!

    #80766

    For example, with the picture enclosed we can see that a green Heikin Ashi candle 1 crosses the blue line (MM30) and the following candle (2) is bigger than the previous one (slightly).

     

    I’d like to write a code that allows me to buy on such conditions but I can’t manage why…

     

    Can you help? 🙂

    #80769

    Try this: (not tested)

    For a better and complete understanding of how to use variables and their past values, I suggest to watch the ProRealTime programming training videos.

     

    #80804

    Thank you so much Nicolas, this is a great start but it still makes me strange entry… Do you have a clue with the enclosed picture?

    #80814

    This is not heikin ashi candlesticks. Do the moving average period the same as the one in the code?

    #80815

    It wasn’t Heikin Ashi but the moving average 30 but the HULL one and not the simple one. Is there a way to implement the hull?

    #80816

    I think that the problem is that I want to implement the hull one and I have no idea how to implement it within the code…

    #80817

    Something like this would work?

    #80850

    I slightly modified it. What do you think about it? Is it the right way to implement the Hull 30?

    Thanks

    #80868

    Yes but in this case you are calculating the Hull moving average on the real Close, not with the Heikin Ashi candlestick one.

    Here is the modified code:

    Everything working as intended as per my tests.

    #80874

    Thank you so much Nicolas! I will test this evening! What do you think of such strategy?

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

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