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 |

How to write PCF for this criteria ? Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
wickypappy
Posted : Friday, April 28, 2006 4:32:30 PM
Registered User
Joined: 3/19/2006
Posts: 4
Please help me write Swing Trade PCF for this criteria; I'm not familiar with programming
1. Stock in Strong Uptrend within 20 days
2. Make New higher High than prior rally no longer than 8 bars ago
3. Then Pullback 3 or more consecutive lower highs (decline)

The 3 or more decline bar must have these criteria as well
1. Current bar's closing price is lower than prior bar's closing price
2. Current bar's closing price is below than current bar's opening price
3. Current bar's open is at or near the high of current bar's range (at least 75%)
4. Current bar's close is at or near the low of the current bar's range (at least 75%)

And How about PCF in opposite direction for downtrend ?
Thank you
wickypappy
Posted : Friday, April 28, 2006 4:52:06 PM
Registered User
Joined: 3/19/2006
Posts: 4
Note: Decline bar condition 3&4 can be neglected
Doug_H
Posted : Friday, April 28, 2006 4:58:47 PM


Worden Trainer

Joined: 10/1/2004
Posts: 4,308
1. 100*(AVGC10/AVGC10.10)
2. C>MAXH20.8
3. (L<L1 AND L1<L2 AND L2<L3) AND (C<C1) AND (C<O) AND ((100*(O-L)/(H-L))>=75) AND ((100*(C-L)/(H-L))<=25)

I'm a little unclear on #2. PCF #3 includes all of the additional 4 stipulations.

Create and update these PCF's. Add all 3 to an EasyScan. Limit the first one by accepting values from 120 to MAX. The other two PCF's are Boolean and do not require limiting.

Try this out for me and see what you get (I assure you, you will not like every stock that ends up in the scan). If this seems satisfactory, we can give you the downtrend version.

- Doug
Teaching Online!
wickypappy
Posted : Sunday, April 30, 2006 9:11:11 PM
Registered User
Joined: 3/19/2006
Posts: 4
Thank a lot Doug but Can you give me downtrend version as well.
Doug_H
Posted : Sunday, April 30, 2006 9:21:03 PM


Worden Trainer

Joined: 10/1/2004
Posts: 4,308
I was hoping you would confirm for me first that what I gave you worked to your satisfaction for the uptrend version. But, here goes for the downtrend version:

1. This PCF remains the same as above, only you'll limit it to values from MIN to 80
2. C<MINL20.8
3. (H>H1 AND H1>H2 AND H2>H3) AND (C>C1) AND (C>O) AND ((100*(O-L)/(H-L))<=25) AND ((100*(C-L)/(H-L))>=75)

- Doug
Teaching Online!
wickypappy
Posted : Tuesday, May 2, 2006 7:00:36 PM
Registered User
Joined: 3/19/2006
Posts: 4
I try Uptrend version it work well but I change some part because it don't find any single stock for these exact 3 criterias so I use

1. 100*(AVGC10/AVGC10.10)
2. (L<L1 AND L1<L2 AND L2<L3) AND (C<C1 AND C1<C2 AND C2<C3) AND (C<O AND C1<O1 AND C2<O2 AND C3<O3)

Thank so much for your help. I will try Downtrend now.
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.