Back to builder reference
Value ref
priceA single OHLC field of the current bar, or of a bar offset bars back.
offset=0 (the default) is the bar being evaluated. Reading past the
start of loaded history returns NaN rather than clamping to the first bar,
and a NaN operand makes the enclosing compare false.
Backing types
PriceValueRef
Required fields
None.
Optional fields
FieldTypeDescription
fieldPriceField-kindstring-offsetinteger-resolutionanyOf (2 variants)Optional higher-timeframe override for this value ref. Set it inside left/right refs such as {'kind': 'indicator', ..., 'resolution': '4h'} or {'kind': 'price', 'field': 'close', 'resolution': '4h'}. Do not put timeframe/source_timeframe on the parent condition. None = strategy timeframe.symbolanyOf (2 variants)Optional reference symbol this value ref reads from (e.g. 'SPY'). None = the traded/primary symbol. Mutually exclusive with resolution.Backing types
The IR ValueRef classes this builder field resolves to.
PriceValueRef