Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Bollinger Band Width PCF Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Brucem
Posted : Thursday, December 20, 2012 7:47:52 PM
Registered User
Joined: 12/27/2010
Posts: 30

I am  trying to write a PCF condition to duplicate the indicator "Bollinger Band Width". The conditions I am using are  1)  XAVGC6 and 2)  SD of 1.75. The indicator results seem  to be arrived at by dividing the upper BB by the Lower BB giving a result of .o? which seems to be a percent.. The percent  or number that I am looking for would be a number <= .03 which is the number returned by the Bollinger Band Width indicator.  The following is what I have tried but the scan results are not correct. Can you Help?

XAVGC6 + 1.75 * SQR(ABS(C ^ 1.75 +C1 ^ 1.75 + C2 ^ 1.75
+ C3 ^ 1.75 + C4 ^ 1.75 + C5 ^ 1.75   - 6 * XAVGC6 ^ 1.75) / 6)    /
XAVGC6 - 1.75 * SQR(ABS(C ^ 1.75 +C1 ^ 1.75 + C2 ^1.75
+ C3 ^ 1.75 + C4 ^ 1.75 + C5 ^ 1.75  - 6 * XAVGC6 ^ 1.75) / 6)  <= 1.03

Thanks,

Bruce M

Bruce_L
Posted : Friday, December 21, 2012 8:36:16 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Please try the following instead:

3.5 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 - 6 * AVGC6 ^ 2) / 6) / XAVGC6 <= .03

Understanding MACD



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Brucem
Posted : Friday, December 21, 2012 11:01:48 AM
Registered User
Joined: 12/27/2010
Posts: 30

Bruce,

Thanks much. That works as I was expecting. Could you tell me what the "2" represents in

C ^ 2 + C1 ^ 2 etc. ?

Regards and Merry Christmas.

Bruce

Bruce_L
Posted : Friday, December 21, 2012 11:02:54 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

^ 2 is raising something to the power of two. So C ^ 2 = C * C.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dboyer
Posted : Friday, February 8, 2013 8:19:01 PM
Registered User
Joined: 11/25/2005
Posts: 1

Hello,

I want to have a condition so that the bollinger bands are "X" distance apart. Can you tell me how to simply do this?

Bruce_L
Posted : Monday, February 11, 2013 10:19:42 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

In the case of the Bollinger Bands with a period of 6 and a SD setting of 1.75 given above, the actual distance would the first part of the formula:

3.5 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 - 6 * AVGC6 ^ 2) / 6)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
donv98
Posted : Monday, July 17, 2017 11:35:30 AM
Registered User
Joined: 7/29/2010
Posts: 417

QUOTE (Bruce_L)

In the case of the Bollinger Bands with a period of 6 and a SD setting of 1.75 given above, the actual distance would the first part of the formula:

3.5 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 - 6 * AVGC6 ^ 2) / 6)

Bruce,

   Please provide me with a pcf like the above  for yesterday's bbw ,  with a period of 5, sd of 2 that can be used in v. 12.

Many thanks,

Don

Bruce_L
Posted : Monday, July 17, 2017 11:42:25 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Please try the following.

4 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 - 5 * AVGC5 ^ 2) / 5)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
donv98
Posted : Monday, July 17, 2017 12:07:37 PM
Registered User
Joined: 7/29/2010
Posts: 417

Bruce,

   Thank you very much.

I was thinking for yesterday's BBW the C^2 would be dropped and a C5^2 would be added.

What am I missing here?

 

Don

Bruce_L
Posted : Monday, July 17, 2017 12:23:33 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You didn't miss anything, I missed the reference to yesterday.

4 * SQR(ABS(C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 - 5 * AVGC5.1 ^ 2) / 5)



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Al_Gorithm
Posted : Monday, July 17, 2017 12:26:54 PM

Registered User
Joined: 6/30/2017
Posts: 1,227

Circle the date on your calendar; Bruce missed something.

That breeze you feel behind your back is hell freezing over. :)

donv98
Posted : Monday, July 17, 2017 12:28:47 PM
Registered User
Joined: 7/29/2010
Posts: 417

Bruce,

  Many thanks for your excellent help.

donv98
Posted : Monday, July 17, 2017 2:45:03 PM
Registered User
Joined: 7/29/2010
Posts: 417

Bruce,

  I cannot reconcile the pcf indicator using

4 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 - 5 * AVGC5 ^ 2) / 5)

for today's bbw with the values the Worden built in indicator set at 5 period , 2 sd, simple  provides.

It seems that using a multiplier of about 1.5 instead of 4 at the front comes close to approximating the values the built in provides.

 

Thank you for any help.

Don

Bruce_L
Posted : Monday, July 17, 2017 2:50:35 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

The built in indicator devides the width by the value of the centerline.

4 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 - 5 * AVGC5 ^ 2) / 5) / AVGC5

But you seemed to specifically be requesting the version without this adjustment based on the formula you provided and the order various formulas were presented in the topic and the discussion which accompanied these formulas.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
donv98
Posted : Monday, July 17, 2017 4:53:30 PM
Registered User
Joined: 7/29/2010
Posts: 417

Bruce,

   Thank you  for clarifying this.

Everything seems to be working well and making sense now.

 

Don

 

 

Bruce_L
Posted : Monday, July 17, 2017 4:54:30 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

You're welcome.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.