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 |

Price outside BB Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
markd85
Posted : Monday, September 14, 2009 9:39:39 PM
Registered User
Joined: 5/31/2006
Posts: 47
Good evening
How would I write a PCF or %true indicator that shows true if price low is greater than upper BB? And the opposite, if price high is less than lower BB? Using standard BB settings. Thanks alot.
Mark
Bruce_L
Posted : Tuesday, September 15, 2009 8:02:04 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
There's no such thing as "standard" settings but I'll provide example settings for Bollinger Bands 20, 20:

Low Above Upper Bollinger Band 20,20:

L > AVGC20 + 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 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 - 20 * AVGC20 ^ 2) / 19)

High Below Lower Bollinger Band 20, 20:

H < AVGC20 - 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 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 - 20 * AVGC20 ^ 2) / 19)

You may wish to review the following:

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

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