Value ref
countThe number of bars on which condition is known true within the window, in bars.
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. Conditions admit compare, range, always_true and boolean composition over market values; cross, latch and other memoryful conditions are refused. Unknown matches do not count or capture.
Backing types
CountValueRef
Required fields
conditionreqEventAggregatePredicate-kindreqstring-windowreqSince-Optional fields
Backing types
The IR ValueRef classes this builder field resolves to.