Skip to main content

Module profile

Module profile 

Source
Expand description

Backtest compatibility surface and configuration loader for core management profiles.

Structs§

EntryLevelResolution
Auditable requested and resolved profile levels.
EntryResolutionContext
Instrument-aware context for profile-generated price levels.
GeneratedTargetResolution
Metadata for one generated target.
ManagementProfile
A named management profile that resolves raw entry signals before sizing.
PreparedEntryProfiles
Immutable per-run management-profile selection.
ProfileRegistry
A collection of named management profiles loaded from TOML.
ResolvedEntry
A resolved entry that retains risk intent without assigning concrete lots.
TargetResolution
Metadata describing how signal targets were selected and weighted.

Enums§

EntryGeometryPolicy
Directional geometry policy for signal stoploss and targets resolved against the execution price.
EntryProfileRoutingError
Errors returned while compiling or applying per-entry profile routes.
PositionRef
How a management signal references its target position(s).
PriceGridSource
Origin of the price grid supplied by the replay adapter.
ProfileApplicationError
Strict validation failures returned by the canonical entry resolvers.
ProfileRegistryError
Configuration-loading and registry failures for management profiles.
ProfileValidationError
Errors returned while validating a management profile definition.
RawSignal
A raw signal from an external source — entry or management.
RuleConfigDef
Profile-specific rule definition with #[serde(tag = "type")] for TOML.
StoplossMode
How the profile handles the stoploss from the raw signal.
TargetResolutionSource
Source recorded for resolved target metadata.
TargetSelection
Which 1-based target indices participate in strict target resolution.
TargetSource
Source used to produce initial targets.

Traits§

PositionResolver
Resolves a PositionRef to 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 + remainder must 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 RawSignal into concrete Action(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§

ProfileError
Compatibility name retained for existing qs_backtest::profile callers.