pub struct PriceSummary {
pub last: f64,
pub prev_close: f64,
pub change_abs: f64,
pub change_pct: f64,
pub window_high: f64,
pub window_low: f64,
pub range_position: f64,
pub atr: f64,
pub atr_pct: f64,
pub atr_percentile: f64,
pub stop_distance: f64,
}Fields§
§last: f64§prev_close: f64§change_abs: f64§change_pct: f64§window_high: f64Highest high / lowest low across the supplied window (the caller picks the window length — e.g. one session’s worth of bars).
window_low: f64§range_position: f64Where last sits in [window_low, window_high], 0..1 (0.5 if the
window is flat).
atr: f64Wilder ATR in price units, and as a percentage of last.
atr_pct: f64§atr_percentile: f64Fraction of the ATR history (0..1) at or below the current ATR — a cheap “is volatility unusually high/low right now” read.
stop_distance: f64Suggested stop distance in price units (stop_mult · atr).
Trait Implementations§
Source§impl Clone for PriceSummary
impl Clone for PriceSummary
Source§fn clone(&self) -> PriceSummary
fn clone(&self) -> PriceSummary
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 PriceSummary
Source§impl Debug for PriceSummary
impl Debug for PriceSummary
Source§impl PartialEq for PriceSummary
impl PartialEq for PriceSummary
Source§impl Serialize for PriceSummary
impl Serialize for PriceSummary
impl StructuralPartialEq for PriceSummary
Auto Trait Implementations§
impl Freeze for PriceSummary
impl RefUnwindSafe for PriceSummary
impl Send for PriceSummary
impl Sync for PriceSummary
impl Unpin for PriceSummary
impl UnsafeUnpin for PriceSummary
impl UnwindSafe for PriceSummary
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