pub struct ScaleOutStep {
pub trigger_r_multiple: f64,
pub fraction: f64,
}Expand description
One scale-out step: fraction of the current position to exit once the trade reaches
trigger_r_multiple (realized-favorable move, in multiples of the original risk).
Fields§
§trigger_r_multiple: f64§fraction: f64Trait Implementations§
Source§impl Clone for ScaleOutStep
impl Clone for ScaleOutStep
Source§fn clone(&self) -> ScaleOutStep
fn clone(&self) -> ScaleOutStep
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 moreimpl Copy for ScaleOutStep
Source§impl Debug for ScaleOutStep
impl Debug for ScaleOutStep
Source§impl PartialEq for ScaleOutStep
impl PartialEq for ScaleOutStep
impl StructuralPartialEq for ScaleOutStep
Auto Trait Implementations§
impl Freeze for ScaleOutStep
impl RefUnwindSafe for ScaleOutStep
impl Send for ScaleOutStep
impl Sync for ScaleOutStep
impl Unpin for ScaleOutStep
impl UnsafeUnpin for ScaleOutStep
impl UnwindSafe for ScaleOutStep
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