Gold Customer
Joined: 5/15/2007 Posts: 14
|
Mr. Larry Williams, in his book, " The Secret of Selecting Stocks for Immediate and Substantial Gains ", gives his formula for Accumulation/Distribution as:
H-Yc = B1 B1 = O if Yc > H
C-L = B2
B1 + B2 = TB
Yc -L = S1 S1 = O if Y < L
H-C = S2
S1 + S2 = TS
TB = %B DIVIDED BY TB = TS %B = VOL. = OBV
Can anyone tell me if this is the formula tc2000 is using for the William's A/D? If not, can anyone tell me how to make this into a PF formula?
Thank you.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you create a Custom PCF Cumulative indicator in TC2000 with the following settings:
Up Condition: C > C - 1
Down Condition: C < C - 1
Value to Add/Subtract: (C < C1) * (H + C1 - 2 * C + ABS(H - C1)) / 2 + (C > C1) * (L + C1 - 2 * C - ABS(L - C1)) / 2
It will duplicate the William's Accumulation/Distribution indicator in TC2000 version 12.1. I suspect the indicator you actually want could be created by replacing the formula in the Value to Add/Subtract with (it multiplies the above by volume):
V * ((C < C1) * (H + C1 - 2 * C + ABS(H - C1)) / 2 + (C > C1) * (L + C1 - 2 * C - ABS(L - C1)) / 2)
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Gold Customer
Joined: 5/15/2007 Posts: 14
|
Thank you Bruce,
I can create a formula if I just use the bottom formula of your message,i.e., V*((c<c1) etc.etc., but if I try to write the whole formula, as you sent it,i.e., Up Condition: c>c-1 Down Condition: c<c-1 Value to Add/Subtract: v*((c<c1)*(H+C1 etc.etc., I get an error message. ERROR TO FORMULA ARGUMENT MISSING NEAR /
Should I not be using the verbage Up Conditon, Down condition, Value to Add/Subtract? Should I be inputting this verbage differently?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If you create a Custom PCF Cumulative Indicator, there are three fields. One of those fields is called Up Condition, one of those fields is called Down Condition and one of those fields is called Value to Add/Subtract.
You need to put just the formula for each of these fields into the appropriately labeled field.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Gold Customer
Joined: 5/15/2007 Posts: 14
|
Thank you, Bruce
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|