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 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
fshary
Posted : Sunday, May 20, 2012 6:06:11 PM
Registered User
Joined: 6/15/2011
Posts: 54

How can I write a Pcf for the bollinger band width expressed as a percentage of closing price.

This is available as an indicator but how do I convert it expressed as a percentage of price ?

 

Thanks

 

 

Bruce_L
Posted : Monday, May 21, 2012 8:33:51 AM


Worden Trainer

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

The available indicator is expressed as a ratio of the difference between the Upper Bollinger Band and Lower Bollinger Band to the Bollinger Band Centerline.

Since the Bollinger Band Centerline is a Moving Average of Price (at least if the BB is applied to Price), you could multiply the result by 100 in your head to get Bollinger Bandwidth expressed as a Percentage of Average Price.

An Indicator Formula to express Bollinger Bandwidth 20,2.00 as a Percentage of the current Price could be written as:

400 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 + C11 ^ 2 + C12 ^ 2 + C13 ^ 2 + C14 ^ 2 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 - 20 * AVGC20 ^ 2) / 20) / C

Modelling Bollinger Bands (& Standard Deviation) in a TC PCF
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
fshary
Posted : Monday, May 21, 2012 9:15:02 AM
Registered User
Joined: 6/15/2011
Posts: 54

Hi Bruce you seem to have multiplied the above formula by 400 instead of 100 .Or am I reading something wrong?

 

 

Bruce_L
Posted : Monday, May 21, 2012 9:22:35 AM


Worden Trainer

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

Yes, I multiplied the formula by 400. The Upper Bollinger Band 20,2.00 is the centerline plus 2 times the Standard Deviation (that's what the 2.00 in the settings represents). The Lower Bollinger Band 20,2.00 is the centerline minus 2 times the Standard Deviation. So the raw Bollinger Bandwidth is 4 times the Standard Deviation. Expressing this as a percentage of Price involves multiplying this by 100 (so we get 4 times 100 or 400) and dividing by price.



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
fshary
Posted : Monday, May 21, 2012 5:58:10 PM
Registered User
Joined: 6/15/2011
Posts: 54

Thanks

ferriers
Posted : Monday, July 15, 2013 11:50:21 PM
Registered User
Joined: 12/12/2004
Posts: 60

Is there a pcf for bollinger bands expansion and contraction

Bruce_L
Posted : Tuesday, July 16, 2013 8:04:29 AM


Worden Trainer

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

You can add a Bollinger Bandwidth indicator with the same settings as the Bollinger Bands of interest. Then click on the Bollinger Bandwidth indicator and select Create Scan Condition and choose one of the Moving Down conditions. Which one and the particular settings would be up to you.

Create Conditions from Your Chart



-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.