Better Bollinger Bands

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #25063 quote
    bolsatrilera
    Participant
    Master

    ¿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)
  • You must be logged in to reply to this topic.

Better Bollinger Bands


ProBuilder: Indicadores y Herramientas

New Reply
Author
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder: Indicadores y Herramientas
Language: Spanish
Started: 02/14/2017
Status: Active
Attachments: No files
Logo Logo
Loading...