AlfyParticipant
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]
There was an issue with CALL from inside a screener, but it should have been fixed a few days ago.
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’.
AlfyParticipant
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
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.
AlfyParticipant
Average
Understood. Sorry for confusion