Back to builder reference
Value ref
xs_dispersionSpread of source across the WHOLE universe on the current bar.
Unlike rank and xs_zscore it does not say where this symbol sits; every
symbol reads the same number, so it does not degrade while this symbol's own
value is still warming up. stat chooses the standard deviation or the range.
source is evaluated once per symbol; it cannot carry a symbol and cannot
contain another cross-sectional operand. Requires a universe or portfolio strategy
with two or more symbols.
Example, how widely 20-bar returns are spread across the universe: {"kind": "xs_dispersion", "stat": "stdev", "source": {"kind": "indicator", "indicator": "roc", "period": 20}}
Backing types
DispersionValueRef
Required fields
FieldTypeDescription
sourcereqanyOf (2 variants)Per-symbol value whose spread across the universe is measured on the current bar. It is evaluated for each symbol on its own data.statreqenum: stdev, range'stdev' = sample standard deviation (ddof=1) of the symbols' values. 'range' = highest minus lowest.Optional fields
FieldTypeDescription
kindstring-Backing types
The IR ValueRef classes this builder field resolves to.
DispersionValueRef