Analysis Techniques & Strategies

True/False expression

True/False expressions are any combination of values, strings, and/or operators that evaluate to a true or false (boolean) value; their return type is either true or false.

Remarks

True/False expressions can be used as true/false inputs for analysis techniques and strategies.

 True/False expressions can include numeric and relational operators as well as true/false functions. When using relational operators to compare strings, the ASCII values of the first two characters are evaluated. If they are not equal, the strings are not equal.

Examples

8 + 4 > 4 + 10 //false because 12 is not greater than 14
Value1 = Value2 //true when the value represented by Value1 is the same as Value2.
Close + 3 < Open //truewhen the value of the Close price plus 3 is less than the Open price.
Value1 <> 3 //truewhen the value represented by Value1 is not equal to 3.
"MSFT" = "GE" //false because the string on the left is not equal to the string on the right.