pub struct GhostCandle {
pub bar_idx: f32,
pub open: f64,
pub high: f64,
pub low: f64,
pub close: f64,
}Expand description
One projected candle, with its body following the noisy path and wicks widened to the configured range when the body and intervening anchors fit inside it.
Fields§
§bar_idx: f32Bar index where the candle opens.
open: f64Price at the open.
high: f64Highest price, at least the open and the close.
low: f64Lowest price, at most the open and the close.
close: f64Price at the close, one bar after the open.
Trait Implementations§
Source§impl Clone for GhostCandle
impl Clone for GhostCandle
Source§fn clone(&self) -> GhostCandle
fn clone(&self) -> GhostCandle
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 GhostCandle
Source§impl Debug for GhostCandle
impl Debug for GhostCandle
Source§impl PartialEq for GhostCandle
impl PartialEq for GhostCandle
impl StructuralPartialEq for GhostCandle
Auto Trait Implementations§
impl Freeze for GhostCandle
impl RefUnwindSafe for GhostCandle
impl Send for GhostCandle
impl Sync for GhostCandle
impl Unpin for GhostCandle
impl UnsafeUnpin for GhostCandle
impl UnwindSafe for GhostCandle
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