About Expressions

A quote or chart window can display mathematical expressions. An expression uses one or more symbols, numerical constants, and simple mathematical operators (+,-,*,/). Expressions can also use variables.

Some rules to know

Expression must begin with an equal sign (=).

Symbols that contain spaces or mathematical operators (+,-,*,/) in their symbol, must be enclosed in single quote marks (‘).

Standard mathematical order of operations applies.

1. Parentheses

2. Multiplication/Division

3. Addition/Subtraction

When using expressions in a quote board, you can specify the price field that is used (If omitted, Last is Default). This is done by using the Dot (.) Operator.

When using expression in a chart, you can specify time-series field that is used. Valid fields are:

Examples

=MSFT/ CSCO

=’RIM-TC’ – RIMM

=’BAC/PC’ – BAC

=(‘CL 1!’ + ‘CL 2!’ + ‘CL 3!’) /3

=('XRB 1!' * 28 +'HO 1!' * 14) - 'CL 1!'

=MSFT.LOW / CSCO.LOW

=’RIM-TC’.HIGH – RIMM.HIGH

Using Variables in Expressions

Expressions with variable (#IN) – Create expressions that calculate with a variable that is aware of the window’s symbol for charting.  

(Ex. #IN is the variable = to the windows symbol, the expression “(#IN / $INDU)*100” will display a charting of the main symbol of the window divided by the value of $INDU ‘Dow Ind Avg’ multiplied by 100.  When the user changes the symbol of the main chart, the expression is calculated for the changed symbol.)