Announcement

Collapse
No announcement yet.

Better Bollinger (Dennis McNicholl)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Better Bollinger (Dennis McNicholl)

    Hello,

    is it possible to get this code for esignal?
    Does anyone know the correct usage of the better bollinger bands?

    Thanks in advance.

    Tomcat



    Better Bollinger Bands by Dennis McNicholl
    (Futures 10/98)


    {Denvelope Indicator}

    inputs:
    lookback(20),
    mult(2);

    vars:
    alpha(0),
    mt(0),
    ut(0),
    dt(0),
    mt2(0),
    ut2(0),
    dt2(0),
    but(0),
    blt(0);

    alpha = 2 / (lookback + 1);
    mt = alpha * close + (1 - alpha) * mt;
    ut = alpha * mt + (1 - alpha) * ut;
    dt = ((2 - alpha) * mt - ut) / (1 - alpha);
    mt2 = alpha * absvalue(close - dt) + (1 - alpha) * mt2;
    ut2 = alpha * mt2 + (1 - alpha) * ut2;
    dt2 = ((2 - alpha) * mt2 - ut2) / (1 - alpha);
    but = dt + mult * dt2;
    blt = dt - mult * dt2;
    plot1(dt,"CenterB");
    plot2(but,"UpperB");
    plot3(blt,"LowerB");
    Attached Files

  • #2
    Tomcat
    I believe the attached efs will do what you asked
    The parameters can be changed through Edit Studies
    Alex

    Attached Files

    Comment


    • #3
      Thank you.

      Tomcat

      Comment

      Working...
      X