Back to builder reference

Value ref

unary_expr

Unary expression over another ValueRef.

source accepts a nested value reference or a finite numeric literal. Use abs/neg for magnitude/sign, log/log10 for logarithms, sqrt for square root, and pct_change for one-bar percent change (2 means 2%). Compose with binary_expr or rolling_stats, then use the result in a condition or sizing formula. Symbol/resolution overrides belong on supporting leaf operands. Dimension hints preserve abs/neg, halve exponents for sqrt and tag dimensioned log/log10 sources; subtracting equal log dimensions is a ratio. Unknown dimensions stay unknown. Invalid literal domains are refused; runtime missing values propagate. Consumer-specific admission and position context still apply.

Backing types

UnaryExprValueRef

Required fields

opreqenum: abs, neg, log, log10, sqrt, pct_change-
sourcereqanyOf (2 variants)-

Optional fields

kindstring-

Backing types

The IR ValueRef classes this builder field resolves to.

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