Back to builder reference

Value ref

offset

Read a market-derived value offset completed source-frame bars ago.

Offset counts bars of its source; to step on strategy bars, wrap the source in sample. Mixed children use their finest frame, reading coarser children as of the last completed bar. Use sample(clock=primary) to count primary bars instead. Indicator/price leaf offsets count their own frame; swing offsets count confirmed swings. Missing historical values stay absent. Position, account, event, zone and cross-sectional histories are not supported. Nested offsets add, with at most 500 source-frame bars in total.

Backing types

OffsetValueRef

Required fields

offsetreqinteger-
sourcereqanyOf (2 variants)-

Optional fields

kindstring-

Backing types

The IR ValueRef classes this builder field resolves to.

OffsetValueRef
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.