pub struct KagiLine {
pub ts: DateTime<Utc>,
pub start_price: f64,
pub end_price: f64,
pub thickness: KagiThickness,
pub crossing: Option<f64>,
}Expand description
A single vertical segment in a Kagi chart.
Fields§
§ts: DateTime<Utc>Timestamp when this segment was created (from the source bar).
start_price: f64Price at the beginning of this segment.
end_price: f64Price at the end of this segment.
thickness: KagiThicknessLine thickness at the end of the segment, indicating trend state.
crossing: Option<f64>Price where the segment crosses the prior shoulder or waist and takes thickness; the
part from start_price to it has the opposite thickness. None when the whole segment
has thickness.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KagiLine
impl RefUnwindSafe for KagiLine
impl Send for KagiLine
impl Sync for KagiLine
impl Unpin for KagiLine
impl UnsafeUnpin for KagiLine
impl UnwindSafe for KagiLine
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