Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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) ))
|
|
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
|
|
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
|
|
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
|
|
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)
|
|
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
|
|
Guest-1 |