Back to builder reference
Value ref
gap_pctGap percentage from the previous bar's close — (open - prev_close) / prev_close * 100. Same formula the top-level gap_pct condition uses; exposed as a value_ref so gap can be combined with other indicators inside compare/cross. No extra fields required.
Backing types
GapPctValueRef
Required fields
None.
Optional fields
FieldTypeDescription
factoranyOf (2 variants)-resolutionanyOf (2 variants)Optional higher-timeframe override for this value ref. Set it inside lhs/rhs refs such as {'type': 'indicator', ..., 'resolution': '4h'} or {'type': 'price', 'field': 'close', 'resolution': '4h'}. Do not put timeframe/source_timeframe on the parent condition. None = strategy timeframe.typestring-Backing types
The IR ValueRef classes this builder field resolves to.
GapPctValueRef