Back to builder reference
Value ref
siblingThe value of source on another symbol of the universe, on the current bar.
symbol must be a member of the strategy's universe; one outside it never has
a value, so such a strategy is not ready and the run refuses. source is
evaluated on that symbol's own data, not this one's; it cannot carry a symbol
and cannot contain another cross-sectional operand. Requires a universe or
portfolio strategy with two or more symbols.
Example, QQQ's close, to compare this symbol's close with: {"kind": "sibling", "symbol": "QQQ", "source": {"kind": "price", "field": "close"}}
Backing types
SiblingValueRef
Required fields
FieldTypeDescription
sourcereqanyOf (2 variants)Value read on the sibling's own bars and indicators, independent of this symbol's data.symbolreqstringSymbol of the sibling in the strategy's universe whose value is read, e.g. 'QQQ' when the universe is ['SPY', 'QQQ', 'IWM'].Optional fields
FieldTypeDescription
kindstring-resolutionnullUnsupported on this value ref; only null is accepted.Backing types
The IR ValueRef classes this builder field resolves to.
SiblingValueRef