pub enum SizingPolicy {
FixedLot {
lots: f64,
},
FixedRiskAmount {
amount: f64,
},
BalanceRiskPercent {
percent: f64,
},
}Expand description
Policy for computing the position size of one resolved entry signal.
Variants§
FixedLot
Scale a fixed lot quantity by the signal risk multiplier.
FixedRiskAmount
Risk a fixed amount in account currency.
BalanceRiskPercent
Risk a percentage of the realized balance before the entry.
Trait Implementations§
Source§impl Clone for SizingPolicy
impl Clone for SizingPolicy
Source§fn clone(&self) -> SizingPolicy
fn clone(&self) -> SizingPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SizingPolicy
Source§impl Debug for SizingPolicy
impl Debug for SizingPolicy
Source§impl PartialEq for SizingPolicy
impl PartialEq for SizingPolicy
impl StructuralPartialEq for SizingPolicy
Auto Trait Implementations§
impl Freeze for SizingPolicy
impl RefUnwindSafe for SizingPolicy
impl Send for SizingPolicy
impl Sync for SizingPolicy
impl Unpin for SizingPolicy
impl UnsafeUnpin for SizingPolicy
impl UnwindSafe for SizingPolicy
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