Back to builder reference
Condition
order_blockentry
Order Block -- institutional S/R zone
Category
Price levels
Discriminator
type = "order_block"
Roles
entry
Required fields
None.
Optional fields
FieldTypeDescription
directionenum: bullish, bearish, both-fill_thresholdnumberFill percentage (0-1) at which zone is considered filledmax_barsanyOf (2 variants)Zone expiry in barsmin_body_pctanyOf (2 variants)Optional displacement-body filter. Require the displacement candle's body |close-open| to be at least this fraction of its full range (high-low). None disables the filter (default-preserving). Setting this also activates canonical-mode consume-after-fire.min_displacement_atranyOf (2 variants)Optional displacement strength filter, in ATR(14) multiples. The displacement candle body must satisfy |close-open| >= mult * ATR(14). None disables the filter (default-preserving). Setting this also activates canonical-mode consume-after-fire.resolutionanyOf (2 variants)Higher-timeframe override for zone lifecycle. Set to '4h' to detect OBs on 4H bars. None = strategy timeframe.selectenum: nearest, most_recent, oldest, anyHow to pick among matching zones at trigger time. 'any' (default) fires when any zone overlaps the bar. 'nearest'/'most_recent'/'oldest' deterministically pick one zone — required when binding execution price via TriggeringZonePriceSpec (VIB-591).typestring-use_wicksbooleanZone bounds source for the opposing candle. Default True preserves current behavior (full high/low including wicks). False switches to canonical SMC body bounds (max(open,close)/min(open,close)) and activates consume-after-fire so only one zone fires per setup.