Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 12/18/2004 Posts: 89
|
Hello,
Can someone kindly help with a PCF that finds stocks that have closed at a first new high in, for example last 10 bars? This eliminates those that have been making new highs for a while..
using version 17
Thanks in advance..
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Please try the following. I am using a period of 252 to represent about a year a daily time frame and using it as the period of the new high (251 is the 252 minus the current bar).
H > MAXH251.1 AND TrueInRow(H1 <= MAXH251.2, 9) = 9
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/18/2004 Posts: 89
|
I will use and post if any further questions..
Thanks Bruce!
|
|
Registered User Joined: 12/18/2004 Posts: 89
|
Bruce,
I tried reversing this for new Lows and it doesn't seem to work (doesn't display spikes where it should in declining markets: AG, for example).. What am I doing wrong?
L < MINL251.1 AND TrueInRow(L1 <= MINL251.2, 9) = 9
Thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You just didn't reverse the sign in the part after the AND. Everything else looks correct.
L < MINL251.1 AND TrueInRow(L1 >= MINL251.2, 9) = 9
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 12/18/2004 Posts: 89
|
New glasses needed!... Thanks
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |