Back to builder reference
Value ref
timeReference to the current bar's time field.
VIB-1370 / VIB-1319: the sub-metric selector is named field across
every ValueRef-style type. The legacy name component was removed.
Calendar/intraday fields: hour, minute, day_of_week (0=Mon),
day_of_month, month (1=Jan), minutes_since_midnight.
Session-aware fields (use the strategy's session metadata):
minutes_to_close, minutes_since_open. Have no value for crypto (24h)
and pre/post-market bars. A comparison over a missing value is unknown and
takes no action, negated or not: not(minutes_to_close <= 5) does not
fire outside the session.
Backing types
TimeValueRef
Required fields
FieldTypeDescription
fieldreqenum: hour, minute, day_of_week, day_of_month, month, minutes_since_midnight, minutes_to_close, minutes_since_open-Optional fields
FieldTypeDescription
kindstring-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.timezoneanyOf (2 variants)IANA timezone (e.g. 'America/New_York'). None or 'UTC' = no conversion.Backing types
The IR ValueRef classes this builder field resolves to.
TimeValueRef