Back to builder reference

Value ref

time

Reference to the current bar's time field.

The sub-metric selector is named field.

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-
resolutionnullUnsupported on this value ref; only null is accepted.
symbolnullUnsupported on this value ref; only null is accepted.
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.