Hello
I am new at PRT and was testing ProBuilder and Screener. I ran into a strange issue though. I wrote a very simple code for a Screener and applied it to the list which contains a mix of indices, commodities and Forex pairs. The code is:
c1 = Open > Close
c2 = Open < Close
SCREENER (c1 or c2)
I would expect all instruments to be returned except the ones with Open = Close. Unfortunately, only a few indices were returned. No Forex, no gold, no silver. I thought it had something to do with type of instruments as all Forex and gold/silver fall under Currencies – Betting category. I use spread betting account with IG.
Could you please share your thoughts what has happened and how I could fix it.
Many thanks
Mindas
Use brackets for the conditions, as parentheses are to be used for criteria:
SCREENER [c1 or c2]
Thank you for a reply,
I adjusted the code, the result still did not change. You can see below screenshot, showing I ran this Screener for a List called “World” which has 20 instruments. It returns only 5 indices, none Forex pairs. I would expect to return them all. My theory remains: 1) something to do with the categories of different instruments, or 2) today is weekend.
Screeners work live or on the last candle before the weekend, so the WE should not matter.
I experienced some results that shouldn’t have been given, but it was just a few. In any case sometimes there can be some weird results.
I used this modified version to restrict results to only indices, tocks and securities whose price is above 20000, just to narrow the results:
c1 = Open > Close
c2 = Open < Close
SCREENER [(c1 OR c2) AND (close > 20000)](open <> close)
Sorry if I’m wrong but tI think the default World list don’t have forex pairs?
Hi Nicolas
Mine has, I guess I made some changes to the list some time ago when I just started using PRT.
A quick update on the issue. Proscreener started to work when markets opened late on Sunday. I tested it a little more today and it works beautifully, really nice tool!
Thank you both for responding to me!