Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

bollinger band weekly 2 candles Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
financialbillionairemagician
Posted : Tuesday, June 10, 2008 10:34:51 AM
Gold Customer Gold Customer

Joined: 1/28/2005
Posts: 97
can u please adjust these so that they only 2 candles are outside the bollinger band setting ( 10. 8) on a weekly chart rather than the 3 candles that the current PCF.

C > (C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10 + .8 * SQR(ABS(C ^ 2 + C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 - 10 * ((C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10) ^ 2) / 9) AND (C5 <= (C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10 + .8 * SQR(ABS(C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 - 10 * ((C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10) ^ 2) / 9) OR C10 <= (C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10 + .8 * SQR(ABS(C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 + C55 ^ 2 - 10 * ((C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10) ^ 2) / 9) OR C15 <= (C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55 + C60) / 10 + .8 * SQR(ABS(C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 + C55 ^ 2 + C60 ^ 2 - 10 * ((C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55 + C60) / 10) ^ 2) / 9))
 
and

C < (C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10 - .8 * SQR(ABS(C ^ 2 + C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 - 10 * ((C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10) ^ 2) / 9) AND (C5 >= (C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10 - .8 * SQR(ABS(C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 - 10 * ((C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10) ^ 2) / 9) OR C10 >= (C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10 - .8 * SQR(ABS(C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 + C55 ^ 2 - 10 * ((C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10) ^ 2) / 9) OR C15 >= (C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55 + C60) / 10 - .8 * SQR(ABS(C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 + C55 ^ 2 + C60 ^ 2 - 10 * ((C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55 + C60) / 10) ^ 2) / 9))
Bruce_L
Posted : Tuesday, June 10, 2008 11:11:05 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
QUOTE (financialbillionairemagician)
can u please adjust these so that they only 2 candles are outside the bollinger band setting ( 10. 8) on a weekly chart rather than the 3 candles that the current PCF.

C > (C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10 + .8 * SQR(ABS(C ^ 2 + C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 - 10 * ((C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10) ^ 2) / 9) AND (C5 <= (C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10 + .8 * SQR(ABS(C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 - 10 * ((C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10) ^ 2) / 9) OR C10 <= (C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10 + .8 * SQR(ABS(C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 + C55 ^ 2 - 10 * ((C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10) ^ 2) / 9) OR C15 <= (C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55 + C60) / 10 + .8 * SQR(ABS(C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 + C55 ^ 2 + C60 ^ 2 - 10 * ((C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55 + C60) / 10) ^ 2) / 9))

Please try the following instead:

C > (C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10 + .8 * SQR(ABS(C ^ 2 + C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 - 10 * ((C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10) ^ 2) / 9) AND (C5 <= (C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10 + .8 * SQR(ABS(C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 - 10 * ((C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10) ^ 2) / 9) OR C10 <= (C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10 + .8 * SQR(ABS(C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 + C55 ^ 2 - 10 * ((C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10) ^ 2) / 9))

QUOTE (financialbillionairemagician)
and

C < (C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10 - .8 * SQR(ABS(C ^ 2 + C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 - 10 * ((C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10) ^ 2) / 9) AND (C5 >= (C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10 - .8 * SQR(ABS(C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 - 10 * ((C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10) ^ 2) / 9) OR C10 >= (C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10 - .8 * SQR(ABS(C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 + C55 ^ 2 - 10 * ((C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10) ^ 2) / 9) OR C15 >= (C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55 + C60) / 10 - .8 * SQR(ABS(C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 + C55 ^ 2 + C60 ^ 2 - 10 * ((C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55 + C60) / 10) ^ 2) / 9))

Please try the following instead:

C < (C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10 - .8 * SQR(ABS(C ^ 2 + C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 - 10 * ((C + C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45) / 10) ^ 2) / 9) AND (C5 >= (C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10 - .8 * SQR(ABS(C5 ^ 2 + C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 - 10 * ((C5 + C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50) / 10) ^ 2) / 9) OR C10 >= (C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10 - .8 * SQR(ABS(C10 ^ 2 + C15 ^ 2 + C20 ^ 2 + C25 ^ 2 + C30 ^ 2 + C35 ^ 2 + C40 ^ 2 + C45 ^ 2 + C50 ^ 2 + C55 ^ 2 - 10 * ((C10 + C15 + C20 + C25 + C30 + C35 + C40 + C45 + C50 + C55) / 10) ^ 2) / 9))

You may wish to review the following:

Modelling Bollinger Bands (& Standard Deviation) in a TC PCF
PCF Formula Descriptions
How to create a Personal Criteria Forumula (PCF)
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.