Registered User Joined: 6/12/2005 Posts: 39
|
Hi,
How could I write a PCF that would return a 0 when price and volume are down on yesterday, -1 if price is up on reducing volume or down on increasing volume, and 1 if price is up on increeasing volume?
Cheers!
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
Note that equalities were not defined and will also return zero:
ABS(C > C1 AND V > V1) + ((C > C1 AND V < V1) OR (C < C1 AND V > V1))
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: 6/12/2005 Posts: 39
|
Awesome !!!
Thanks very much.
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|