Call function and code only works with PRT lists and not your own

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #166398 quote
    Alfy
    Participant
    Average

    Good morning guys, further to my last post regarding pro screener not working properly with the “call” function and also with fully coded screeners, I’ve now noticed that the “call” function is working on PRT created lists like US Nasdaq stocks and US NYSE stocks but isn’t working on self created lists.

    #166477 quote
    Nicolas
    Keymaster
    Master

    Do you have an example please? Because I made a simple test with an RSI cross over level 50 and it works just fine to find the same instruments between a predefined list and my own personal one.

    Alfy thanked this post
    #166498 quote
    Alfy
    Participant
    Average

    Good morning Nicolas, thanks for replying. I’ve included the full code for the screener and also the code with only the “call” function but sadly this morning i cant recreate the problem as the indicator is not coming up with any hits. This issue has been going on a while though and ive reported it before on the forum whereby the pro screener doesn’t pick up a stock even when the underlying indicator does. I’ve used both the full code and the “call” function to find out the problem and neither works even though by going through the list of stocks manually you can see the indicator working. Again as an experiment yesterday I tried to use the screener on the pre-built PRT lists and it worked but wouldn’t on my own lists. I’ve just looked through some other posts on the forum and some people have reported similar issues of indicators not working when used as a screener. I’ve reported this issue to PRT directly to see if they are having any problems with pro screener in general not just specific to the “call” function. Thanks for any light you can shine on the problem, best regards

    daystoconfirmuptrend = 50
    cPrc1 = (close > Average[daysToConfirmUpTrend](close) AND Close > close [1])
    maxDay = 10
    maxDownDay = 0
    maxdown = 0
    FOR d = 1 TO maxDay DO
    r = Close[d] - close[d+1]
    IF r <0 and volume[d]> maxDown THEN
    maxDown = volume[d]
    maxDownDay = d
    ENDIF
     
    NEXT
     
    IF maxDownday = 0 THEN
    maxDowndayVol=0
    ELSE
    maxDowndayvol = volume[maxdownday]
    ENDIF
     
    cVol2 = (volume > maxDownDayvol)
    cVol3=(volume > average[50] (volume))
    Cprc2 = (close >= Average[20](close))
    Cprc3 = (close CROSSES OVER Average[10](close) OR Close CROSSES OVER Average[50](close))
    cPrc11 = (close > low + ((high + low)/2))
    ind1 = (cPrc1 AND cPrc2 AND (cPrc3 OR 1) AND cVol2 AND cvol3 and (cPrc11 OR 1))
    RETURN ind1 COLOURED (0,0,200) AS "Pivot Pocket Vol50"
     
    Pro Screener code
     
    result=call "Pocket Pivot vol50"
    Screener[result]
    #166500 quote
    Nicolas
    Keymaster
    Master

    Ok, so that’s not a general issue but rather something not working with that code in particular, right?

    Alfy thanked this post
    #166502 quote
    Alfy
    Participant
    Average

    Well to be honest I’m not entirely sure. I’m not good at coding so posted first of all to check that my code is ok and in theory should be working and not that I’ve made some obvious error. It seems from reading other posts this morning that it may be a more general issue but of course i cant say. If I’ve posted in the wrong place apologies.

    #166504 quote
    Nicolas
    Keymaster
    Master

    Your code works fine for me, it finds the same results (same stocks) for a predefined list and my own list, see attached picture.

    There are several results on Euronext list today, daily timeframe, can you test it? (IG sponsored account).

    Alfy thanked this post
    proscreener-testing.png proscreener-testing.png
    #166507 quote
    Alfy
    Participant
    Average

    It works, thanks so much for that. Perhaps the issue I’ve been experiencing then is more a general one regarding pro-screener.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Call function and code only works with PRT lists and not your own


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Alfy @alfy Participant
Summary

This topic contains 6 replies,
has 2 voices, and was last updated by Alfy
4 years, 11 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 04/07/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...