ProScreener not agreeing with indicator

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

    Good morning guys, i have an issue with my screener. The indicator in pro-builder works fine but then when i call the function in the screener it doesnt pick up some stocks that fit the criteria of the indicator. Below ive posted the code for the indicator and also the pro screener code. The stock im looking at is (GRBK (Green Brick Partners inc) where the stock fits the criteria for the indicator but doesnt get picked up by pro screener. Would appreciate any help you can give to tell me where im going wrong. As always, thanks in advance

    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]
    
    #165651 quote
    robertogozzi
    Moderator
    Master

    There was an issue with CALL from inside a screener, but it should have been fixed a few days ago.

    #165801 quote
    Vonasi
    Moderator
    Master

    Alfy – Please give your topics more meaningful titles. Your title has been edited.

    • Give your topic a meaningful title. Describe your question or your subject in your title. Do not use meaningless titles such as ‘Coding Help Needed’.
    #165805 quote
    Alfy
    Participant
    Average

    Good morning Vonasi,the reason I didnt do that is that I’m not sure it is a CALL problem. I should have mentioned it in my post that even using the full code in screener comes up with the same problem not just using the call function.

     

    Best regards

    #165817 quote
    Vonasi
    Moderator
    Master

    OK – so I changed it again to something more descriptive than ‘Pro Screener problem’. We have to avoid this sort of topic title otherwise we end up with forums full of ‘Indicator problem’, ‘Strategy problem’ and ‘Screener problem’ and then searching topics becomes pointless.

    #165818 quote
    Alfy
    Participant
    Average

    Understood. Sorry for confusion

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

ProScreener not agreeing with indicator


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Alfy @alfy Participant
Summary

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

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 03/29/2021
Status: Active
Attachments: No files
Logo Logo
Loading...