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§
- Management
Profile - A named management profile that resolves raw entry signals before sizing.
- 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
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.