pub enum StopLoss {
FixedPercent(f64),
AtrMultiple(f64),
Trailing(f64),
}Expand description
Stop-loss configuration.
Variants§
FixedPercent(f64)
Fixed percentage below entry
AtrMultiple(f64)
ATR multiple below entry
Trailing(f64)
Trailing stop: fixed percentage below highest price
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StopLoss
impl<'de> Deserialize<'de> for StopLoss
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
impl Copy for StopLoss
impl StructuralPartialEq for StopLoss
Auto Trait Implementations§
impl Freeze for StopLoss
impl RefUnwindSafe for StopLoss
impl Send for StopLoss
impl Sync for StopLoss
impl Unpin for StopLoss
impl UnsafeUnpin for StopLoss
impl UnwindSafe for StopLoss
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