Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 2/7/2005 Posts: 4
|
Am new to TC2000 and having quite a time writing PCF's. The following are my criteria: Longs: 1- Today must make a new 20 day low. 2- The previous 20 day low must have occurred at least 4 trading days earlier.
Shorts 1- Today must make a new high 2- The previous 20 day high must have occurred at least 4 trading sessions prior.
Thanks for your help & support!!
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
QUOTE1- Today must make a new 20 day low. 2- The previous 20 day low must have occurred at least 4 trading days earlier.
C=MINC20 AND MINC4.1=MINC20.1
QUOTE1- Today must make a new high 2- The previous 20 day high must have occurred at least 4 trading sessions prior.
C=MAXC20 AND MAXC4.1=MAXC20.1
These used closing prices. If you want them to use highs replace C with H, lows replace C with L
Let me know what you think!
- Craig Here to Help!
|
|
Worden Trainer
Joined: 10/1/2004 Posts: 18,819
|
I was playing with this some more and came up with a neat sort that you (and others) may like:
(H / MAXH5) + (MAXH5.1 / MAXH42.1)
Sort any WatchList by this. The closer to a value of 2 that the sort returns the closer the highs are. It gives some more flexibility to the condition and allows you to see stocks close to highs. In EasyScan values of 1.98 or high found some interesting charts.
- Craig Here to Help!
|
|
Registered User Joined: 1/1/2005 Posts: 2,645
|
QUOTE (rmachecek) Longs: 1- Today must make a new 20 day low. 2- The previous 20 day low must have occurred at least 4 trading days earlier.
I am going to give your statement a different interpretation than Craig did.
Consider:
L<MINL19.1 AND L1>=MINL19.2 AND L2>=MINL19.3 AND L3>=MINL19.4
1) Today's low must be a new low for the 20 day period and not just a repeat of a low made in the previous 19 days.
2) None of the three previous day's lows can be a new low for their 20 day period.
There are still other interpretations.
Thanks, Jim Murphy
|
|
Guest-1 |