Testing a condition on a defined number of bars

Forums ProRealTime English forum ProBuilder support Testing a condition on a defined number of bars

Viewing 2 posts - 1 through 2 (of 2 total)
  • #138379

    Hi,

     

    I cannot figure out how to test if a condition is true in a predefined period or a number of bars. I have been trying to use barIndex with little luck. Can someone please offer some guidance? thank you.

    I’d like to write a code like this:

    #138385

    Two cases:

    1. the conditions need to be met on ALL periods
    2. the conditions need to be met on AT LEAST ONE of the periods

     

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

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