Optionalnames: string[]rebuild the expression string with some of its sources renamed, matching whole symbol tokens only: a string replacement would corrupt sources that contain each other and would interpret "$&" etc. in the replacement (CT-4392). Tokens concatenate back to the original expression, so sources that are absent from the map are emitted unchanged.
maps an old source to its replacement
the expression string with the sources renamed
StaticparseStaticvalidate
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"):