Expression Editor


The expression editor is used to enter a mathematical expression into the value of a Variable.


An example of a simple expression is the sum of two numbers:

Bid + Ask


A more complicated expression may find the average of two numbers:

(Bid + Ask)/2


The MQL language offers many Math functions for forming complex expressions.  A very complex expression would probably be easier to implement using an MQL Function, however, the Expression Editor is convenient for simple expressions.