Error found in ProRealTime ProScreener tool.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #4200 quote
    drecio
    Participant
    New

    Hi, I think there is an error in ProrealTime ProScreener.

    I wrote an easy Year To Date % performance code, but it is not working:

    There is a radio button to toogle between lowest/highest values. The thing is it shows only the lowest values for NYSE, NASDAQ, EURONEXT, etc.. But if I want to show the highest values for these markets then shows nothing.

    Please note that If I choose another market like France 40 then it does show both the highest and lowest values, It’s a bit weird.
    This is the code. Kind Regards.

    if date=20151231 then // You can change this date to whatever you want and you'll get the same result. No highest values
       d1=Close
    endif
    
    // YTD %
    //var=((close/d1)-1)*100
    var=((close-d1)/d1)*100
    
    SCREENER (var as "s")
    #4211 quote
    Nicolas
    Keymaster
    Master

    Hi drecio,

    Please tell us what is the number of matches for the screener that dont return anything ?

    #4275 quote
    drecio
    Participant
    New

    Hi you can find attached 2 screenshots of a NYSE screening. In both cases (lowest and highest values) there are 3220 matches. But the list only is populated when lowest values are selected, if you select highest values the list shows nothing.

    Regards

    ProScreener-YTD-NYSE-lowest-Values-3220-matches-shown-50.-png.png ProScreener-YTD-NYSE-lowest-Values-3220-matches-shown-50.-png.png ProScreener-YTD-NYSE-highest-Values-3220-matches-shown-0.-png.png ProScreener-YTD-NYSE-highest-Values-3220-matches-shown-0.-png.png
    #4294 quote
    Nicolas
    Keymaster
    Master

    Thanks for your examples. I will investigate more deeply to find what cause this behaviour.

    #4383 quote
    Nicolas
    Keymaster
    Master

    I found how to solve your problem. It seems that your d1 variable were set to 0 because there were no candle at this date. So ProScreener met a bug that It cannot divide something by 0 (zero divide error that many coders known 🙂 )

    So here is the code that solve this issue. If the daily candle dont exist, then the previous candle is taken.

    once d1set = 0
    if d1set = 0 then
     d1=close
    endif
    
    if date>=20151231 then
     d1set = 1
    endif
    
    var=((close-d1)/d1)*100
    SCREENER(var as "s")
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Error found in ProRealTime ProScreener tool.


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
drecio @drecio Participant
Summary

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

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