Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 8/16/2009 Posts: 42
|
I'm building a strategy and defining an uptrend as:Uptrend exists if the highest high of the last 2 weeks is higher than the highest high of the previous 2 weeks, and the lowest low of the last 2 weeks is the higher than the lowest low of the previous 2 weeks.How can i write that in a PCF? thanks a bunch!
|
|
Registered User Joined: 8/16/2009 Posts: 42
|
Here is my attempt at it.....
MAXH10 > MAXH10.11 and MINL10 > MINL10.11
Can anone confirm if that's correct?
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
The offset starts at 0, so you would want:
MAXH10 > MAXH10.10 AND MINL10 > MINL10.10
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: 8/16/2009 Posts: 42
|
Cool - thanks Bruce - I getting better :)
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |