pub struct PortfolioPercentSizer {
pub percent: Decimal,
}Expand description
Sizes orders based on a fixed percentage of portfolio equity.
Fields§
§percent: DecimalThe fraction of equity to allocate per trade (e.g., 0.02 for 2%).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PortfolioPercentSizer
impl RefUnwindSafe for PortfolioPercentSizer
impl Send for PortfolioPercentSizer
impl Sync for PortfolioPercentSizer
impl Unpin for PortfolioPercentSizer
impl UnwindSafe for PortfolioPercentSizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more