pub struct RunBar {
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
pub length: usize,
pub direction: i8,
}Expand description
One completed run bar.
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.
length: usizeLength of the run that closed the bar (== run_length).
direction: i8+1 if a buy run closed the bar, -1 if a sell run.
Trait Implementations§
impl Copy for RunBar
impl StructuralPartialEq for RunBar
Auto Trait Implementations§
impl Freeze for RunBar
impl RefUnwindSafe for RunBar
impl Send for RunBar
impl Sync for RunBar
impl Unpin for RunBar
impl UnsafeUnpin for RunBar
impl UnwindSafe for RunBar
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