How can I screen such a signal with values of 0 and 1??

Forums ProRealTime English forum ProScreener support How can I screen such a signal with values of 0 and 1??

Viewing 11 posts - 1 through 11 (of 11 total)
  • #139449

    Hi,

    I create an indicator to check BULL and NON-BULL signals. If BULL the signal = 1. If NON-BULL the signal = 0. It looks like the screenshot in attachment.

    Now I want to create a screener to find stocks which just change from NON-BULL to BULL (i.e from 0 to 1).

    The following is my code but it screens nothing out.

     

    Where is the problem?

     

     

    #139452

    0 cannot be returned by indicators.

    You can return any other value. Usually 1 is returned for bullish signals and -1 for bearish ones.

    Your screener cannot return anything because you are asking that it returns only when opposite conditions are both true, which is impossible!

    With the SCREENER keyword use OR  within brackets, instead of AND.

     

     

    #139453

    thomas2004ch – Please use the ‘Insert PRT Code’ button when putting code in your posts as required by the few simple forum rules that you are asked to follow. I have edited your post to tidy it up for you on this occasion. 🙂

    #139481

    Hi robertogozzi ,

    “Your screener cannot return anything because you are asking that it returns only when opposite conditions are both true, which is impossible!”

    That is not correct.  indicator and indicator[1] mean different, right? I want to scan stocks which changes from NON-BULL (yesterday) to BULL (today) as shown in my screenshot.

    I tried your method and use 1 for BULL and -1 for NON-BULL. But it doesn’t work. I find nothing.

    Here is my Check Indicator:

     

    And here again my Screener:

    #139500

    You are righe about my remark, I did not notice the difference between c1 and c2. That’s because in such cases I usually write just one line:

    I have tried several changes, but nothing worked. I also posted some code, but within seconds I realized it did not work and I deleted it (you may have received an email about this).

    It still does not return what you want.

    I suggest that you hit Ctrl+M from your platform to open a ticket with PRT’s assistance.

     

    #139540

    You should try to avoid the CALL instruction and copy/paste your indicator’s code directly into your screener and see how it goes.

    #139645

    Hi Nicolas,

    Now I combine the indicator and screener as follow but it still doesn’t work. :-\

     

     

     

     

    #139652

    At line 22 use a positive digit for bearish values.

    Ngative values are accepted by indicators, but not by screeners.

     

     

    #139679

    Ok. Now I change the code as follow, but still doesn’t work:

     

     

    #139685

    You are right, there’s no way to make it work.

    I suggest that you press Ctrl+M from the platform to ask for assistance from PRT.

     

    #139704

    Ok, many thanks!

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

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