Indicator time period range?

Forums ProRealTime English forum ProOrder support Indicator time period range?

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

    Is there any way to have a condition use a time period range on an indicator without having to code each condition individually?

    As an example, if you wanted to check a moving average crossover but instead of just using one period crossing over another period you could specify a range so 1-10 cross over 20-30?

    Thanks

    Rob

    #29123

    Interesting way of checking multiple indicators’ periods conditions at the same time! You can use a FOR/NEXT loop in order to increment the moving average periods and to check their crosses.

    But I think you’ll get a lot of positive results while doing this. The main problem is that you’ll need to break the loop in order to have the result, and you’ll get only one, the first one (incrementing loop) or the last one (decrementing loop), because we can’t build data array in ProBuilder, you always need to know in advance how much variables you’ll need and it’s of course impossible 🙂

    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