Call function and code only works with PRT lists and not your own
Forums › ProRealTime English forum › ProScreener support › Call function and code only works with PRT lists and not your own
- This topic has 6 replies, 2 voices, and was last updated 3 years ago by Alfy.
-
-
04/07/2021 at 11:44 AM #166398
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.
04/08/2021 at 9:36 AM #166477Do 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.
1 user thanked author for this post.
04/08/2021 at 10:52 AM #166498Good 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
pocket pivot screener1234567891011121314151617181920212223242526272829303132daystoconfirmuptrend = 50cPrc1 = (close > Average[daysToConfirmUpTrend](close) AND Close > close [1])maxDay = 10maxDownDay = 0maxdown = 0FOR d = 1 TO maxDay DOr = Close[d] - close[d+1]IF r <0 and volume[d]> maxDown THENmaxDown = volume[d]maxDownDay = dENDIFNEXTIF maxDownday = 0 THENmaxDowndayVol=0ELSEmaxDowndayvol = volume[maxdownday]ENDIFcVol2 = (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 coderesult=call "Pocket Pivot vol50"Screener[result]04/08/2021 at 10:58 AM #16650004/08/2021 at 11:03 AM #166502Well 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.
04/08/2021 at 11:05 AM #166504Your 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).
1 user thanked author for this post.
04/08/2021 at 11:18 AM #166507 -
AuthorPosts
Find exclusive trading pro-tools on