screener rialzista e ribassista

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #170176 quote
    Stenozar
    Participant
    Master

    Buonasera,

    chiedo se si potrebbe realizzare due screener che individuino il verificarsi di queste 2 condizioni in contemporanea:

    Rialzista

    1. prezzo sopra la media mobile semplice a 200 periodi;
    2. RSI che taglia dal basso verso l’alto il livello al valore 5;
    3. candela bullish engulfing

    Ribassista

    1. presso sotto la media mobile semplice a 200 periodi;
    2. RSI che taglia dall’alto verso il basso il livello al valore 95;
    3. candela bearish engulfing

    E’ possibile?

    Grazie!

    #170187 quote
    robertogozzi
    Moderator
    Master

    Eccolo (non provato):

    Sma200 = average[200,0](close)
    MyRsi   = Rsi[14{(close)
    Ob      = 95
    Os      = 100 - Ob
    Bullish = close > open
    Bearish = close < open
    Body    = abs(close - open)
    L1      = close > Sma200
    S1      = close < Sma200
    L2      = MyRsi CROSSES OVER  Ob
    S2      = MyRsi CROSSES UNDER Os
    L3      = (close >= open[1]) AND (open <= close[1]) AND Bullish AND Bearish[1]
    S3      = (close <= open[1]) AND (open >= close[1]) AND Bullish]1] AND Bearish
    C1     = Body > Body[1]
    CondL  = L1 and L2 and L3 and C1
    CondS  = S1 and S2 and S3 and C1
    x = 0
    IF CondL THEN
        x  = 1
    ELSIF CondS THEN
        x  = 2
    ENDIF
    Screener[x](x as "1=↑, 2=↓")
    #170194 quote
    luxrun
    Participant
    Master

    Buona domenica, Roberto e Stenozar, trascrivo sotto il codice corretto da alcuni errori di battitura. Inoltre ho variato le soglie dell’RSI altrimenti lo screener non trova nulla. Almeno in questo modo si può studiare se i titoli cercati sono relmente dei rialzi o dei ribassi. Grazie

    Sma200 = average[200,0](close)
    MyRsi   = Rsi[14](close)
    Ob      = 65
    Os      = 100 - Ob
    Bullish = close > open
    Bearish = close < open
    Body    = abs(close - open)
    L1      = close > Sma200
    S1      = close < Sma200
    L2      = MyRsi CROSSES OVER  Ob
    S2      = MyRsi CROSSES UNDER Os
    L3      = (close >= open[1]) AND (open <= close[1]) AND Bullish AND Bearish[1]
    S3      = (close <= open[1]) AND (open >= close[1]) AND Bullish[1] AND Bearish
    C1     = Body > Body[1]
    CondL  = L1 and L2 and L3 and C1
    CondS  = S1 and S2 and S3 and C1
    x = 0
    IF CondL THEN
    x  = 1
    ELSIF CondS THEN
    x  = 2
    ENDIF
    Screener[x](x as "1=↑, 2=↓")
    robertogozzi thanked this post
    #170199 quote
    robertogozzi
    Moderator
    Master

    Grazie luxrun, l’ho scritto dal cellulare e non l’ho provato.

    🙂

    #170214 quote
    Stenozar
    Participant
    Master

    Buonasera, vi ringrazio entrambi; proverò lo screener e in caso vi chiederò aiuto. Grazie!

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

screener rialzista e ribassista


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
Stenozar @stenozar Participant
Summary

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

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 05/22/2021
Status: Active
Attachments: No files
Logo Logo
Loading...