Expand description
Backtest compatibility surface and configuration loader for core management profiles.
Structs§
- Management
Profile - A named management profile that resolves raw entry signals before sizing.
- Profile
Registry - A collection of named management profiles loaded from TOML.
- Resolved
Entry - A resolved entry that retains risk intent without assigning concrete lots.
- Target
Resolution - Metadata describing how signal targets were selected and weighted.
Enums§
- Position
Ref - How a management signal references its target position(s).
- Profile
Application Error - Strict validation failures returned by the canonical entry resolvers.
- Profile
Registry Error - Configuration-loading and registry failures for management profiles.
- Profile
Validation Error - Errors returned while validating a management profile definition.
- RawSignal
- A raw signal from an external source — entry or management.
- Rule
Config Def - Profile-specific rule definition with
#[serde(tag = "type")]for TOML. - Stoploss
Mode - How the profile handles the stoploss from the raw signal.
- Target
Selection - Which 1-based target indices participate in strict target resolution.
Traits§
- Position
Resolver - Resolves a
PositionRefto concrete position ID(s) using engine state.
Functions§
- allocate_
target_ steps - Allocate target close weights from authoritative integer lot steps.
Each non-final target rounds down, while a fully allocated final target receives all remaining steps.
A positive runner remainder is intentionally left unallocated, and
weights + remaindermust equal one. - allocate_
target_ units - Convert an aligned floating lot size to steps and delegate to
allocate_target_steps. - resolve_
signal - Resolve a non-entry
RawSignalinto concreteAction(s). - resolve_
unprofiled_ entry - Strictly resolve an entry without a management profile.
- validate_
profile - Validate a management profile without performing configuration I/O.
Type Aliases§
- Profile
Error - Compatibility name retained for existing
qs_backtest::profilecallers.