Portland Oregon, United States
Experience: Beginner
Platform: NinjatraderŽ
Broker: CQG, Kinetick
Trading: Gameplay KlownbineŽ Trading of Globex
Posts: 1,333 since Jul 2009
Thanks Given: 1,246
Thanks Received: 2,731
|
To negate a condition enclose the condition in parentheses and precede it with the exclamation point, !
Putting that after the double ampersand gives the AND NOT operator.
If a is greater than 12 and a is not greater than 25
---> if a is greater than 12 AND NOT (a is greater than 25)
Putting the exclamation point after the || gives the OR NOT operator.
if a is greater than 12 or b is NOT less than 6
--> if a is greater than 12 OR NOT (b is less than 6)
Also, as in the previous example, the UNEQUAL TO operator is != .
NOT GREATER THAN !>
NOT LESS THAN !<
In practice use the AND NOT and OR NOT conditions above for more complex tests that cannot be done with simple inequalties.
|