Back to builder reference
Condition
sibling_compareentrygate
Compare this sleeve's source to a named sibling sleeve's sibling_source on current bar (pairs trades). Symbol must be a member of the portfolio universe.
Category
Cross-sectional
Discriminator
type = "sibling_compare"
Roles
entry, gate
Required fields
FieldTypeDescription
opreqenum: >, >=, <, <=, between, ==, !=-sibling_sourcereqoneOf (31 variants)Source ref resolved against the sibling's bars/indicators — independent of this sleeve's ``source``. E.g. {'type': 'price', 'field': 'close'} or {'type': 'indicator', 'indicator': 'ema', 'period': 50}.sourcereqoneOf (31 variants)Per-sleeve scalar evaluated against this sleeve's own bars/indicators (the left-hand side of the comparison). E.g. {'type': 'price', 'field': 'close'}.symbolreqstringSymbol of the sibling sleeve in the portfolio universe to compare against. Must be a member of the strategy's universe (e.g. 'QQQ' when the strategy trades ['SPY', 'QQQ', 'IWM']).Optional fields
FieldTypeDescription
typestring-