Gold Customer
Joined: 6/23/2011 Posts: 28
|
Hello,
I don't do much with PCF's, mainly because I am very programmer challenged.
However, I am wanting to create a scan that will identify stocks that are having a 20 day breakout to the upside. What I am looking for are stocks with the current price the highest it has been in the last 20 trading days.
I know this is child's play for you but would you mind enlightening me.
Thanks,
Sam
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
If the high of the current bar only needs to be the highest high of the most recent 20-bars:
H = MAXH20
If the high of the current bar needs to be higher than the highest high of the previous 19-bars:
H > MAXH19.1
If the current bar actually needs to close above the highest high of the previous 19-bars:
C > MAXH19.1
PCF Formula Descriptions
Handy PCF example formulas to help you learn the syntax of PCFs!
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
Gold Customer
Joined: 6/23/2011 Posts: 28
|
thank you
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|