Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

PCF question Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
teamaust
Posted : Friday, April 8, 2011 9:25:06 AM
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!

Bruce_L
Posted : Friday, April 8, 2011 9:34:23 AM


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
teamaust
Posted : Friday, April 8, 2011 10:13:20 AM
Registered User
Joined: 6/12/2005
Posts: 39
Awesome !!!
Thanks very much.
Bruce_L
Posted : Friday, April 8, 2011 10:17:29 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
You're welcome.

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
Users browsing this topic
Guest-1

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.