Linear Regression Candles

Forums ProRealTime forum Français Support ProScreener Linear Regression Candles

Viewing 3 posts - 1 through 3 (of 3 total)
  • #230153

    Bonsoir,

    serait-il possible d’avoir un screener qui idenfierait le passage de la bougie au dessus ou au dessous de la ligne de signal?

    Merci.

    PS : je n’ai pas réussi à insérer le code dans la cellule prévue à cet effet.

     

    //PRC_Linear Regression Candles
    //version = 0
    //15.03.24
    //Iván González @ http://www.prorealcode.com
    //Sharing ProRealTime knowledge
    ///////////////////////////////////////////////////////
    //——————Inputs——————————
    signallength = 11 //integer//Signal Smoothing
    smasignal = 1 //boolean // Simple MA (Signal Line)
    linreg = 1 //boolean//Linear Regression
    linreglength = 11//integer//Linear Regression Length
    //——————————————————
    //————-Candle definition————————
    if linreg then
    bopen = LinearRegression[linreglength](open)
    bhigh = LinearRegression[linreglength](high)
    blow = LinearRegression[linreglength](low)
    bclose = LinearRegression[linreglength](close)
    else
    bopen = open
    bhigh = high
    blow = low
    bclose = close
    endif
    //——————————————————–
    //————–Color candles—————————–
    if bopen < bclose then
    r=0
    g=0
    b=255
    else
    r=255
    g=0
    b=0
    endif
    //———————————————————
    //—————Draw Candles——————————
    DRAWCANDLE(bopen, bhigh, blow, bclose)coloured(r,g,b)
    //———————————————————
    //—————Signal definition————————-
    if smasignal then
    signal = average[signallength](bclose)
    else
    signal = average[signallength,1](bclose)
    endif

    return signal as “Signal”coloured(“white”)style(line,2)

    #230195

    Bonjour ici, vous avez le code

    1 user thanked author for this post.
    #230211

    Merci pour la réactivité.

Viewing 3 posts - 1 through 3 (of 3 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login