Difference between revisions of "Operators"

From NakedMarkets
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 6: Line 6:
=== Operator Add ===
=== Operator Add ===
This is an arithmetic Operator. It will add the [[Core Rules#Value Core Rules|Value Rule]] on the left with the [[Core Rules#Value Core Rules|Value Rule]] on the right.
This is an arithmetic Operator. It will add the [[Core Rules#Value Core Rules|Value Rule]] on the left with the [[Core Rules#Value Core Rules|Value Rule]] on the right.
<br>
Literal operator : +
<br>
<br>


=== Operator Substract ===
=== Operator Substract ===
This is an arithmetic Operator. It will substract the [[Core Rules#Value Core Rules|Value Rule]] on the left with the [[Core Rules#Value Core Rules|Value Rule]] on the right.
This is an arithmetic Operator. It will substract the [[Core Rules#Value Core Rules|Value Rule]] on the left with the [[Core Rules#Value Core Rules|Value Rule]] on the right.
<br>
Literal operator : -
<br>
<br>


=== Operator Multiply ===
=== Operator Multiply ===
This is an arithmetic Operator. It will multiply the [[Core Rules#Value Core Rules|Value Rule]] on the left with the [[Core Rules#Value Core Rules|Value Rule]] on the right.
This is an arithmetic Operator. It will multiply the [[Core Rules#Value Core Rules|Value Rule]] on the left with the [[Core Rules#Value Core Rules|Value Rule]] on the right.
<br>
Literal operator : x
<br>
<br>


=== Operator Divide ===
=== Operator Divide ===
This is an arithmetic Operator. It will divide the [[Core Rules#Value Core Rules|Value Rule]] on the left with the [[Core Rules#Value Core Rules|Value Rule]] on the right.
This is an arithmetic Operator. It will divide the [[Core Rules#Value Core Rules|Value Rule]] on the left with the [[Core Rules#Value Core Rules|Value Rule]] on the right.
<br>
Literal operator : ÷
<br>
<br>


=== Operator Greater ===
=== Operator Greater ===
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is greater than the [[Core Rules#Value Core Rules|Value Rule]] on the right.
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is greater than the [[Core Rules#Value Core Rules|Value Rule]] on the right.
<br>
Literal operator : >
<br>
<br>


=== Operator Less ===
=== Operator Less ===
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is lesser than the [[Core Rules#Value Core Rules|Value Rule]] on the right.
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is lesser than the [[Core Rules#Value Core Rules|Value Rule]] on the right.
<br>
Literal operator : <
<br>
<br>


=== Operator Greater or equal ===
=== Operator Greater or equal ===
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is greater or equal than the [[Core Rules#Value Core Rules|Value Rule]] on the right.
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is greater or equal than the [[Core Rules#Value Core Rules|Value Rule]] on the right.
<br>
Literal operator : ≥
<br>
<br>


=== Operator Less or equal ===
=== Operator Less or equal ===
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is lesser or equal than the [[Core Rules#Value Core Rules|Value Rule]] on the right.
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is lesser or equal than the [[Core Rules#Value Core Rules|Value Rule]] on the right.
<br>
Literal operator : ≤
<br>
<br>


=== Operator Equal ===
=== Operator Equal ===
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is equal to the [[Core Rules#Value Core Rules|Value Rule]] on the right.
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is equal to the [[Core Rules#Value Core Rules|Value Rule]] on the right.
<br>
Literal operator : =
<br>
<br>


=== Operator Different ===
=== Operator Different ===
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is different than the [[Core Rules#Value Core Rules|Value Rule]] on the right.
This is a conditional Operator. It will check if the [[Core Rules#Value Core Rules|Value Rule]] on the left is different than the [[Core Rules#Value Core Rules|Value Rule]] on the right.
<br>
Literal operator : ≠
<br>
<br>


=== Operator AND ===
=== Operator AND ===
This is a conditional Operator. It will return True if the [[Core Rules#Conditional Core Rules|Conditional Rule]] on the left is True AND the [[Core Rules#Conditional Core Rules|Conditional Rule]] on the right is True, as well. If one of the two conditions is False, this Operator will return False.
This is a conditional Operator. It will return True if the [[Core Rules#Conditional Core Rules|Conditional Rule]] on the left is True AND the [[Core Rules#Conditional Core Rules|Conditional Rule]] on the right is True, as well. If one of the two conditions is False, this Operator will return False.
<br>
Literal operator : && (boolean AND)
<br>
<br>


=== Operator OR ===
=== Operator OR ===
This is a conditional Operator. It will return True if the [[Core Rules#Conditional Core Rules|Conditional Rule]] on the left is True OR if the [[Core Rules#Conditional Core Rules|Conditional Rule]] on the right is True. If both conditions are True, it will return True. It returns False only when both conditions are False.
This is a conditional Operator. It will return True if the [[Core Rules#Conditional Core Rules|Conditional Rule]] on the left is True OR if the [[Core Rules#Conditional Core Rules|Conditional Rule]] on the right is True. If both conditions are True, it will return True. It returns False only when both conditions are False.
<br>
Literal operator : || (boolean OR)
<br>
<br>

Latest revision as of 06:42, 23 August 2021

OperatorMini
Summary

The Operators are used to link the Rules together, depending on the user assumption. It can leads to a Conditional Rule if a Conditional Operator is used or to a Value Rule if an Arithmetic Operator is used.
All the Operators can be referenced in the Core Rules, Setup Rules and Exit Rules.

Operator Add

This is an arithmetic Operator. It will add the Value Rule on the left with the Value Rule on the right.
Literal operator : +

Operator Substract

This is an arithmetic Operator. It will substract the Value Rule on the left with the Value Rule on the right.
Literal operator : -

Operator Multiply

This is an arithmetic Operator. It will multiply the Value Rule on the left with the Value Rule on the right.
Literal operator : x

Operator Divide

This is an arithmetic Operator. It will divide the Value Rule on the left with the Value Rule on the right.
Literal operator : ÷

Operator Greater

This is a conditional Operator. It will check if the Value Rule on the left is greater than the Value Rule on the right.
Literal operator : >

Operator Less

This is a conditional Operator. It will check if the Value Rule on the left is lesser than the Value Rule on the right.
Literal operator : <

Operator Greater or equal

This is a conditional Operator. It will check if the Value Rule on the left is greater or equal than the Value Rule on the right.
Literal operator : ≥

Operator Less or equal

This is a conditional Operator. It will check if the Value Rule on the left is lesser or equal than the Value Rule on the right.
Literal operator : ≤

Operator Equal

This is a conditional Operator. It will check if the Value Rule on the left is equal to the Value Rule on the right.
Literal operator : =

Operator Different

This is a conditional Operator. It will check if the Value Rule on the left is different than the Value Rule on the right.
Literal operator : ≠

Operator AND

This is a conditional Operator. It will return True if the Conditional Rule on the left is True AND the Conditional Rule on the right is True, as well. If one of the two conditions is False, this Operator will return False.
Literal operator : && (boolean AND)

Operator OR

This is a conditional Operator. It will return True if the Conditional Rule on the left is True OR if the Conditional Rule on the right is True. If both conditions are True, it will return True. It returns False only when both conditions are False.
Literal operator : || (boolean OR)