Registered User Joined: 6/15/2011 Posts: 54
|
Can you please help me with a Pcf for a head and shoulder pattern ?
|
Registered User Joined: 2/11/2013 Posts: 78
|
Bruce,
Again, I found this via search. I was looking for a Head & Shoulders pcf. I saw the real old post by Craig S. on how he'd approach it. However, I think I've come up with a better mousetrap. At least I like the results better the last few days. Please let me know if I'm doing anything crazy or wrong.
Goal: Identify Head & Shoulders patterns that are now completing and have taken place within the last 2mo.
H&S defined as: 1) Shoulders above exterior edges, 2) Head at least 9% above Shoulders, 3) Neckline at least 5% below Shoulders (on both sides)
Here is my approach:
( C < C1 AND
C < MAXC7 AND
MAXC7 <= MAXC7.7 * 0.91 AND
MAXC7.7 >= MAXC7.14 * 1.09 AND
MAXC7.14 >= MAXC7.21 AND
MINC8.3 <= MAXC7 * 0.95 AND
MINC8.10 <= MAXC7.14 * 0.95 )
OR
( C < C1 AND
C < MAXC10 AND
MAXC10 <= MAXC10.10 * 0.91 AND
MAXC10.10 >= MAXC10.20 * 1.09 AND
MAXC10.20 >= MAXC10.30 AND
MINC10.5 <= MAXC10 * 0.95 AND
MINC10.15 <= MAXC10.10 * 0.95 )
OR
( C < C1 AND
C < MAXC14 AND
MAXC14 <= MAXC14.14 * 0.91 AND
MAXC14.14 >= MAXC14.28 * 1.09 AND
MAXC14.28 >= MAXC14.42 AND
MINC14.7 <= MAXC14 * 0.95 AND
MINC14.21 <= MAXC14.28 * 0.95 )
So, other than the complexity of a 3 option OR statement, have I made any logic mistakes you see?
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
It seems like a fairly straightforward approach to me and the parentheses seem properly placed. I'm a bit concerned about the long spaces in the third and sixth line of each section, but if you have tested it already, the spaces must not be a problem. You could even continue extending the formula beyond the 28, 40 and 56 bars patterns used in the example formula.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|