Registered User Joined: 3/12/2005 Posts: 7
|
I've been using Telechart for a while, but I have never understood the PCF OR/AND distinction.
I thought OR would be used when either/or logic was needed; but I can't seem to use it for that (so I use AND-and it seems to work).
Would you tell me the distinction in Telechart PCF between OR and AND.
Also would you give me a brief and simple example and explanation of each (preferably using the same formula, but one having AND and the other OR.)
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
C > C1 AND C1 > C2 will only return True if the Net Change for both the current Bar and the previous Bar is positive.
C > C1 OR C1 > C2 will return True if the Net Change for either the current Bar or the previous Bar is positive.
In TeleChart's Personal Criteria Formula Language, OR has a higher priority in the order of operations than AND. You can force the order of operations by using parentheses.
PCF Formula Descriptions
-Bruce Personal Criteria Formulas TC2000 Support Articles
|