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