pub struct StopLossConfig {
pub default_pct: f64,
pub use_atr: bool,
pub atr_multiplier: f64,
pub min_distance_pct: f64,
pub max_distance_pct: f64,
}Fields§
§default_pct: f64§use_atr: bool§atr_multiplier: f64§min_distance_pct: f64§max_distance_pct: f64Trait Implementations§
Source§impl Clone for StopLossConfig
impl Clone for StopLossConfig
Source§fn clone(&self) -> StopLossConfig
fn clone(&self) -> StopLossConfig
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 StopLossConfig
impl Debug for StopLossConfig
Source§impl Default for StopLossConfig
impl Default for StopLossConfig
Source§impl<'de> Deserialize<'de> for StopLossConfigwhere
StopLossConfig: Default,
impl<'de> Deserialize<'de> for StopLossConfigwhere
StopLossConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for StopLossConfig
impl RefUnwindSafe for StopLossConfig
impl Send for StopLossConfig
impl Sync for StopLossConfig
impl Unpin for StopLossConfig
impl UnsafeUnpin for StopLossConfig
impl UnwindSafe for StopLossConfig
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