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