pub struct StrategyRiskParameters {
pub max_position_size: f64,
pub max_leverage: f64,
pub stop_loss_pct: f64,
pub take_profit_pct: f64,
}Expand description
Risk parameters specific to a strategy
Fields§
§max_position_size: f64Maximum position size as percentage of portfolio (0.0-1.0)
max_leverage: f64Maximum leverage allowed
stop_loss_pct: f64Stop loss percentage (0.0-1.0)
take_profit_pct: f64Take profit percentage (0.0-1.0)
Trait Implementations§
Source§impl Clone for StrategyRiskParameters
impl Clone for StrategyRiskParameters
Source§fn clone(&self) -> StrategyRiskParameters
fn clone(&self) -> StrategyRiskParameters
Returns a duplicate of the value. Read more
1.0.0 · 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 StrategyRiskParameters
impl Debug for StrategyRiskParameters
Auto Trait Implementations§
impl Freeze for StrategyRiskParameters
impl RefUnwindSafe for StrategyRiskParameters
impl Send for StrategyRiskParameters
impl Sync for StrategyRiskParameters
impl Unpin for StrategyRiskParameters
impl UnwindSafe for StrategyRiskParameters
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