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 bands Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
yitzibrach
Posted : Wednesday, April 13, 2011 5:01:14 PM
Registered User
Joined: 12/31/2010
Posts: 81
Hi I would lie to create a PCF displaying stocks that are below the lower bolllinger band. The bollinger bands would be 15 period, 2 standard deviation. I would say that any distance 2 or more below the lower bb would suffice. thank you
Bruce_L
Posted : Thursday, April 14, 2011 7:51:25 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Please try the following:

C < AVGC15 - 2 * 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 - 15 * AVGC15 ^ 2) / 15)

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
Tradebanger
Posted : Thursday, April 14, 2011 10:39:15 AM
Registered User
Joined: 10/7/2004
Posts: 9
Bruce, I would like the same PCF, but to show for 2 day ago.
Thanks
Bruce_L
Posted : Thursday, April 14, 2011 10:55:30 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Just add two to all of the Bars Ago parameters.

C2 < AVGC15.2 - 2 * SQR(ABS(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 - 15 * AVGC15.2 ^ 2) / 15)

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Tradebanger
Posted : Thursday, April 14, 2011 2:28:38 PM
Registered User
Joined: 10/7/2004
Posts: 9
Bruce, That worked great, now how do I set the BB% to be less than .03
Bruce_L
Posted : Thursday, April 14, 2011 2:33:31 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Current Bollinger Bandwidth < .03:

4 * 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 - 15 * AVGC15 ^ 2) / 15) / AVGC15 < .03

Previous Bollinger Bandwidth < .03:

4 * SQR(ABS(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 - 15 * AVGC15.1 ^ 2) / 15) / AVGC15.1 < .03

Bollinger Bandwidth of 2-Bars Ago < .03:

4 * SQR(ABS(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 - 15 * AVGC15.2 ^ 2) / 15) / AVGC15.2 < .03

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Tradebanger
Posted : Thursday, April 14, 2011 3:12:34 PM
Registered User
Joined: 10/7/2004
Posts: 9
Thanks Bruce, but when I do the scan, I see that todays or yesterdays BB% is all over the place, some below .03 and a lot over .03. I don't know what peramiter to change.

Appreciate your help.
Bruce_L
Posted : Thursday, April 14, 2011 3:26:19 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Sorry, the formulas were for Bollinger Bandwidth instead of Bollinger %B. Please try the following instead:

Current Bollinger %B < .03:

(C - AVGC15) / 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 - 15 * AVGC15 ^ 2) / 15) / 4 + .5

Previous Bollinger %B < .03:

(C1 - AVGC15.1) / SQR(ABS(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 - 15 * AVGC15.1 ^ 1) / 15) / 4 + .5

Bollinger %B of 2-Bars Ago < .03:

(C2 - AVGC15.2) / SQR(ABS(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 - 15 * AVGC15.2 ^ 2) / 15) / 4 + .5

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
pipman
Posted : Saturday, July 16, 2011 10:47:42 PM
Registered User
Joined: 6/11/2011
Posts: 1
What changes do I make to this PCF to identify price above upper BB?

C < AVGC15 - 2 * 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 - 15 * AVGC15 ^ 2) / 15)

Thanks

Bruce_L
Posted : Monday, July 18, 2011 8:47:21 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Change the < to a > and the first - to a +:

C > AVGC15 + 2 * 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 - 15 * AVGC15 ^ 2) / 15)

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