pub struct EntryPlan {Show 14 fields
pub close: f64,
pub p_up_126: f64,
pub p_up_252: f64,
pub action: &'static str,
pub window: usize,
pub certainty: f64,
pub limit_price: f64,
pub limit_discount: f64,
pub p_fill: f64,
pub typical_low: f64,
pub typical_low_day: usize,
pub expected_saving: f64,
pub bucket: String,
pub reason: String,
}Expand description
A recommended way to buy one stock.
Fields§
§close: f64§p_up_126: f64P(higher in 126 / 252 bars).
p_up_252: f64§action: &'static str"skip", "buy now" or "limit". For "limit", the fields below
describe the best plan found; for "buy now" (and "skip"), the plan
exactly as asked, so you can see what waiting would cost.
window: usizeWindow (trading days) and certainty of the chosen plan.
certainty: f64§limit_price: f64Limit price and its distance below the close (0.03 = 3% lower).
limit_discount: f64§p_fill: f64Historical probability that price trades through the limit in time.
typical_low: f64Typical lowest price in the window (median of history’s lows).
typical_low_day: usizeTypical trading day of that low (1..window).
expected_saving: f64Average effective entry vs buying now (−0.01 = 1% cheaper, +0.01 =
1% dearer), from history: limit if filled, day-window close if not.
bucket: String§reason: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for EntryPlan
impl RefUnwindSafe for EntryPlan
impl Send for EntryPlan
impl Sync for EntryPlan
impl Unpin for EntryPlan
impl UnsafeUnpin for EntryPlan
impl UnwindSafe for EntryPlan
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