pub struct CompositeWeights {
pub pnl_weight: Decimal,
pub fees_weight: Decimal,
pub il_weight: Decimal,
pub time_in_range_weight: Decimal,
pub drawdown_weight: Decimal,
}Expand description
Weights for composite objective.
Fields§
§pnl_weight: DecimalWeight for net PnL.
fees_weight: DecimalWeight for fees.
il_weight: DecimalWeight for IL (negative = penalize).
time_in_range_weight: DecimalWeight for time in range.
drawdown_weight: DecimalWeight for drawdown (negative = penalize).
Trait Implementations§
Source§impl Clone for CompositeWeights
impl Clone for CompositeWeights
Source§fn clone(&self) -> CompositeWeights
fn clone(&self) -> CompositeWeights
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 moreSource§impl Debug for CompositeWeights
impl Debug for CompositeWeights
Auto Trait Implementations§
impl Freeze for CompositeWeights
impl RefUnwindSafe for CompositeWeights
impl Send for CompositeWeights
impl Sync for CompositeWeights
impl Unpin for CompositeWeights
impl UnsafeUnpin for CompositeWeights
impl UnwindSafe for CompositeWeights
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