Multi timeframe conditional testing question

Forums ProRealTime English forum ProScreener support Multi timeframe conditional testing question

Viewing 6 posts - 1 through 6 (of 6 total)
  • #18969

    Hi,

    I ‘m trying to code a ProScreener indicator using two timeframes, 15 minutes and 5 minutes. How do I test a condition on the 15 minutes timeframe has been met within the last, say 10 bars, while on the 5 minute time frame?

    See the example code below where the “long” condition is what I’m trying to figure out

     

    #18971

    “long” as in line 16 of the above code.

    #18990

    So if I understand correctly your request, you want to return immediately the stocks that fulfilled the conditions of your 5 minutes timeframe, while the conditions of the 15 minutes timeframe were met at least 1 time within the last 10 bars?

    #19045

    Yes that’s correct.

    #19050

    Ok, so please find below the modified code accordingly to this condition testing on the 15 minutes timeframe:

    It now should operate correctly, please let us know!

    #19086

    Thanks Nicolas, much appreciated as always.

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

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