pub struct RenkoBrick {
pub ts: DateTime<Utc>,
pub open: f64,
pub close: f64,
pub high: f64,
pub low: f64,
pub direction: RenkoDirection,
}Expand description
A single Renko brick representing a fixed-size price movement.
Fields§
§ts: DateTime<Utc>Timestamp of the source bar that completed this brick.
open: f64Opening price (bottom of an Up brick, top of a Down brick).
close: f64Closing price (top of an Up brick, bottom of a Down brick).
high: f64Highest source price of this brick, including an upper wick on a down brick.
low: f64Lowest source price of this brick, including a lower wick on an up brick.
direction: RenkoDirectionDirection of this brick.
Implementations§
Trait Implementations§
Source§impl Clone for RenkoBrick
impl Clone for RenkoBrick
Source§fn clone(&self) -> RenkoBrick
fn clone(&self) -> RenkoBrick
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 moreAuto Trait Implementations§
impl Freeze for RenkoBrick
impl RefUnwindSafe for RenkoBrick
impl Send for RenkoBrick
impl Sync for RenkoBrick
impl Unpin for RenkoBrick
impl UnsafeUnpin for RenkoBrick
impl UnwindSafe for RenkoBrick
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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