Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Can you help me with a PCF formula Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
rmachecek
Posted : Saturday, February 12, 2005 10:19:28 AM
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!!

Craig_S
Posted : Saturday, February 12, 2005 11:40:25 AM


Worden Trainer

Joined: 10/1/2004
Posts: 18,819
QUOTE
1- 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

QUOTE
1- 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!
Craig_S
Posted : Saturday, February 12, 2005 12:43:03 PM


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!
bustermu
Posted : Saturday, February 12, 2005 2:01:53 PM
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

Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.