f(x) Expressions
An expression or a common futures spread can be plotted by clicking the “f(x)” button. This menu allows you to create your own expressions, choose from a variety of popular preformatted commodity spreads, save custom spreads for quick access, and recall recently entered formulas.
To create a custom expression, enter the calculation directly into the expression field. Expressions consist of:
- symbols - must be enclosed in “curly brackets”. Examples: {ZC*1} {ESZ25} {IBM} {^EURUSD}
- constants: any floating point number like 2.35; note that we don’t support “scientific” notation (for example, 1.72E5)
- operators:
- unary operator - (negation) so you may enter -2 + 1 and are not forced to type 1 - 2
- binary operators:+ (addition)
- (subtraction)
- (multiplication) / (division) ^(power). These are listed in order from lowest to highest precedence (multiplication and division will always happen before addition and subtraction, unless grouped by parentheses).
- to make sure precedence is correct, parentheses ( and ) can be used; for example 2 ^ 2 + 3 = 7 but 2 ^ (2 + 3) = 32
The calculated results are displayed as a line chart. Additionally, an expression can be added to the main chart window, or as a new pane on the chart (you’ll choose the placement when you create the expression).
After creating an expression, you can save it by giving it a name and clicking the save icon. Once saved, the formula can be quickly accessed under the My Expressions tab.
You can recall recently entered expressions under the Recent Expressions tab.