Skip to main content

Module profile

Module profile 

Source
Expand description

Management profiles — decouple entry signals from trade management.

A ManagementProfile resolves RawSignal::Entry fields before sizing. Resolved entries can be finalized into Action::Open calls after a concrete lot size is known. Profile definitions are loaded by an application-owned registry for comparison without recompilation.

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.
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.
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.
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.