Back to builder reference

Value ref

time

Reference 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

fieldreqenum: hour, minute, day_of_week, day_of_month, month, minutes_since_midnight, minutes_to_close, minutes_since_open-

Optional fields

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
Quawd

A subscription SaaS platform for designing, backtesting, and paper-trading algorithmic trading strategies on equities and crypto — described in plain English to an AI agent, no code required.

© 2026 Quawd. All rights reserved.

Quawd is a software tool, not a broker-dealer or investment adviser, and does not provide investment advice. Trading involves substantial risk of loss. Backtested and hypothetical results have inherent limitations and are not indicative of future performance.