Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
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)))
|
|
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
|
|
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.
|
|
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
|
|
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
|
|
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
|
|
Guest-1 |