Combine two screener to one code.

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

    Hello!

    Is it possible to combine two screener with each other?

    I’ve tried to search but couldn’t fint anything about it.I’m not so good do do this by myself. Is there anyone here who can help me with this?  Thanks

    mm12 = average[12](close)
    mm24 = average[24](close)
    
    //bullish golden cross
    bullish = mm12 crosses over mm24
    bearish = mm12 crosses under mm24
    
    SCREENER [bullish or bearish] (Variation as "% change from previous day")
    REM Calculate the RSI indicator on 14 bars
    myRSI = RSI[14]
    
    REM Our filter condition : RSI > 70
    Filter = myRSI > 70
    
    REM Sorting criteria: myRSI
    SCREENER [ Filter ] (myRSI AS "RS")
    #94228 quote
    robertogozzi
    Moderator
    Master

    The first screener deals with both Bullish and Bearish trends, while the latter (Rsi) deals with just one trend (but can’t tell which one, it could be a continuation of a Bullish Trend or a Bearish trend reversal).

    What (and how) do you want to scan?

    #94327 quote
    mattssonjesper
    Participant
    New

    Just want to scan bullish trends right now, and not continuation. I want to pick upp stock thats been on a bearish trend and starts to go bullish.

    #94335 quote
    robertogozzi
    Moderator
    Master

    There you go:

    mm12 = average[12](close)
    mm24 = average[24](close)
    
    //bullish golden cross
    bullish = mm12 crosses over mm24
    //bearish = mm12 crosses under mm24
    
    myRSI = RSI[14]
    
    Filter = (myRSI > 70) AND Bullish
    REM Sorting criteria: VOLUME
    SCREENER [Filter] (Volume AS "Vol")

    I used VOLUME  as a criterion, but you can use CLOSE or whatever else you want.

    #94361 quote
    mattssonjesper
    Participant
    New

    Thank you very much! Have a god day.

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

Combine two screener to one code.


ProScreener: Market Scanners & Detection

New Reply
Author
Summary

This topic contains 4 replies,
has 2 voices, and was last updated by mattssonjesper
6 years, 12 months ago.

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