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 ·
flan4
Posted : Tuesday, August 7, 2012 9:51:48 AM
Registered User
Joined: 3/12/2005
Posts: 123

I was hoping you can help with creating a PCF for TC2000 V.7.  I would like to create a PCF that has a 5 period bollinger band with a 1 standard deviation (5,1), and identifies when the percent B is 0.1 or less.  Thanks

Bruce_L
Posted : Tuesday, August 7, 2012 10:09:39 AM


Worden Trainer

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

Please try the following:

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

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
flan4
Posted : Friday, August 10, 2012 12:09:37 AM
Registered User
Joined: 3/12/2005
Posts: 123

Thanks Bruce.  The above PCF is identifying many stocks that are greater than .1, even above the upper band of the 5-period bollinger band?

flan4
Posted : Friday, August 10, 2012 1:00:08 AM
Registered User
Joined: 3/12/2005
Posts: 123

Please disregard the above post.  I just reinstalled TC2000 due to installing a new operating system and didn't correctly update PCFs.  The code you provided works well.  If you don't mind, how would I create a scan for %B to be multipe consecutive days below .1, i.e., 4 days in a row?   Thanks

Bruce_L
Posted : Friday, August 10, 2012 7:33:11 AM


Worden Trainer

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

Please try the following:

(C - AVGC5) / 2 / SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 - 5 * AVGC5 ^ 2) / 4) + .5 <= .1 AND (C1 - AVGC5.1) / 2 / SQR(ABS(C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 - 5 * AVGC5.1 ^ 2) / 4) + .5 <= .1 AND (C2 - AVGC5.2) / 2 / SQR(ABS(C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 - 5 * AVGC5.2 ^ 2) / 4) + .5 <= .1 AND (C3 - AVGC5.2) / 2 / SQR(ABS(C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 - 5 * AVGC5.3 ^ 2) / 4) + .5 <= .1



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
flan4
Posted : Friday, August 10, 2012 7:30:00 PM
Registered User
Joined: 3/12/2005
Posts: 123

Thank you!

Bruce_L
Posted : Monday, August 13, 2012 8:22:45 AM


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.