Registered User Joined: 2/26/2005 Posts: 8
|
I've been working with pcf's for a crossover of a Bollinger 10/10 bandwidth indicator line crossing up over a 20/20 bandwidth indicator line without any success. Would you be able to help me?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you have these plotted as Custom Indicators in TeleChart, you should realize that they are not being plotted on the same scale. I've plotted both Bollinger Bandwidth indicators in the same Pane and on the same scale in Blocks and they almost never cross. This is probably because the SD of the BB20,20 version is multiplied by a factor of 2 while the SD of the BB10,10 is multiplied by 1 (meaning it is not altered at all).
The following formula will test for the Bollinger Bandwidth 10,10 crossing up through the Bollinger Bandwidth 20,20, but will almost never return True:
SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 - 10 * AVGC10 ^ 2) / 9) > 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) AND SQR(ABS(C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2 + C10 ^ 2 - 10 * AVGC10.1 ^ 2) / 9) <= 2 * 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 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 + C20 ^ 2 - 20 * AVGC20.1 ^ 2) / 19)
You may wish to review the following:
How to create a Personal Criteria Forumula (PCF) Modelling Bollinger Bands (& Standard Deviation) in a TC PCF Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|