Expand description
In-place account position sizing for backtests.
Sizing consumes the authoritative entry and protective stop after signal resolution. Currency conversion and target allocation are performed by callers.
Structs§
- Sizing
Result - Auditable output from legacy or catalog-backed sizing.
Enums§
- Instrument
Sizing Error - Catalog-backed sizing failures.
- LotCap
Status - Indicates whether the symbol maximum reduced the computed lot steps.
- Sizing
Error - Stable structured failures from
compute_size. - Sizing
Policy - Policy for computing the position size of one resolved entry signal.
Functions§
- compute_
instrument_ native_ loss_ per_ lot - Compute native stop loss for one catalog-backed standard lot.
- compute_
instrument_ size - Compute one account position size from catalog-backed quantity and economics contracts.
- compute_
instrument_ size_ for_ spec - Compute catalog-backed sizing with complete price, quantity, economics, and notional validation.
- compute_
native_ loss_ per_ lot - Compute the positive native P&L currency loss for one standard lot at a protective stop.
- compute_
size - Compute one in-place account position size.