Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

Personal Criteria Formula: OR/AND Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
jansiwed4
Posted : Wednesday, January 12, 2011 11:52:35 AM
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.)
Bruce_L
Posted : Wednesday, January 12, 2011 12:02:55 PM


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
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.