Screener OR function

Forums ProRealTime English forum ProScreener support Screener OR function

Viewing 5 posts - 1 through 5 (of 5 total)
  • #171444

    Hello

    I’m having trouble getting the screener to look for two outcomes within the same command. I’m trying to find stocks that with a close above/below the highest/lowest weekly close over the past 13 weeks, with weekly averages in order, but combined with an ROC [13] greater than +30 for the highest, and -30 for the lowest, yet when I run the screener I’m not getting the same results as running the highest / lowest variants under separate screeners? Any help appreciated! Thanks

     

    #171447

    It may be due to the way conditions are combined with relational operators.

    How do you want to combine them?

     

    #172602

    Hi Robert

    I’m not sure I understand? All I want the screener for is to show both the longs and shorts possible screening for the criteria listed. Or would it be better to split into two screeners, one long and one short?

     

    Thanks

    #172606

    Conditions involving relational operators can behave differently according to the use of parentheses. Try this as line 26, inside SCREENER’s brackets:

    In any case, I tested your original code and it just returned about ten signals on the weekly TF, selecting shares from UK, USA, Germany and Italy.

    #172648

    Thanks Robert. That makes sense now!!! 😉

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

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