Basic Screener Issues

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #232763 quote
    swingforyoursupper
    Participant
    New
    sma20= AVERAGE[20](Close)
    sma50 = AVERAGE[50](Close)
    
    RSI8=RSI[8](Close)
    
    RSI14=RSI[14](Close)
    
    c1 = sma20 > sma50
    c2 = RSI[8] > 70
    c2 = RSI[14] > 70
    
    Cond  = c1 AND c2 AND c3
    
    SCREENER[Cond]

    Trying to get this simple code to work and it wont

     

    2 questions:

    1. Whats wrong with the code?
    2. How can I make it apply to the stocks where these conditions have been met in the last n days?

    Many thanks for your help

    #232765 quote
    druby
    Participant
    New

    c2 twice !

    lines 9 and 10

    #232767 quote
    swingforyoursupper
    Participant
    New

    thank you!

    Do you know how i can specify it to only look for the past n days?

    #232774 quote
    robertogozzi
    Moderator
    New

    For the last N days replace the last line with this one. You may want to replace 10 with a lookback period of your choice:

    SCREENER[summation[10](Cond)]
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

Basic Screener Issues


ProScreener support

New Reply
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by robertogozzi
1 year, 8 months ago.

Topic Details
Forum: ProScreener support
Language: English
Started: 05/17/2024
Status: Active
Attachments: No files
Logo Logo
Loading...