Canale regressione lineare

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #119141 quote
    R05R05
    Participant
    Veteran

    Gent.mi, vi chiedo se potete aiutarmi a creare un canale di regressione lineare ponderato con l’atr. Nel caso si potrebbe anche fare con le envelops, l’importante è che siano ponderate con l’atr. Vi allego una immagine del canale con le envelops. Vi ringrazio.

    3.jpg 3.jpg
    #119153 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    MyATR  = AverageTrueRange[14](close)
    MyLR   = LinearRegression[10](close)
    Top    = MyLR + MyATR
    Bottom = MyLR - MyATR
    RETURN MyLR AS "Regressione Lineare",Top AS "Banda Superiore",Bottom AS "Banda Inferiore"

    colora te le linee tramite le proprietà dell’indicatore.

    x.jpg x.jpg
    #119167 quote
    R05R05
    Participant
    Veteran

    Grande grazie Roberto, lo provo subito

    #119508 quote
    R05R05
    Participant
    Veteran

    Gent.mo Roberto, se volessi creare un canale applicando alla regressione lineare invece che l’ATR 2 deviazioni standard come dovrei fare? In modo da riproporre più o meno il canale dell’immagine allegata, canale che rimane più stabile nel senso che non segue i prezzi come ad esempio fanno le bande di bollinger.

    3-1.jpg 3-1.jpg
    #119518 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Alla riga 1 puoi scrivere:

    MyDEV = STD[2](close)

    poi sostituisci MyATR con MyDEV.

    Viene fuori questo:

    MyDEV  = Std[2](close)
    MyLR   = LinearRegression[10](close)
    Top    = MyLR + MyDEV
    Bottom = MyLR - MyDEV
    RETURN MyLR AS "Regressione Lineare",Top AS "Banda Superiore",Bottom AS "Banda Inferiore"

    Non mi pare il risultato sia come nella tua foto, mi sa che non ti sei spiegato bene.

    R05 and Nicolas thanked this post
    x-4.jpg x-4.jpg
Viewing 5 posts - 1 through 5 (of 5 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

Canale regressione lineare


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
R05 @r05 Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 02/10/2020
Status: Active
Attachments: 4 files
ProRealCode ProRealCode
Loading...