a problem with heikin-ashi formula

Forums ProRealTime English forum ProScreener support a problem with heikin-ashi formula

Viewing 8 posts - 1 through 8 (of 8 total)
  • #202560

    hi gentlemen,

    i have a question, i have written a simple code to detect inside bars of the same colour on heiken-ashi.

    but the screener, i think, sometimes give me inconsistent results. below are the formulas that i use.

    can you check it out for me where i did wrong for example? or it’s the fault of screener?

    thank you.

    #202567

    This is not the correct formula for Heikin Ashi candlesticks, please use the one below:

    Xopen and Xclose in your case.

    1 user thanked author for this post.
    #202597

    one final question: yes now the formula works but does not include dojis. i put the equal sign but again it does not work (for the dojis).

    for example on 14/10/2022 doesnot show BRENNTAG stock on dax40.

    where am i wrong? thank you!

     

     

    #202599
    JS

    Hi @gnellas77

    Try this one…

     

     

    1 user thanked author for this post.
    #202615

    now it catches the pure doji of BRENNTAG and the small doji of FRESENIUS but misses SYMRISE and DELIVERY HERO which have an inside bar of the same colour. That was the objective from the beginning to catch both inside bars and dojis at the same time.

    i would like to have one formula for both cases. Do i have to use them seperately? by the way are the variables of xHigh and xLow necessary once i m only interested in the bodies of the candles?

    thank you!!!

    #202634
    JS

    The body of the Doji is theoretically equal to zero when the Close = Open.

    However, this will rarely (never?) occur and that is why you express the body of the Doji in a percentage of the range (xHigh – xLow).

    For the inside bar you first have to determine whether you are looking for a “Bull Candle (xOpen < xClose)” or a “Bear Candle (xOpen > xClose)”.

    So, you have to add an extra condition.

    1 user thanked author for this post.
    #202657

    Examples of Doji spotted with Heikin Ashi formula, and with percentage of body compared to the range:

    https://www.prorealcode.com/prorealtime-indicators/heikin-ashi-doji-candle/

    https://www.prorealcode.com/prorealtime-market-screeners/heikin-ashi-doji-screener/

    1 user thanked author for this post.
    #202745

    ok mr. js finally i made it. a combo was needed. my brains stuck for a while. your code i thought it was a repetition of mine to some extend.

    your help was very useful. thank you very much!!!

    1 user thanked author for this post.
    avatar JS
Viewing 8 posts - 1 through 8 (of 8 total)

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