Investment Studio > Views > System > Symbols
Under Symbols, you can define named, auxiliary quantities for use in system Rules (and occasionally in the Optimizer).
This allows large systems to be broken up in computational elements with well-defined purposes and descriptive names, while keeping the Rules section clean. Ideally, the latter should only contain references to Symbols.
Symbols toolbar
The toolbar contains four control groups. They can be repositioned by dragging their beveled "grip"
![]()
and hidden by unchecking the corresponding entry in the pop-up menu's Toolbar submenu (right-click the grid or the toolbar to open it). All buttons also have functional equivalents in the pop-up menu.
| The toolbar is visible only if it contains a least one visible control group and is itself set to visible. |
|
|||||||||
|
|
|||||
|
|
||||||
|
|
|||||
|
All symbol records in the grid contain a Symbol name, a Definition and an optional Comment:
| Symbol names declared here can be used in references throughout the System view. They should be unique within the portfolio and follow the usual symbol naming conventions. | |
| Each Definition is an expression which evaluates to a number (float) or to an array. It's recomputed
automatically as needed in the course of system
execution. If the symbol's value is a constant (i.e. no expression is required to define it) consider using a Parameter instead. Doing so is more efficient and allows the value to be automatically optimized. |
|
| The Comment can be any text; it has no effect on symbol evaluation or system execution. |
The following symbols are built-in and can be used in expressions throughout the System view, including Symbol Definition fields:
| Built-in symbol | Interpretation |
| X | The current transaction date. Fundamental. On system execution, the Rules are evaluated for each value of X from FROM_DATE + 0.5 to TO_DATE + 0.5, in steps of 1 (= one calendar day). |
| FROM_DATE | The system's start date, specified with the date range controls in the Rules toolbar. |
| TO_DATE | The system's end date, specified with the date range controls in the Rules toolbar. |
| PORTFOLIO | Identifies the system's portfolio. Can be
used as the portfolio index argument with any portfolio lookup function. For instance, the expression =portfolio_name(PORTFOLIO) will return the portfolio's name. |
Note that the built-in symbol RULE is only defined in the Rules grid. It can not be used in the Symbols grid or elsewhere in the System view.
Finally, there are asset symbols. Throughout the System view, the symbol of any asset in the portfolio can be used as the asset index argument with any asset lookup function. For instance, if the portfolio contains an asset with the symbol QQQ, the expression
=asset_name(QQQ)
will return that asset's name. Note that the asset symbol is not surrounded by quotation marks in the function call; it's really a symbol, not a string.
In the screenshot below, the definition of the symbol _crosses (an array) contains references to the symbols _closes and _sar (also arrays), which in turn use references to the asset symbol qqq; to the built-in symbols from_date and to_date; and to the parameters _min_af and _max_af:

All of the above symbols are available in expressions throughout the Systems view.