pub struct DollarBar {
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
pub volume: f64,
pub dollar: f64,
}Expand description
One completed dollar bar (an OHLC aggregate spanning ~dollar_per_bar of traded value).
Fields§
§open: f64Open of the first candle in the bar.
high: f64Highest high across the bar.
low: f64Lowest low across the bar.
close: f64Close of the candle that closed the bar.
volume: f64Summed volume across the bar.
dollar: f64Accumulated traded value (Σ close · volume, >= dollar_per_bar).
Trait Implementations§
impl Copy for DollarBar
impl StructuralPartialEq for DollarBar
Auto Trait Implementations§
impl Freeze for DollarBar
impl RefUnwindSafe for DollarBar
impl Send for DollarBar
impl Sync for DollarBar
impl Unpin for DollarBar
impl UnsafeUnpin for DollarBar
impl UnwindSafe for DollarBar
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more