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 |

BB 90,30 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
alindsley
Posted : Thursday, October 8, 2009 1:31:42 AM

Registered User
Joined: 2/28/2005
Posts: 825
Would you create a PCF for bollinger band 90,30 please? I would like to know when price touches the lower band line. And a 2nd for when price touches the top band line.Thank youart
Bruce_L
Posted : Thursday, October 8, 2009 9:23:45 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Price Bar touching Lower BB 90,30:

ABS(AVGC90 - 3 * 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 + C20 ^ 2 + C21 ^ 2 + C22 ^ 2 + C23 ^ 2 + C24 ^ 2 + C25 ^ 2 + C26 ^ 2 + C27 ^ 2 + C28 ^ 2 + C29 ^ 2 + C30 ^ 2 + C31 ^ 2 + C32 ^ 2 + C33 ^ 2 + C34 ^ 2 + C35 ^ 2 + C36 ^ 2 + C37 ^ 2 + C38 ^ 2 + C39 ^ 2 + C40 ^ 2 + C41 ^ 2 + C42 ^ 2 + C43 ^ 2 + C44 ^ 2 + C45 ^ 2 + C46 ^ 2 + C47 ^ 2 + C48 ^ 2 + C49 ^ 2 + C50 ^ 2 + C51 ^ 2 + C52 ^ 2 + C53 ^ 2 + C54 ^ 2 + C55 ^ 2 + C56 ^ 2 + C57 ^ 2 + C58 ^ 2 + C59 ^ 2 + C60 ^ 2 + C61 ^ 2 + C62 ^ 2 + C63 ^ 2 + C64 ^ 2 + C65 ^ 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70 ^ 2 + C71 ^ 2 + C72 ^ 2 + C73 ^ 2 + C74 ^ 2 + C75 ^ 2 + C76 ^ 2 + C77 ^ 2 + C78 ^ 2 + C79 ^ 2 + C80 ^ 2 + C81 ^ 2 + C82 ^ 2 + C83 ^ 2 + C84 ^ 2 + C85 ^ 2 + C86 ^ 2 + C87 ^ 2 + C88 ^ 2 + C89 ^ 2 - 90 * AVGC90 ^ 2) / 89) - (H + L) / 2) <= (H - L) / 2

You may wish to review the following:

Modelling Bollinger Bands (& Standard Deviation) in a TC PCF
How to create a Personal Criteria Forumula (PCF)
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
alindsley
Posted : Thursday, October 8, 2009 9:41:34 AM

Registered User
Joined: 2/28/2005
Posts: 825
Thank You Bruce
Bruce_L
Posted : Thursday, October 8, 2009 9:44:28 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
alindsley
Posted : Thursday, October 8, 2009 11:23:47 AM

Registered User
Joined: 2/28/2005
Posts: 825
What would you add to give results say "within 1% of touching the " lower BB, & the upper BB?
Bruce_L
Posted : Thursday, October 8, 2009 11:25:32 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
1% of what? Price? The Bollinger Band? The Bollinger Bandwidth?

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
alindsley
Posted : Thursday, October 8, 2009 11:38:41 AM

Registered User
Joined: 2/28/2005
Posts: 825
Adding to the original question:

Would you create a PCF for bollinger band 90,30 please? I would like to know when price is within 1% of the lower band line. And a 2nd for when price is within 1% of the top band line.


Thank you

art
Bruce_L
Posted : Thursday, October 8, 2009 12:21:41 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
QUOTE (alindsley)
Would you create a PCF for bollinger band 90,30 please?

Lower Bollinger Band 90,30:

AVGC90 - 3 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^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^ 2 + C14 ^ 2 + C15 ^ 2 + C16 ^ 2 + C17 ^ 2 + C18 ^ 2 + C19 ^ 2 + C20 ^ 2 + C21 ^ 2 + C22 ^ 2 + C23 ^ 2 + C24 ^ 2 + C25 ^ 2 + C26 ^ 2 + C27 ^ 2 + C28 ^ 2 + C29 ^ 2 + C30 ^ 2 + C31 ^ 2 + C32 ^ 2 + C33 ^ 2 + C34 ^ 2 + C35 ^ 2 + C36 ^ 2 + C37 ^ 2 + C38 ^ 2 + C39 ^ 2 + C40 ^ 2 + C41 ^ 2 + C42 ^ 2 + C43 ^ 2 + C44 ^ 2 + C45 ^ 2 + C46 ^ 2 + C47 ^ 2 + C48 ^ 2 + C49 ^ 2 + C50 ^ 2 + C51 ^ 2 + C52 ^ 2 + C53 ^ 2 + C54 ^ 2 + C55 ^ 2 + C56 ^ 2 + C57 ^ 2 + C58 ^ 2 + C59 ^ 2 + C60 ^ 2 + C61 ^ 2 + C62 ^ 2 + C63 ^ 2 + C64 ^ 2 + C65 ^ 2 + C66 ^ 2 + C67 ^ 2 + C68 ^ 2 + C69 ^ 2 + C70 ^ 2 + C71 ^ 2 + C72 ^ 2 + C73 ^ 2 + C74 ^ 2 + C75 ^ 2 + C76 ^ 2 + C77 ^ 2 + C78 ^ 2 + C79 ^ 2 + C80 ^ 2 + C81 ^ 2 + C82 ^ 2 + C83 ^ 2 + C84 ^ 2 + C85 ^ 2 + C86 ^ 2 + C87 ^ 2 + C88 ^ 2 + C89 ^ 2 - 90 * AVGC90 ^ 2) / 89)) - 1) <= .01

QUOTE (alindsley)
What would you add to give results say "within 1% of touching the " lower BB, & the upper BB?

Assuming the 1% is of the Bollinger Band itself (as was done with the Price within 1% formulas):

Price Bar within 1% of touching Lower Bollinger Band 90,30:

ABS(AVGC90 - 3 * SQR(ABS(C ^ 2 + C1 ^ 2 + C2 ^ 2 + C3 ^ 2 + C4 ^ 2 + C5 ^ 2 + C6 ^ 2 + C7 ^ 2 + C8 ^ 2 + C9 ^ 2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+ C24 ^ 2 + C25 ^ 2 + C26 ^ 2 + C27 ^ 2 + C28 ^ 2 + C29 ^ 2 + C30 ^ 2 + C31 ^ 2 + C32 ^ 2 + C33 ^ 2 + C34 ^ 2 + C35 ^ 2 + C36 ^ 2 + C37 ^ 2 + C38 ^ 2 + C39 ^ 2 + C40 ^ 2 + C41 ^ 2 + C42 ^ 2 + C43 ^ 2 + C44 ^ 2 + C45 ^ 2 + C46 ^ 2 + C47 ^ 2 + C48 ^ 2 + C49 ^ 2 + C50 ^ 2 + C51 ^ 2 + C52 ^ 2 + C53 ^ 2 + C54 ^ 2 + C55 ^ 2 + C56 ^ 2 + C57 ^ 2 + C58 ^ 2 + C59 ^ 2 + C60 ^ 2 + C61 ^ 2 + C62 ^ 2 + C63 ^ 2 + C64 ^ 2 + C65 ^ 2 + C66 ^ 2 + C67 ^ 2 + C68 ^ 2 + C69 ^ 2 + C70 ^ 2 + C71 ^ 2 + C72 ^ 2 + C73 ^ 2 + C74 ^ 2 + C75 ^ 2 + C76 ^ 2 + C77 ^ 2 + C78 ^ 2 + C79 ^ 2 + C80 ^ 2 + C81 ^ 2 + C82 ^ 2 + C83 ^ 2 + C84 ^ 2 + C85 ^ 2 + C86 ^ 2 + C87 ^ 2 + C88 ^ 2 + C89 ^ 2 - 90 * AVGC90 ^ 2) / 89))

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dunsek
Posted : Tuesday, November 10, 2009 8:02:30 AM
Registered User
Joined: 3/20/2009
Posts: 11
Hi Bruce- I posted a similar question on a different thread, but maybe it's more relevant here. Forgive the double post ;)I'm trying to create a sort based on the percentage that the close/last price is away from the lower bollinger band (20,30). I don't want a true/false as in a pcf, but rather the ability to sort the watch list based on which stocks are closest to that lower 3 std deviation band. Is that doable?Thx
Bruce_L
Posted : Tuesday, November 10, 2009 8:19:00 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
dunsek,
Please try using the following Personal Criteria Formula as a Sort:

Create your own stock rankings using WatchLists and Sort conditions

100 * ABS(C / (AVGC20 - 3 * 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)) - 1)

A directional version of the PCF could be written as follows (with positive numbers being above the Lower Bollinger Band and negative numbers being below the Lower BB):

100 * (C / (AVGC20 - 3 * 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)) - 1)

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
dunsek
Posted : Tuesday, November 10, 2009 9:07:08 AM
Registered User
Joined: 3/20/2009
Posts: 11
Thanks, Bruce. I ended up creating almost a duplicate of the lower bb as a custom indicator using a bb formula you had posted earlier, and doing a sort by, comparing it to price, and get the same result as your suggestion above.Thanks again, much appreciated.
Bruce_L
Posted : Tuesday, November 10, 2009 9:08:41 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
dunsek,
You're welcome.

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