Basic Screener Issues

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #232763 quote
    swingforyoursupperswingforyoursupper
    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
    drubydruby
    Participant
    New

    c2 twice !

    lines 9 and 10

    #232767 quote
    swingforyoursupperswingforyoursupper
    Participant
    New

    thank you!

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

    #232774 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Basic Screener Issues


ProScreener: Market Scanners & Detection

New Reply
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by robertogozzirobertogozzi
2 years, 4 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 05/17/2024
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...