pub struct OpenView {
pub label: &'static str,
pub days_held: usize,
pub days_left: usize,
pub return_on_risk: f64,
pub fraction_of_max: f64,
pub entry_lean: f64,
}Expand description
What an open trade looks like to exit.
Fields§
§label: &'static str§days_held: usize§days_left: usize§return_on_risk: f64Current value ÷ capital at risk − 1 (e.g. +0.5 = up 50% on risk).
fraction_of_max: f64Fraction of the maximum possible profit already earned (spreads).
entry_lean: f64Lean at entry (to detect a direction flip).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenView
impl RefUnwindSafe for OpenView
impl Send for OpenView
impl Sync for OpenView
impl Unpin for OpenView
impl UnsafeUnpin for OpenView
impl UnwindSafe for OpenView
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