pub struct ChaikinOscillatorRef;Expand description
Chaikin Oscillator reference.
Trait Implementations§
Source§impl Clone for ChaikinOscillatorRef
impl Clone for ChaikinOscillatorRef
Source§fn clone(&self) -> ChaikinOscillatorRef
fn clone(&self) -> ChaikinOscillatorRef
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 ChaikinOscillatorRef
impl Debug for ChaikinOscillatorRef
Source§impl IndicatorRef for ChaikinOscillatorRef
impl IndicatorRef for ChaikinOscillatorRef
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 ChaikinOscillatorRef
Auto Trait Implementations§
impl Freeze for ChaikinOscillatorRef
impl RefUnwindSafe for ChaikinOscillatorRef
impl Send for ChaikinOscillatorRef
impl Sync for ChaikinOscillatorRef
impl Unpin for ChaikinOscillatorRef
impl UnsafeUnpin for ChaikinOscillatorRef
impl UnwindSafe for ChaikinOscillatorRef
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