Numeric operators
Numeric operators, also known as mathematical operators, perform the four basic mathematical operations: multiplication, addition, subtraction, and division. The characters used to perform these operations are as follow:
Operator |
Operation |
* |
Multiplication |
/ |
Division |
+ |
Addition |
- |
Subtraction |
Whenever using operators, make sure you take into account the sequence in which EasyLanguage executes the numerical, relational, and logical comparisons, referred to as the order of operation precedence. The following table lists the operations in their order of precedence:
Order of Operation Precedence |
Parenthesis |
Multiplication/Division |
Addition/Subtraction |
Relational Operators |
And/Or |
Examples
High - Low
(Close + Open) / 2