Back to builder reference
Condition
compareentryexitgate
LEVEL comparison on continuous values: left op right, 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
kind = "compare"
Roles
entry, exit, gate
Required fields
FieldTypeDescription
leftreqValueRefLeft-hand value (e.g., close, ema(20))opreqCompareOpComparison operatorrightreqanyOf (2 variants)Right-hand value or constantOptional fields
FieldTypeDescription
kindstring-