pub enum StoplossMode {
FromSignal,
None,
FixedDistance {
distance: f64,
},
FixedPrice {
price: f64,
},
FromSignalDistance {
multiplier: f64,
},
}Expand description
How the profile handles the stoploss from the raw signal.
Variants§
FromSignal
Use the stoploss price from the signal as-is.
None
No fixed stoploss (rely on trailing stop or time exit instead).
FixedDistance
Override with a fixed distance from entry price.
FixedPrice
Override with a specific absolute price.
FromSignalDistance
Scale the directional distance from the applied entry to the signal stop.
Trait Implementations§
Source§impl Clone for StoplossMode
impl Clone for StoplossMode
Source§fn clone(&self) -> StoplossMode
fn clone(&self) -> StoplossMode
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 StoplossMode
impl Debug for StoplossMode
Source§impl<'de> Deserialize<'de> for StoplossMode
impl<'de> Deserialize<'de> for StoplossMode
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
Source§impl PartialEq for StoplossMode
impl PartialEq for StoplossMode
Source§impl Serialize for StoplossMode
impl Serialize for StoplossMode
impl StructuralPartialEq for StoplossMode
Auto Trait Implementations§
impl Freeze for StoplossMode
impl RefUnwindSafe for StoplossMode
impl Send for StoplossMode
impl Sync for StoplossMode
impl Unpin for StoplossMode
impl UnsafeUnpin for StoplossMode
impl UnwindSafe for StoplossMode
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