Investment Studio > Setup > Graph > Built-in symbols

The following symbols are built into the Graph object:

Symbol Interpretation
FROM_X The start value of the Graph's independent (= horizontal axis) variable X.

Must be specified explicitly (either as a constant or using an expression) in the source editor's top panel.

TO_X The end value of the Graph's independent (= horizontal axis) variable X.

Must be specified explicitly (either as a constant or using an expression) in the source editor's top panel.

STEPS The number of discrete values of the independent (= horizontal axis) variable X for which the Graph's output channels are evaluated.

Must be specified explicitly (either as a constant or using an expression) in the source editor's top panel.

X The Graph's independent (= horizontal axis) variable. Graph data sets are created by evaluating all output channels in all sources for the STEPS values of X ranging from FROM_X to TO_X (see above).

See also NXS.

SELF Source-dependent. Identifies the portfolio or the asset associated with the source. Is either a portfolio index (for use with portfolio lookup functions) or an asset index (for use with asset lookup functions), depending on the source type.

When the source type is Portfolios: All, a separate set of Graph data is created for each loaded portfolio, with SELF taking on the index value of each portfolio as it's processed.

When the source type is Assets: All, a separate set of Graph data is created for each asset in the selected portfolio, with SELF taking on the index value of each asset as it's processed.

If the source type is Free, SELF is undefined.

FROM_DATE The view's start date, specified with the date range controls in the view's toolbar.
TO_DATE The view's end date, specified with the date range controls in the view's toolbar.
ASSET Identifies the asset currently selected in the Assets or Quotes view (whichever was opened last). Can be used as the asset index argument with any asset lookup function. For instance, the expression

=asset_name(ASSET)

will return the asset's name.

PORTFOLIO Identifies the portfolio currently selected in the Portfolios view. 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.

GRID Actually a built-in symbol qualifier (or source identifier), used to access fields in the selected record of the view's Grid object. For instance, the expression

=GRID._NAV

returns the value of the _NAV field in the Grid's selected record.

ISLOG TRUE if the Graph's vertical scale is logarithmic, FALSE otherwise.

Click Plot > Logarithmic in the Graph's pop-up menu to switch between linear and logarithmic mode.

NXS The number of X values processed so far in the current Graph data set.

In particular,

X = FROM_X Þ NXS = 0

X = TO_X Þ NXS = STEPS - 1

NCLOSES The number of valid (X, Y) data pairs added so far to the current Graph data set.