Constructors

  • an expression represents a simple mathematic formula based on one or more timeseries as input parameters. It supports basic arithmetic operations such as addition, subtraction, division, and some simple mathematic functions (MAX, MIN, ABS, SQRT).

    Expressions are used to calculate so called Composite Symbols, for example ratio or spread charts.

    To add a Composite Symbol to a chart, the built in Expression loader can be used as follows (Assuming you have previously provided a data loader named "custom"):

       controller.addTimeSeries('Expression(custom:a/custom:b)');

    Parameters

    • expression: string

    Returns BG.charts.Expression

Methods

  • Parameters

    • ...args: any[]

    Returns number

  • Parameters

    • Optionalnames: string[]

    Returns string

  • Returns string[]

  • Returns boolean

  • Parameters

    • expression: string

    Returns boolean