Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/27/2010 Posts: 30
|
I am trying to write a PCF condition to duplicate the indicator "Bollinger Band Width". The conditions I am using are 1) XAVGC6 and 2) SD of 1.75. The indicator results seem to be arrived at by dividing the upper BB by the Lower BB giving a result of .o? which seems to be a percent.. The percent or number that I am looking for would be a number <= .03 which is the number returned by the Bollinger Band Width indicator. The following is what I have tried but the scan results are not correct. Can you Help?
XAVGC6 + 1.75 * SQR(ABS(C ^ 1.75 +C1 ^ 1.75 + C2 ^ 1.75
+ C3 ^ 1.75 + C4 ^ 1.75 + C5 ^ 1.75 - 6 * XAVGC6 ^ 1.75) / 6) /
XAVGC6 - 1.75 * SQR(ABS(C ^ 1.75 +C1 ^ 1.75 + C2 ^1.75
+ C3 ^ 1.75 + C4 ^ 1.75 + C5 ^ 1.75 - 6 * XAVGC6 ^ 1.75) / 6) <= 1.03
Thanks,
Bruce M
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following instead:
3.5 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 - 6 * AVGC6 ^ 2) / 6) / XAVGC6 <= .03
Understanding MACD
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/27/2010 Posts: 30
|
Bruce,
Thanks much. That works as I was expecting. Could you tell me what the "2" represents in
C ^ 2 + C1 ^ 2 etc. ?
Regards and Merry Christmas.
Bruce
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
^ 2 is raising something to the power of two. So C ^ 2 = C * C.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 11/25/2005 Posts: 1
|
Hello,
I want to have a condition so that the bollinger bands are "X" distance apart. Can you tell me how to simply do this?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
In the case of the Bollinger Bands with a period of 6 and a SD setting of 1.75 given above, the actual distance would the first part of the formula:
3.5 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 - 6 * AVGC6 ^ 2) / 6)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 7/29/2010 Posts: 417
|
QUOTE (Bruce_L)
In the case of the Bollinger Bands with a period of 6 and a SD setting of 1.75 given above, the actual distance would the first part of the formula:
3.5 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 - 6 * AVGC6 ^ 2) / 6)
Bruce,
Please provide me with a pcf like the above for yesterday's bbw , with a period of 5, sd of 2 that can be used in v. 12.
Many thanks,
Don
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following.
4 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 - 5 * AVGC5 ^ 2) / 5)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 7/29/2010 Posts: 417
|
Bruce,
Thank you very much.
I was thinking for yesterday's BBW the C^2 would be dropped and a C5^2 would be added.
What am I missing here?
Don
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You didn't miss anything, I missed the reference to yesterday.
4 * SQR(ABS(C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 - 5 * AVGC5.1 ^ 2) / 5)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 6/30/2017 Posts: 1,227
|
Circle the date on your calendar; Bruce missed something.
That breeze you feel behind your back is hell freezing over. :)
|
|
Registered User Joined: 7/29/2010 Posts: 417
|
Bruce,
Many thanks for your excellent help.
|
|
Registered User Joined: 7/29/2010 Posts: 417
|
Bruce,
I cannot reconcile the pcf indicator using
4 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 - 5 * AVGC5 ^ 2) / 5)
for today's bbw with the values the Worden built in indicator set at 5 period , 2 sd, simple provides.
It seems that using a multiplier of about 1.5 instead of 4 at the front comes close to approximating the values the built in provides.
Thank you for any help.
Don
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The built in indicator devides the width by the value of the centerline.
4 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 - 5 * AVGC5 ^ 2) / 5) / AVGC5
But you seemed to specifically be requesting the version without this adjustment based on the formula you provided and the order various formulas were presented in the topic and the discussion which accompanied these formulas.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 7/29/2010 Posts: 417
|
Bruce,
Thank you for clarifying this.
Everything seems to be working well and making sense now.
Don
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |