indicator Linear regression candle

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #207080 quote
    MadrosatMadrosat
    Participant
    Master
    Bonjour
    est ce que cet indicateur a été traduit en langage preorealtime??
    Je ne trouve pas??
    //@version=4
    study(title=”Humble LinReg Candles”, shorttitle=”LinReg Candles”, format=format.price, precision=4, overlay=true)
    signal_length = input(title=”Signal Smoothing”, type=input.integer, minval = 1, maxval = 200, defval = 11)
    sma_signal = input(title=”Simple MA (Signal Line)”, type=input.bool, defval=true)
    lin_reg = input(title=”Lin Reg”, type=input.bool, defval=true)
    linreg_length = input(title=”Linear Regression Length”, type=input.integer, minval = 1, maxval = 200, defval = 11)
    bopen = lin_reg ? linreg(open, linreg_length, 0) : open
    bhigh = lin_reg ? linreg(high, linreg_length, 0) : high
    blow = lin_reg ? linreg(low, linreg_length, 0) : low
    bclose = lin_reg ? linreg(close, linreg_length, 0) : close
    r = bopen < bclose
    signal = sma_signal ? sma(bclose, signal_length) : ema(bclose, signal_length)
    plotcandle(r ? bopen : na, r ? bhigh : na, r ? blow: na, r ? bclose : na, title=”LinReg Candles”, color= color.green, wickcolor=color.green, bordercolor=color.green, editable= true)
    plotcandle(r ? na : bopen, r ? na : bhigh, r ? na : blow, r ? na : bclose, title=”LinReg Candles”, color=color.red, wickcolor=color.red, bordercolor=color.red, editable= true)
    plot(signal, color=color.white)Indicator Linear regression candle
    #207104 quote
    NicolasNicolas
    Keymaster
    Legend

    Une image pour illustrer ? C’est le pré requis pour les demandes de conversion, merci pour l’aide que tu pourras apporter.

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

indicator Linear regression candle


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Madrosat @madrosat Participant
Summary

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

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 01/08/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...