Back to builder reference

Value ref

anchor

A field of a named anchor — a single bar captured earlier and then held.

The anchor is declared in the strategy's anchors (captured by timestamp, bar index, or the first false-to-true flip of a condition); referencing an anchor_id that is not declared blocks readiness. Until the anchor actually fires the value is typed absence. A comparison over that absent operand is UNKNOWN; the action boundary takes no action. mid and range are derived from the captured bar's high and low. Does not accept resolution.

Backing types

AnchorValueRef

Required fields

anchor_fieldreqenum: open, high, low, close, mid, range-
anchor_idreqstring-

Optional fields

kindstring-
resolutionnullUnsupported on this value ref; only null is accepted.
symbolnullUnsupported on this value ref; only null is accepted.

Backing types

The IR ValueRef classes this builder field resolves to.

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