PROSCREENER PER REGRESSIONE LINEARE

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #119351 quote
    massimogp
    Participant
    Senior

    Buona sera Roberto, grazie per i proscreener precedenti, funzionano benissimo (atr e pivot vari periodi), ti chiedevo ora se è possibile estrarre un codice per le seguenti condizioni:

    prezzo che passa  sopra la curva di regressione lineare (a 40 periodi) e con RSI (14) sotto a 40 per il long, mentre per lo short il prezzo che passa sotto la linea di regressione lineare (a 40 periodi) e l RSI sopra 60.  Allego un estratto dell Azione BMW al 29/08/2019 come esempio per il long. Spero possa essere utile a tutti. Grazie mille

    BMW-CON-REGR-LINEARE.png BMW-CON-REGR-LINEARE.png
    #119408 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    MyLR  = LinearRegression[40](close)
    MyRSI = Rsi[14](close)
    // Long
    L1    = close CROSSES OVER  MyLR
    L2    = MyRSI < 40
    // Short
    S1    = close CROSSES UNDER MyLR
    S2    = MyRSI > 60
    //
    x     = 0
    IF L1 AND L2 THEN
       x = 1
    ELSIF S1 AND S2 THEN
       x = 2
    ENDIF
    SCREENER[x](x AS "1↑,2=↓")
    x-2.jpg x-2.jpg
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

PROSCREENER PER REGRESSIONE LINEARE


ProScreener: Scansione Mercati & Screener

New Reply
Author
author-avatar
massimogp @massimogp Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
6 years ago.

Topic Details
Forum: ProScreener: Scansione Mercati & Screener
Language: Italian
Started: 02/11/2020
Status: Active
Attachments: 2 files
Logo Logo
Loading...