Investment Studio > Setup > Chart > Built-in symbols
The following symbols are built into the Chart object:
| Symbol | Interpretation |
| X | The current evaluation date. Chart data sets are created by evaluating all output channels in all sources for every integer step in X (i.e. for every calendar day) from FROM_DATE to TO_DATE (see below). |
| FROM_DATE | The Chart's start date, specified with the date range controls in the view's toolbar. |
| TO_DATE | The Chart's end date, specified with the date range controls in the view's toolbar. |
| 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 Chart 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 Chart 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. |
| 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. A common use is to let Charts reflect indicator settings specific to the selected asset. |
| ISLOG | TRUE if the Chart's vertical scale is
logarithmic, FALSE otherwise. Click Plot > Logarithmic in the Chart's pop-up menu to switch between linear and logarithmic mode. |
| STEPS | =TO_DATE - FROM_DATE + 1 i.e. the number of X values in the current date range. |
| NXS | The number of X values (i.e. dates) processed so far in
the current Chart data set. In particular, X = FROM_DATE Þ NXS = 0 X = TO_DATE Þ NXS = STEPS - 1 |
| NOPENS | The number of valid Open channel values added so far to the current Chart data set. |
| NHIGHS | The number of valid High channel values added so far to the current Chart data set. |
| NLOWS | The number of valid Low channel values added so far to the current Chart data set. |
| NCLOSES | The number of valid Close channel values added so far to the current Chart data set. |