pub struct VolumeBar {
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
pub volume: f64,
}Expand description
One completed volume bar (an OHLCV aggregate spanning ~volume_per_bar of volume).
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: f64Accumulated volume in the bar (>= volume_per_bar; the crossing candle’s
overshoot is kept in the bar that closes).
Trait Implementations§
impl Copy for VolumeBar
impl StructuralPartialEq for VolumeBar
Auto Trait Implementations§
impl Freeze for VolumeBar
impl RefUnwindSafe for VolumeBar
impl Send for VolumeBar
impl Sync for VolumeBar
impl Unpin for VolumeBar
impl UnsafeUnpin for VolumeBar
impl UnwindSafe for VolumeBar
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