Highest bar in multiple ranges

Forums ProRealTime English forum ProOrder support Highest bar in multiple ranges

Viewing 4 posts - 1 through 4 (of 4 total)
  • #120971

    Hello,

    I’m a bit confused by an entry that my program has just made that my rules ought to have prevented. The rule is “only enter if highest in the last four bars equals the highest in the last 30 bars”.

    The screengrab below shows the highest flag occurring at 13:14, even though quite clearly there has been a higher bar at 12:58. I can’t understand why the high flag was allowed to return. Does anyone know why this is?

     

    #120978

    You don’t specify to check the highs so it will be checking the close. It should be like this.

     

    1 user thanked author for this post.
    #120979

    Because you did not specify the data on which HIGHEST and LOWEST have to cumpute their values, thus CLOSE is assumed.

    Use this, instead:

    and (high) with HIGHEST.

    #120991

    Ah yes, of course. I can’t believe I forgot that!!!

    Thank you.

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

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