Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

PCF code for an uptrend Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
jimmecom
Posted : Monday, May 10, 2010 11:08:06 AM
Registered User
Joined: 2/26/2005
Posts: 15

I am trying to find an uptrend ending in a doji. This code doesn't find the uptrend. 
I have tried numerous variations of the code but the stocks it finds are not in an uptrend
Thanks for your help.
.
(((C > C1) AND (C1 > C2) AND (C2 > C3) AND (C3 > C4)) AND (ABS(O - C) <= ((H - L) * 0.1)))

Bruce_L
Posted : Monday, May 10, 2010 11:14:31 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
It depends on your particular unambiguous objective definition of "uptrend".

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
jimmecom
Posted : Monday, May 10, 2010 11:30:48 AM
Registered User
Joined: 2/26/2005
Posts: 15

Sorry, I thought the code showed what I was trying to do.

Can you give me the PCF code for finding a stock that the last 4 consecutive bars have each been 
higher than the previous bar. I used the closing price of the bars but perhaps the high or
what ever criteria you think would be better.

Again, thanks for your assistance.
Bruce_L
Posted : Monday, May 10, 2010 11:38:03 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Then I don't see anything wrong with the Personal Criteria Formula as given. I'd probably take out a bunch of the parentheses, but it should only return True for symbols where the Close has increased each of last four Trading Days:

C > C1 AND C1 > C2 AND C2 > C3 AND C3 > C4 AND ABS(O - C) <= (H - L) * .1

How are you determining if the PCF returns True? Are you using it as an EasyScan Condition, Sort, WatchList Column or something else entirely?

How to create a Personal Criteria Forumula (PCF)
Using EasyScan to find stocks that meet your own criteria
Create your own stock rankings using WatchLists and Sort conditions
Customize the Information Displayed in the WatchList
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
jimmecom
Posted : Monday, May 10, 2010 12:27:08 PM
Registered User
Joined: 2/26/2005
Posts: 15
I have been away from Worden for quite a while and I'm trying to get back up to speed.  I may be doing this completely wrong.
I am working with the S&P500 list of stocks. I selected new, PCF, wrote the code (numerous times), tested it, saved it (Doji Uptrend), and updated it.  I then clicked on "Doji Uptrend" from the list to sort the S&P500 by the PCF.
Almost all the stocks that came up are in a downtrend..  I am probably doing something dumb
but I haven't figured out what yet.

Thanks
Bruce_L
Posted : Monday, May 10, 2010 12:29:29 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
Try using the Personal Criteria Formula as an EasyScan Condition with the WatchList to Scan set to the Standard and Poors 500 Component Stocks WatchList. Then select the EasyScan as the Active WatchList.

Using EasyScan to find stocks that meet your own criteria

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
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.