Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Bolinger Band Statement Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
syglk
Posted : Monday, October 12, 2009 11:52:27 AM
Registered User
Joined: 12/20/2008
Posts: 5
How would you put the following in a PCF?
" Close today below/above the lower/upper Bolinger band(16,2.5)"

Thanks,
Sy
Bruce_L
Posted : Monday, October 12, 2009 12:02:19 PM


Worden Trainer

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

Close outside Bollinger Band 16,25:

ABS(C - AVGC16) >= 2.5 * 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 - 16 * AVGC16 ^ 2) / 15)

You may wish to review the following:

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

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
syglk
Posted : Monday, October 12, 2009 12:53:32 PM
Registered User
Joined: 12/20/2008
Posts: 5
Thanks Bruce
Bruce_L
Posted : Monday, October 12, 2009 12:55:13 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
syglk
Posted : Monday, October 12, 2009 2:17:49 PM
Registered User
Joined: 12/20/2008
Posts: 5
Bruce,
I have one more question:
How would I modify your above formula for "below lower bollinger band"?
Bruce_L
Posted : Monday, October 12, 2009 2:22:10 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Close above Upper Bollinger Band 16,25:

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

Close below Lower Bollinger Band 16,25:

C < AVGC16 - 2.5 * 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 - 16 * AVGC16 ^ 2) / 15)

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
syglk
Posted : Monday, October 12, 2009 6:03:15 PM
Registered User
Joined: 12/20/2008
Posts: 5

Thanks again, Bruce.

Bruce_L
Posted : Monday, October 12, 2009 6:08:50 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dunsek
Posted : Tuesday, November 10, 2009 7:40:52 AM
Registered User
Joined: 3/20/2009
Posts: 11
Bruce- I'd like to be able to sort my watchlist by % that the close/last price is away from the lower bollinger band (20,30). Any suggestions?Cheers
Bruce_L
Posted : Tuesday, November 10, 2009 8:18:09 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
dunsek,
Please try using the following Personal Criteria Formula as a Sort:

Create your own stock rankings using WatchLists and Sort conditions

100 * ABS(C / (AVGC20 - 3 * 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) / 19)) - 1)

A directional version of the PCF could be written as follows (with positive numbers being above the Lower Bollinger Band and negative numbers being below the Lower BB):

100 * (C / (AVGC20 - 3 * 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) / 19)) - 1)

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