pub struct ExitPlan {
pub action: &'static str,
pub window: usize,
pub certainty: f64,
pub limit_price: f64,
pub limit_premium: f64,
pub p_fill: f64,
pub typical_high: f64,
pub typical_high_day: usize,
pub expected_gain: f64,
pub reason: String,
}Expand description
A recommended way to sell (or trim) one holding.
Fields§
§action: &'static str"sell now", "sell limit" (both only when the verdict is sell), or
"hold" (the limit below is then a take-profit level, for reference).
window: usize§certainty: f64§limit_price: f64Sell limit and its distance above the close (0.03 = 3% higher).
p_fill: f64Historical probability that price trades through the limit in time.
typical_high: f64Typical highest price in the window, and the day it tends to come.
typical_high_day: usize§expected_gain: f64Average exit vs selling now (+0.01 = 1% better), misses included (a miss sells at the window’s last close).
reason: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for ExitPlan
impl RefUnwindSafe for ExitPlan
impl Send for ExitPlan
impl Sync for ExitPlan
impl Unpin for ExitPlan
impl UnsafeUnpin for ExitPlan
impl UnwindSafe for ExitPlan
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