[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More about Bollinger Bands...



PureBytes Links

Trading Reference Links

Hi Nick,

I used a 20-days Simple Bollinger Band with 2 sigmas. 

Let's break the formula down into separate pieces:

(If(C>=BBandBot(C,20,S,2) AND C<=BBandTop(C,20,S,2),1,0))
Function: if the close is between the Bollinger Bands, this generates a 
1.

(Cum(If(C>=BBandBot(C,20,S,2) AND C<=BBandTop(C,20,S,2),1,0)))
Function: counts the total number of days the close is between the 
Bollinger Bands.

(-19+Cum(1))
Function: counts the total number of days in test, but because a 20-day 
Bollinger Band needs 20 closes to calculate the Band, you need to 
subtract 20 days. But then your get a "divide by zero" error, so I 
changed it to 19 days.

Hopefully this works for you? If not, just ask.

Regards,
Onno

----- Origineel Bericht -----
Van: "Nick Channon" <nick.channon@xxxxxxxxxxxxx>
Datum: Vrijdag 21 September 2001 9:39
Onderwerp: Re: More about Bollinger Bands...

> Hi Onno,
> 
> Thanks for posting this formula. I've tried it out but I don't 
> understandhow to interpret it - could you kindly post some further 
> explanation?
> Regards,
> Nick
> 
> 
> -----Original Message-----
> From: onno goedknegt <o.goedknegt@xxxxxxxxx>
> To: metastock@xxxxxxxxxxxxx <metastock@xxxxxxxxxxxxx>
> Date: Friday, 21 September, 2001 6:55
> Subject: More about Bollinger Bands...
> 
> 
> >Hi all,
> >
> >Recently I developed a formula which shows the "reliability" of
> >Bollinger Bands. The indicator shows the chances the close is within
> >the Bollinger Bands:
> >
> >(Cum(If(C>=BBandBot(C,20,S,2) AND
> >C<=BBandTop(C,20,S,2),1,0)))/(-19+Cum(1))
> >
> >For the DJIA 1900-1997: 87.5 %
> >
> >Regards,
> >Onno
> >
> >
> 
>