Back to builder reference

Value ref

select

Choose a numeric value using a stateless predicate.

True reads then, false reads else; unknown returns typed absence, never either branch. Only the chosen branch's absence propagates. Supports compare, range, in_set, not, all_of, any_of and always_true. Memoryful predicates are refused. Window aggregates, live_position and entry_bar values are supported in predicates and branches. Position-dependent values require a position-scoped consumer such as an exit, stop, target or trail. Bind symbol and resolution on children. Usable in arithmetic, offset, rolling statistics, window aggregate sources, sizing, existing stop/target refs and named values, under each consumer's restrictions. History and warmup take the maximum over predicate operands and both branches. Equal branch dimensions or a literal preserve units; known mismatch warns and yields unknown dimension.

Backing types

SelectValueRef

Required fields

elsereqanyOf (2 variants)-
thenreqanyOf (2 variants)-
whenreqSelectPredicate-

Optional fields

kindstring-

Backing types

The IR ValueRef classes this builder field resolves to.

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