pub struct IchimokuOutput {
pub tenkan: Option<f64>,
pub kijun: Option<f64>,
pub senkou_a: Option<f64>,
pub senkou_b: Option<f64>,
pub chikou: Option<f64>,
}Expand description
All five Ichimoku lines at one step.
tenkan and kijun reflect data up to and including the current bar.
senkou_a / senkou_b are the leading-span values visible at the current
bar, computed from displacement bars ago. chikou is the close from
displacement bars ago (its “lagging” placement on charts).
Any field that is not yet defined (insufficient history) is None.
Fields§
§tenkan: Option<f64>Tenkan-sen — midpoint of the last tenkan_period highs/lows.
kijun: Option<f64>Kijun-sen — midpoint of the last kijun_period highs/lows.
senkou_a: Option<f64>Senkou Span A as visible at the current bar (computed from
(tenkan + kijun) / 2 at step n - displacement).
senkou_b: Option<f64>Senkou Span B as visible at the current bar (computed from the
senkou_b_period midpoint at step n - displacement).
chikou: Option<f64>Chikou Span — the close from displacement bars ago.
Trait Implementations§
Source§impl Clone for IchimokuOutput
impl Clone for IchimokuOutput
Source§fn clone(&self) -> IchimokuOutput
fn clone(&self) -> IchimokuOutput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IchimokuOutput
impl Debug for IchimokuOutput
Source§impl PartialEq for IchimokuOutput
impl PartialEq for IchimokuOutput
Source§fn eq(&self, other: &IchimokuOutput) -> bool
fn eq(&self, other: &IchimokuOutput) -> bool
self and other values to be equal, and is used by ==.impl Copy for IchimokuOutput
impl StructuralPartialEq for IchimokuOutput
Auto Trait Implementations§
impl Freeze for IchimokuOutput
impl RefUnwindSafe for IchimokuOutput
impl Send for IchimokuOutput
impl Sync for IchimokuOutput
impl Unpin for IchimokuOutput
impl UnsafeUnpin for IchimokuOutput
impl UnwindSafe for IchimokuOutput
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
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>
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>
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