Back to builder reference

Value ref

xs_dispersion

Spread 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

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

kindstring-

Backing types

The IR ValueRef classes this builder field resolves to.

DispersionValueRef
Quawd

A subscription SaaS platform for designing, backtesting, and paper-trading algorithmic trading strategies on equities and crypto — described in plain English to an AI agent, no code required.

© 2026 Quawd. All rights reserved.

Quawd is a software tool, not a broker-dealer or investment adviser, and does not provide investment advice. Trading involves substantial risk of loss. Backtested and hypothetical results have inherent limitations and are not indicative of future performance.