Drawline regressione lineare slope

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #80132 quote
    volpiemanuelevolpiemanuele
    Participant
    Veteran

    ciao,

    volevo creare un semplice indicatore che mi plotti sul grafico (come linea) la regressione lineare slope.

    sr=20 //come pametro….
    a=LinearRegressionSlope[sr](Close)

    Mi potete aiutare ?

    Grazie

    #80134 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Per scrivere il codice , utilizza il pulsante <> “insert PRT code” in modo da rendere il codice più comprensibile. Grazie.

    Basta che aggiungi come ultima riga RETURN a:

    sr=20   //come pametro….
    a=LinearRegressionSlope[sr](Close)
    return a

    Ovviamente non potrai metterlo sul prezzo, ma sotto (come Macd o Rsi, ecc….) perché ha una scala diversa rispetto al prezzo e vedresti le candele molto piccole.

Viewing 2 posts - 1 through 2 (of 2 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

Drawline regressione lineare slope


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 09/10/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...