Better Bollinger Bands

Forums ProRealTime foro Español Soporte ProBuilder Better Bollinger Bands

Viewing 1 post (of 1 total)
  • #25063

    ¿Alguien puede hacer la conversión a Prorealtime de este interesante indicador? https://es.tradingview.com/script/dK1uhbN8-DEnvelope-Better-Bollinger-Bands/

    Este es el código de la plataforma Tradingview:

    //
    // @author LazyBear
    // List of all my indicators: https://www.tradingview.com/v/4IneGo8h/
    //
    study(“DEnvelope [LazyBear]”, shorttitle=”DENV_LB”, overlay=true)
    lb=input(20, title=”DEnvelope lookback length”)
    de=input(2, title=”DEnvelope band deviation”)
    alp=2/(lb+1)
    src=hlc3
    mt=alp*src+(1-alp)*nz(mt[1])
    ut=alp*mt+(1-alp)*nz(ut[1])
    dt=((2-alp)*mt-ut)/(1-alp)
    mt2=alp*abs(src-dt)+(1-alp)*nz(mt2[1])
    ut2=alp*mt2+(1-alp)*nz(ut2[1])
    dt2=((2-alp)*mt2-ut2)/(1-alp)
    but=dt+de*dt2
    blt=dt-de*dt2
    plot(but, color=red, linewidth=2)
    plot(dt, color=gray)
    plot(blt, color=green, linewidth=2)

Viewing 1 post (of 1 total)

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