Back to builder reference
Condition
compareentryexitgate
LEVEL comparison on continuous values: lhs op rhs, true every bar the relation holds. USE WHEN: gating on a sustained condition (e.g. close > SMA(200), RSI < 30 throughout the consolidation). DO NOT USE for one-shot edge events — use 'cross' to fire once on the crossing bar. DO NOT USE for membership in a discrete set — use 'in_set'. For named zones inspect builder_discover(action='get', ref='workflow:named_anchor_zone'); for anchor fields use value_ref:anchor.
Category
Price signals
Discriminator
type = "compare"
Roles
entry, exit, gate
Required fields
FieldTypeDescription
lhsreqoneOf (31 variants)Left-hand signal (e.g., close, ema(20))opreqenum: >, >=, <, <=, ==, !=Comparison operatorrhsreqanyOf (2 variants)Right-hand signal or constantOptional fields
FieldTypeDescription
modeenum: level, crossFiring mode. 'level' (default) = true every bar the comparison holds. 'cross' = edge, fires once on the bar the left-hand side first crosses the right-hand side in the op direction.typestring-