Multiple crossings at different times

Forums ProRealTime English forum ProBuilder support Multiple crossings at different times

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

    Hi guys!

    I need help to define a specific situation in code. Can´t figure out how to set these conditions.
    My goal is to define a buysignal when following happens:

    EMA 30 first crosses over EMA 80 and then crosses over EMA 200.

    If i set the condition EMA30 CROSSES OVER EMA80 AND EMA200, then it means that these line crossings happen same time, right? I just want it to happen if it crosses both lines with a maximum of a few hours between the crossings.

    Is it possible to define this?

    #69057

    There you go (both crossings occurring 3 candles apart at most, all within the last 4 candles):

     

     

     

    1 user thanked author for this post.
    #69087

    Thank you so much Roberto!

    1 user thanked author for this post.
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