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 |

Using Relational Operators to make Condition Formulas Topic Rating:
Previous Topic · Next Topic Watch this topic · Print this topic ·
Bruce_L
Posted : Wednesday, March 12, 2014 5:07:23 PM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138

Relational operators is a complicated way of saying comparing. It specifically refers to the syntax of making comparisons between two entities. The results of relational operations are Boolean in that they are either true or false. You use relational operators to make Condition Formulas.

There are three basic relational operators in the Personal Criteria Fomula Language. You can check for things to be equal to each other using the equal sign.

=

The following Condition Formula will return true if the close of the current bar is equal to the open of the current bar.

C = O

You can check for one item to be greater than another item using the greater than sign.

>

The following Condition Formula will return true if the close of the current bar is greater than the open of the current bar.

C > O

You can check for one item to be less than another item using the less than sign.

<

The following Condition Formula will return true if the close of the current bar is less than the open of the current bar.

C < O

There are three other relational operators which are created by combining any two of characters used to represent the three basic relational operators. These two character relational operators will return true when either one of the two basic relational operators making up the combination returns true.

You can check for something being greater than or equal to something else using the greater than or equal relational operator.

>= 

The following Condition Formula will return true when the close is greater than the open or when the close is equal to the open.

C >= O

You can check for something being less than or equal to something else using the less than or equal relational operator.

<=

The following Condition Formula will return true when the close is less than the open or when the close is equal to the open.

C <= O

Combining greater than and less than into a single relational operator checks for something being either greater than something else or less than something else. This is why it is called the not equal relational operator.

<>

The following Condition Formula will return true only when the close and the open are not equal to each other.

C <> O

Up to Index: Personal Criteria Formulas



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