Operators

From NakedMarkets
Jump to navigation Jump to search

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)