Page 1 / 1
AFL: Better Bollinger Bands
04/01/2011 6:23 am

Administrator
Cool Senior Forum Expert


Regist.: 12/19/2010
Topics: 309
Posts: 2083
OFFLINE
In the Futures Magazine, October 1998, Dennis McNicholl describesthe use of Bollinger Bands and provides a means of making them tighter whenmarkets are trending. He calls them Better Bollinger Bands.



Formula:

pds=Param("Periods",20,2,200);
sd=Param("Standard Deviations",2, 0.01,10);
alpha=2/(pds+1);
mt=AMA( C, alpha );
ut=AMA( mt, alpha );
dt=((2-alpha)*mt-ut)/(1-alpha);
mt2=AMA(abs(C-dt), alpha );
ut2=AMA(mt2,alpha );
dt2=((2-alpha)*mt2-ut2)/(1-alpha);
but=dt+sd*dt2;
blt=dt-sd*dt2;

Plot( C, "Price", colorBlack, styleCandle );
Plot( but, "Upper band", colorRed );
Plot( blt, "Lower band", colorRed );
................
Reproduction of any of the articles in any means will be treated as as per law.
-----------------------
Help and be Helped.

http://apps.facebook.com/facebook_forums/?forum=209
Quote   
Page 1 / 1
Login with Facebook to post
Preview