Infix functions
Infix functions are mathematical functions that stand between two objects and link the two objects together (e.g. "plus", "minus"). The most frequently used functions can be written with function abbreviations, i.e. with the familiar mathematical symbols, e.g. "today+100". There are also function abbreviations for logical expressions ("And", "Or", "Xor" etc.). Which spelling you prefer is up to you:
CLOSE.GD[25] >= CLOSE.GD[200]
CLOSE.GD[25].GREATEREQUAL[CLOSE.GD[200]]
With infix notation, no brackets are required between the arguments.
The following abbreviations for infix functions are available in MM-Talk:
Infix | Abbreviation | Function |
---|---|---|
Plus | + | Addition |
Minus | - | Subtraction |
Mult | * | Multiplication |
Div | / | Division |
Greater | > | Larger than |
GreaterEqual | >= | Larger equals |
Less | < | Smaller than |
LessEqual | <= | Smaller equal |
Equal | = | In a moment |
NotEqual | <> | Unequal |
And | And | Logical and |
Or | Or | Logical Or |
Xor | Xor | Excluding or |