Expand description
The data-driven strategy specification (StrategySpec).
A strategy is data, not code — a JSON document — so the exact same
strategy runs identically across every Wickra language binding and over the
C-ABI. This module defines the serde representation of the spec and a
structural StrategySpec::validate that checks every indicator reference
is declared.
See schema/strategy_spec.schema.json (generated) for the canonical schema.
Structs§
- Costs
- Trading costs.
- Execution
- Execution model.
- Indicator
Spec - One indicator instance: a
wickra-coretype name plus its parameters. - Risk
- Risk controls (all optional).
- Strategy
Spec - A complete strategy specification.
Enums§
- Condition
- A boolean node — evaluates to true/false each bar.
- Feed
- The data feed an indicator is driven by.
- Fill
Timing - When a signalled order fills.
- IntPredicate
- An integer comparison predicate (used by stateful conditions).
- Operand
- A value node — evaluates to a number each bar.
- Operand
Expr - The object-shaped operand forms.
- Order
Type - Order type.
- Price
Field - A price field of the current bar.
- Sizing
- Position sizing model.
- Slippage
- Slippage model.
Constants§
- SPEC_
VERSION - Current strategy-spec format version. Bumped on breaking DSL changes.