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
compute_size.
Enums§
- 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_
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.