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 |

high above a bollinger bands setting 10 8 Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
financialbillionairemagician
Posted : Thursday, July 25, 2013 1:33:26 PM
Gold Customer Gold Customer

Joined: 1/28/2005
Posts: 97

i am trying to create a pcf that says the high of a candle must be above my bollinger band settings of 10 bar 8 stddev, but it seems to be missing a few candle when i look at it in % true. here is what i have come up with so far. can you please advice

 

(H > AVGC10.1 + .8 * 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) AND h> AVGC10 + .8 * 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) ))

Bruce_L
Posted : Thursday, July 25, 2013 2:01:02 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Is the formula for TC2000 version 7? If so, the second half of the formula should do what you are requesting (the first half of the formula is comparing the current high to the previous Bollinger Band).

H > AVGC10 + .8 * 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)

If you are using TC2000 version 12.3, you need to change / 9 near the end of the formula to / 10 instead:

H > AVGC10 + .8 * 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) / 10)

Modelling Bollinger Bands (& Standard Deviation) in a TC PCF



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
financialbillionairemagician
Posted : Thursday, July 25, 2013 2:30:09 PM
Gold Customer Gold Customer

Joined: 1/28/2005
Posts: 97

hI thanks for help on the last point. always simple when you know how ;-)

I have a stochastic simple with setting period 30, sk 3 and sd 1, and can not work out how to create a pcf on tc200 v7 that says the settings are:

above 65 on

a) the daily b) weekly c) monthly

 

and a seperate set that say:

 

below 35 on

a) daily   b) weekly   c) monthly

 

 

Bruce_L
Posted : Thursday, July 25, 2013 2:48:08 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

The daily above 65 would be:

STOC30.3 > 65

The daily below 35 would be:

STOC30.3 < 35

The weekly above 65 would be:

(STOC150 + STOC150.1.5 + STOC150.1.10) / 3 > 65

The weekly below 65 would be:

(STOC150 + STOC150.1.5 + STOC150.1.10) / 3 < 35

The monthly above 65 would be:

(STOC630 + STOC630.1.21 + STOC630.1.42) / 3 > 65

The monthly below 35 would be:

(STOC630 + STOC630.1.21 + STOC630.1.42) / 3 < 35

Understanding Stochastics



-Bruce
Personal Criteria Formulas
TC2000 Support Articles
financialbillionairemagician
Posted : Thursday, July 25, 2013 4:14:22 PM
Gold Customer Gold Customer

Joined: 1/28/2005
Posts: 97

HI in my first question you helped me to identify when the h of a candle was above my bolinger band settings of 10 period 8 stdev on a daily chart

how do i do this on a weekly chart

a) h above the bollinger on weekly chart

b) l below the bollinger on a weekly

i tried this and it doesnt work

L < (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)

 

Bruce_L
Posted : Thursday, July 25, 2013 4:34:50 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Your Condition Formula certainly seems to work correctly in my copy of TC2000 version 7.

Make sure you are comparing a Weekly chart to a Personal Criteria Formula as the PCF will be using Daily bars.

If you compare the Weekly chart to a Custom Percent True Indicator, it will not match as the bars in the indicator will be weekly and not daily.

Getting the high above the bollinger band requires replacing the L < at the beginning of the formula with H > and the - in the middle of the formula with a + sign.



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