Screener logic problem?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #125640 quote
    Linds
    Participant
    New

    Hi

    New to Prorealtime Proscreener.

    I have attempted to code a simple screener that filters for weekly closes over the 10ema.  But it seems to be picking candidates a week late.

    Can someone advise my logic error please?

    My ain is to identify stocks with a weekly close above the 10ema that had a weekly open below the 10ema and are at least $1 in value.

    Attached is the code logic and and example of a stock picked a week late.

    thanks

    ansell.png ansell.png screener.png screener.png
    #125643 quote
    robertogozzi
    Moderator
    Master

    I think it’s beacuse you have subscribed to free end-of-day data, so it’s 1 day late or 1 week late, depending on your TF.

    #125644 quote
    Linds
    Participant
    New

    Thanks Robert

    I dont understand that.  If I run a scan now, the week just gone has ended.  Why would it look back a further week?

    #125651 quote
    robertogozzi
    Moderator
    Master

    Yes, now charts have been updated.

    Would you mind posting the code written by PRT?  There’s something strange in the second line: close >= 1 (weekly).

    #125653 quote
    Linds
    Participant
    New

    I just ran the scan again – still a week late.

    Could it be that Australia/Asia is not deemed ‘closed’ or is not updated by PRT until later in the weekend than now?

    The code:

    indicator1 = ExponentialAverage[10](close)
    c1 = (close > indicator1)
    
    c2 = (close >= 1)
    
    indicator2 = ExponentialAverage[10](close)
    c3 = (open <= indicator2)
    
    SCREENER[c1 AND c2 AND c3] (Variation AS “%Chg prev bar”)

    many thanks

    #125655 quote
    robertogozzi
    Moderator
    Master

    My charts are updated.

    Australia closes before europe, so your charts should be updated as well, unless there’s some specific unknown reason, such as maintenance.

    The code is correct.

    PRT are likely to update charts correctly, leaving code one bar late.

    Try tomorrow.

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

Screener logic problem?


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Linds @linds Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by robertogozzi
5 years, 11 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 04/11/2020
Status: Active
Attachments: 2 files
Logo Logo
Loading...