Expand description
Backtest compatibility surface and configuration loader for core management profiles.
Structs§
- Entry
Level Resolution - Auditable requested and resolved profile levels.
- Entry
Resolution Context - Instrument-aware context for profile-generated price levels.
- Generated
Target Resolution - Metadata for one generated target.
- Management
Profile - A named management profile that resolves raw entry signals before sizing.
- Prepared
Entry Profiles - Immutable per-run management-profile selection.
- 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§
- Entry
Geometry Policy - Directional geometry policy for signal stoploss and targets resolved against the execution price.
- Entry
Profile Routing Error - Errors returned while compiling or applying per-entry profile routes.
- Position
Ref - How a management signal references its target position(s).
- Price
Grid Source - Origin of the price grid supplied by the replay adapter.
- 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
Resolution Source - Source recorded for resolved target metadata.
- Target
Selection - Which 1-based target indices participate in strict target resolution.
- Target
Source - Source used to produce initial targets.
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.