Registered User Joined: 5/24/2007 Posts: 4
|
Hi,
I need help in writing the PCF for these conditions ..
Here are steps :
In the last 2-3 months period,
Step 1) the stock should break down the 50 day moving average (EMA) and
Step 2) It should make 52 week high and
Step 3) It should break down the 50 day moving average (EMA) and
Step 4) It should go up until the 20 day moving average.
thanks,
B
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
While it might be possible to simplify the requirements, I cannot think of a way to search for the exact requirements as specified in a way that would be short enough to be practical in either version of TC2000.
The technique which comes to mind for determining if these specific events happened in a specific order would involve determining howe many bars ago each event occurred.
Days Since Last Peak (or other day-counting needs)
This creates very long formulas for even relatively short periods and simple requirements. Looking over a 3 month time for four different requirements would not result in a formula which I could post.
In addition, Step 1 and Step 3 appear to be the same requirement. The method given is for finding the most recent occurance. A way to do so for the two most recent times something happens would be even more complicated.
It should probably be noted that this can be done using Sequence Conditions in StockFinder.
Creating Conditions
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Registered User Joined: 5/24/2007 Posts: 4
|
Thanks Bruce.
|

 Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|