Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 5/12/2005 Posts: 19
|
I need assistance in writing a pcf to identify stocks that the weekly SK period crossed up through the SD period 5 days prior to today for a Stoch setting of 12.3.3 Would also want a pcf for the opposite condition where the SK period crossed down through the SD period 5 days prior to today.
Thanks in advance for your assistance.
Jim
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following:
Simple Weekly Stochastic 12,3,3 SK xUp SD (1-Period Ago):
2 * STOC60.1.5 + STOC60.1.10 > 2 * STOC60.1.20 + STOC60.1.25 AND 2 * STOC60.1.10 + STOC60.1.15 <= 2 * STOC60.1.25 + STOC60.1.30
Simple Weekly Stochastic 12,3,3 SK xDown SD (1-Period Ago):
2 * STOC60.1.5 + STOC60.1.10 < 2 * STOC60.1.20 + STOC60.1.25 AND 2 * STOC60.1.10 + STOC60.1.15 >= 2 * STOC60.1.25 + STOC60.1.30
Exponential Weekly Stochastic 12,3,3 SK xUp SD (1-Period Ago):
.500488758553275 * (STOC60.1.5 + .5 * (STOC60.1.10 + .5 * (STOC60.1.15 + .5 * (STOC60.1.20 + .5 * (STOC60.1.25 + .5 * (STOC60.1.30 + .5 * (STOC60.1.35 + .5 * (STOC60.1.40 + .5 * (STOC60.1.45 + .5 * (STOC60.1.50)))))))))) > .250229091575539 * (STOC60.1.5 + .5 * (2 * STOC60.1.10 + .5 * (3 * STOC60.1.15 + .5 * (4 * STOC60.1.20 + .5 * (5 * STOC60.1.25 + .5 * (6 * STOC60.1.30 + .5 * (7 * STOC60.1.35 + .5 * (8 * STOC60.1.40 + .5 * (9 * STOC60.1.45 + .5 * (10 * STOC60.1.50 + .5 * (11 * STOC60.1.55 + .5 * (12 * STOC60.1.60 + .5 * (13 * STOC60.1.65))))))))))))) AND .500488758553275 * (STOC60.1.10 + .5 * (STOC60.1.15 + .5 * (STOC60.1.20 + .5 * (STOC60.1.25 + .5 * (STOC60.1.30 + .5 * (STOC60.1.35 + .5 * (STOC60.1.40 + .5 * (STOC60.1.45 + .5 * (STOC60.1.50 + .5 * (STOC60.1.55)))))))))) <= .250229091575539 * (STOC60.1.10 + .5 * (2 * STOC60.1.15 + .5 * (3 * STOC60.1.20 + .5 * (4 * STOC60.1.25 + .5 * (5 * STOC60.1.30 + .5 * (6 * STOC60.1.35 + .5 * (7 * STOC60.1.40 + .5 * (8 * STOC60.1.45 + .5 * (9 * STOC60.1.50 + .5 * (10 * STOC60.1.55 + .5 * (11 * STOC60.1.60 + .5 * (12 * STOC60.1.65 + .5 * (13 * STOC60.1.70)))))))))))))
Exponential Weekly Stochastic 12,3,3 SK xDown SD (1-Period Ago):
.500488758553275 * (STOC60.1.5 + .5 * (STOC60.1.10 + .5 * (STOC60.1.15 + .5 * (STOC60.1.20 + .5 * (STOC60.1.25 + .5 * (STOC60.1.30 + .5 * (STOC60.1.35 + .5 * (STOC60.1.40 + .5 * (STOC60.1.45 + .5 * (STOC60.1.50)))))))))) < .250229091575539 * (STOC60.1.5 + .5 * (2 * STOC60.1.10 + .5 * (3 * STOC60.1.15 + .5 * (4 * STOC60.1.20 + .5 * (5 * STOC60.1.25 + .5 * (6 * STOC60.1.30 + .5 * (7 * STOC60.1.35 + .5 * (8 * STOC60.1.40 + .5 * (9 * STOC60.1.45 + .5 * (10 * STOC60.1.50 + .5 * (11 * STOC60.1.55 + .5 * (12 * STOC60.1.60 + .5 * (13 * STOC60.1.65))))))))))))) AND .500488758553275 * (STOC60.1.10 + .5 * (STOC60.1.15 + .5 * (STOC60.1.20 + .5 * (STOC60.1.25 + .5 * (STOC60.1.30 + .5 * (STOC60.1.35 + .5 * (STOC60.1.40 + .5 * (STOC60.1.45 + .5 * (STOC60.1.50 + .5 * (STOC60.1.55)))))))))) >= .250229091575539 * (STOC60.1.10 + .5 * (2 * STOC60.1.15 + .5 * (3 * STOC60.1.20 + .5 * (4 * STOC60.1.25 + .5 * (5 * STOC60.1.30 + .5 * (6 * STOC60.1.35 + .5 * (7 * STOC60.1.40 + .5 * (8 * STOC60.1.45 + .5 * (9 * STOC60.1.50 + .5 * (10 * STOC60.1.55 + .5 * (11 * STOC60.1.60 + .5 * (12 * STOC60.1.65 + .5 * (13 * STOC60.1.70)))))))))))))
You may wish to review the following:
Understanding Stochastics How to create a Personal Criteria Forumula (PCF) Handy PCF example formulas to help you learn the syntax of PCFs! Cascades of Moving Averages
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/28/2005 Posts: 6,049
|
Bruce
Are there 2 periods ".."
Before the .500488 in the above equations ?
I guess that does not give an error?
Thanks diceman
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
diceman, There were two periods. I've removed the extra in each formula. Thank you.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |