Screener return values

Forums ProRealTime English forum ProScreener support Screener return values

Viewing 8 posts - 1 through 8 (of 8 total)
  • #219052

    Hi,

     

    I have created a screener for searching for bullish and bearish conditions.  I have set it to return -1 for the bearish results and 1 for the bullish results.

    The screener only ever returns bullish conditions.  I have coded up EXACTLY the same indicator and it works a treat.

    I then set the screener to return 1 for bullish and 2 for bearish, and it worked fine!

    This indicates that the screener cannot return negative values, or i am doing something wrong!

    Can anyone please help with this?

    Thanks.

    #219094
    JS

    Hi,

    Here is an example of a screener that shows 1 for bullish and -1 for bearish…

    In case of other problems, you will have to display your code…

     

    1 user thanked author for this post.
    #219202

     

    Hi,

     

    Many thanks for the reply.  I will use that.

     

    The key section from my code is attached.  So this returns a 1 or a 2 as expected.  If i substitute the return value 2 for a -1 then the -1 doe snot get returned.  Its as if the screener can only return positive values.

     

    Thanks.

    #219205
    JS

    Hi,

     

    As you can see in my last/previous screenshot, it is not a problem for a screener to display negative values… 🙂

     

    Unfortunately, I can’t try your screener because it’s not complete…

    Try your screener without the first line…”c8MABounce=0″…

    1 user thanked author for this post.
    #219223

    Hi again,

    Yes, I have used your version now with my screener and it works great, thank you.  🙂  I see “1”s and “-1″s.  I am now just curious, for my own education, why my version does not work.

    A slimmed down edit (functional) of the full version of my screener is attached, so the variable names don’t make sense.  However, it works enough to prove my point in that the screener, when written like this, does not return negative values.  If you run this code against FX pairs, for example, AUDCAD does not appear in the results.  The only results that show are with a “1”.

    Its going to be something obvious but I just can’t see it………

    Thanks again for your help.

    PS, removing the ”c8MABounce=0″ makes no difference

     

     

     

     

    #219229
    JS

    Hi,

    In your screener, you need to add the different conditions that can be true or false…

    Screener[c21MABounceUp or c21MABounceDn](c21MABounce as “21MA”)

     

    1 user thanked author for this post.
    #219231
    JS

    Hi,

    This will make your screener beter readable… if you want that 🙂

    1 user thanked author for this post.
    #219252

    Hi,

     

    Thank you very much for your help.  All suggestions have been incorporated in my screener.

     

    Its fantastic that the community has members as knowledgeable and as helpful as you are.

     

    1 user thanked author for this post.
    avatar JS
Viewing 8 posts - 1 through 8 (of 8 total)

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