pub struct IchimokuLaggingRef {
pub conversion: usize,
pub base: usize,
pub lagging: usize,
pub displacement: usize,
}Expand description
Ichimoku Lagging Span (Chikou Span) reference.
Fields§
§conversion: usize§base: usize§lagging: usize§displacement: usizeTrait Implementations§
Source§impl Clone for IchimokuLaggingRef
impl Clone for IchimokuLaggingRef
Source§fn clone(&self) -> IchimokuLaggingRef
fn clone(&self) -> IchimokuLaggingRef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IchimokuLaggingRef
impl Debug for IchimokuLaggingRef
Source§impl IndicatorRef for IchimokuLaggingRef
impl IndicatorRef for IchimokuLaggingRef
Source§fn required_indicators(&self) -> Vec<(String, Indicator)>
fn required_indicators(&self) -> Vec<(String, Indicator)>
Required indicators to compute this reference. Read more
Source§fn value(&self, ctx: &StrategyContext<'_>) -> Option<f64>
fn value(&self, ctx: &StrategyContext<'_>) -> Option<f64>
Get the value at current candle index from context.
Source§fn prev_value(&self, ctx: &StrategyContext<'_>) -> Option<f64>
fn prev_value(&self, ctx: &StrategyContext<'_>) -> Option<f64>
Get the value at the previous candle index.
impl Copy for IchimokuLaggingRef
Auto Trait Implementations§
impl Freeze for IchimokuLaggingRef
impl RefUnwindSafe for IchimokuLaggingRef
impl Send for IchimokuLaggingRef
impl Sync for IchimokuLaggingRef
impl Unpin for IchimokuLaggingRef
impl UnsafeUnpin for IchimokuLaggingRef
impl UnwindSafe for IchimokuLaggingRef
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> IndicatorRefExt for Twhere
T: IndicatorRef,
impl<T> IndicatorRefExt for Twhere
T: IndicatorRef,
Source§fn above(self, threshold: f64) -> Above<Self>
fn above(self, threshold: f64) -> Above<Self>
Create a condition that checks if this indicator is above a threshold. Read more
Source§fn above_ref<R: IndicatorRef>(self, other: R) -> AboveRef<Self, R>
fn above_ref<R: IndicatorRef>(self, other: R) -> AboveRef<Self, R>
Create a condition that checks if this indicator is above another indicator. Read more
Source§fn below(self, threshold: f64) -> Below<Self>
fn below(self, threshold: f64) -> Below<Self>
Create a condition that checks if this indicator is below a threshold. Read more
Source§fn below_ref<R: IndicatorRef>(self, other: R) -> BelowRef<Self, R>
fn below_ref<R: IndicatorRef>(self, other: R) -> BelowRef<Self, R>
Create a condition that checks if this indicator is below another indicator. Read more
Source§fn crosses_above(self, threshold: f64) -> CrossesAbove<Self>
fn crosses_above(self, threshold: f64) -> CrossesAbove<Self>
Create a condition that checks if this indicator crosses above a threshold. Read more
Source§fn crosses_above_ref<R: IndicatorRef>(
self,
other: R,
) -> CrossesAboveRef<Self, R>
fn crosses_above_ref<R: IndicatorRef>( self, other: R, ) -> CrossesAboveRef<Self, R>
Create a condition that checks if this indicator crosses above another indicator. Read more
Source§fn crosses_below(self, threshold: f64) -> CrossesBelow<Self>
fn crosses_below(self, threshold: f64) -> CrossesBelow<Self>
Create a condition that checks if this indicator crosses below a threshold. Read more
Source§fn crosses_below_ref<R: IndicatorRef>(
self,
other: R,
) -> CrossesBelowRef<Self, R>
fn crosses_below_ref<R: IndicatorRef>( self, other: R, ) -> CrossesBelowRef<Self, R>
Create a condition that checks if this indicator crosses below another indicator. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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