pub struct BollingerBandsValue {
pub middle: f64,
pub upper: f64,
pub lower: f64,
pub bandwidth: f64,
pub percent_b: f64,
}Expand description
Per-tick Bollinger Bands output (see IncrementalBollinger).
Fields§
§middle: f64Middle band — the period-SMA.
upper: f64Upper band — middle + std_mult * std.
lower: f64Lower band — middle - std_mult * std.
bandwidth: f64(upper - lower) / middle, or NaN when middle is 0.
percent_b: f64%b — (price - lower) / (upper - lower), or NaN for a zero-width band.
Trait Implementations§
Source§impl Clone for BollingerBandsValue
impl Clone for BollingerBandsValue
Source§fn clone(&self) -> BollingerBandsValue
fn clone(&self) -> BollingerBandsValue
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 BollingerBandsValue
Source§impl Debug for BollingerBandsValue
impl Debug for BollingerBandsValue
Source§impl PartialEq for BollingerBandsValue
impl PartialEq for BollingerBandsValue
Source§fn eq(&self, other: &BollingerBandsValue) -> bool
fn eq(&self, other: &BollingerBandsValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BollingerBandsValue
Auto Trait Implementations§
impl Freeze for BollingerBandsValue
impl RefUnwindSafe for BollingerBandsValue
impl Send for BollingerBandsValue
impl Sync for BollingerBandsValue
impl Unpin for BollingerBandsValue
impl UnsafeUnpin for BollingerBandsValue
impl UnwindSafe for BollingerBandsValue
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