Back to builder reference

Value ref

total

The sum of known source values in the window, in the source unit.

Start and event windows update after decisions: bar t sees observations through t-1. Entry windows update before invested decisions, include t, and reset only on opening from flat and are absent while flat. Entry windows are refused in gates and event studies; entry conditions may read them, and formula sizing refuses them when their absence necessarily prevents the first entry. Guarded sizing can be admitted when the guard is available while flat and a branch can size before entry. Historical account state is never replayed. State survives paper checkpoints. Offset is refused. Bind leaf routes or use at; this value has no route fields. Inputs join at their finest frame; coarser children read their last completed bar and retain their history and readiness.

Known gaps: a raw trailing ratchet does not reset after firing; an entry window includes the whole bar of a midbar scheduled fill and only the owning entry rule resets it. Scale-ins and partial exits do not reset it. Scheduled rules see their observed frame included. Observes warmup without trading; historical, routed and stateful consumption is refused. Direct arithmetic and conditional consumption is supported. Absent source values are skipped.

Backing types

TotalValueRef

Required fields

kindreqstring-
sourcereqanyOf (2 variants)-
windowreqSince-

Optional fields

None.

Backing types

The IR ValueRef classes this builder field resolves to.

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