Check if two MA's crossed within lasts 120 candles

Forums ProRealTime English forum ProOrder support Check if two MA's crossed within lasts 120 candles

Viewing 3 posts - 1 through 3 (of 3 total)
  • #12564

    Is there a way to know if two MA’s crossed within the lasts 120 candles?

    #12584

    1472825722_flagPlease update your country flag in your profile. Thank you 🙂

    You can make a test with a summation of successful boolean condition:

    If test returns “1”, it is true that a moving average crossover has occurred within the last 120 candlesticks.

     

    1 user thanked author for this post.
    #12586

    I came up with…

    But your code looks a bit more compact 🙂 Going to try it out. Thanks!

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

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