Infront Portfolio Manager

Functional priority

When working with the mathematical functions, you must observe the function precedence, i.e. the different functions bind to different degrees.

+, - (Unary, i.e., sign), Not

Highest binding

, /*


+, -


<, >, <=, >=, =, <&gt


And


Or,Xor

Lowest binding


The "+" and "-" signs and the "NOT" function bind most strongly. This is followed by the operators that link two numbers; here, dot before dash applies. OR" and "XOR" have the weakest binding.

The property notation point always takes precedence over the functions mentioned here. If a formula contains two operators with equally strong bindings, the expression is processed from left to right.

As in mathematics, you can override the hierarchy with round brackets:
High+(Low/2) corresponds to High+Low/2
(High+Low)/2 corresponds to High/2+Low/2
Close>Open And Low*1.05>High corresponds to (Close>Open) And ((Low*1.05)>High)

Use round brackets to join parts that belong together if you are unsure of the precedence. This avoids errors and makes the formula easier to read.