Skip to main content

Module spec

Module spec 

Source
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.
IndicatorSpec
One indicator instance: a wickra-core type name plus its parameters.
Risk
Risk controls (all optional).
StrategySpec
A complete strategy specification.

Enums§

Condition
A boolean node — evaluates to true/false each bar.
Feed
The data feed an indicator is driven by.
FillTiming
When a signalled order fills.
IntPredicate
An integer comparison predicate (used by stateful conditions).
Operand
A value node — evaluates to a number each bar.
OperandExpr
The object-shaped operand forms.
OrderType
Order type.
PriceField
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.