Skip to main content

Module sizing

Module sizing 

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

SizingResult
Auditable output from compute_size.

Enums§

LotCapStatus
Indicates whether the symbol maximum reduced the computed lot steps.
SizingError
Stable structured failures from compute_size.
SizingPolicy
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.