Struct yata::indicators::ChandeKrollStopInstance
source · pub struct ChandeKrollStopInstance<M: MovingAverageConstructor = MA> { /* private fields */ }
Expand description
Chande Kroll Stop state structure
Trait Implementations§
source§impl<M: Clone + MovingAverageConstructor> Clone for ChandeKrollStopInstance<M>
impl<M: Clone + MovingAverageConstructor> Clone for ChandeKrollStopInstance<M>
source§fn clone(&self) -> ChandeKrollStopInstance<M>
fn clone(&self) -> ChandeKrollStopInstance<M>
Returns a copy 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<M: Debug + MovingAverageConstructor> Debug for ChandeKrollStopInstance<M>
impl<M: Debug + MovingAverageConstructor> Debug for ChandeKrollStopInstance<M>
source§impl<'de, M> Deserialize<'de> for ChandeKrollStopInstance<M>
impl<'de, M> Deserialize<'de> for ChandeKrollStopInstance<M>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<M: MovingAverageConstructor> IndicatorInstance for ChandeKrollStopInstance<M>
impl<M: MovingAverageConstructor> IndicatorInstance for ChandeKrollStopInstance<M>
§type Config = ChandeKrollStop<M>
type Config = ChandeKrollStop<M>
Type of Indicator Configuration
source§fn next<T: OHLCV>(&mut self, candle: &T) -> IndicatorResult
fn next<T: OHLCV>(&mut self, candle: &T) -> IndicatorResult
Evaluates given candle and returns
IndicatorResult
source§fn over<T, S>(&mut self, inputs: S) -> Vec<IndicatorResult>
fn over<T, S>(&mut self, inputs: S) -> Vec<IndicatorResult>
Evaluates the State over the given sequence of candles and returns sequence of
IndicatorResult
s. Read moreAuto Trait Implementations§
impl<M> RefUnwindSafe for ChandeKrollStopInstance<M>
impl<M> Send for ChandeKrollStopInstance<M>
impl<M> Sync for ChandeKrollStopInstance<M>
impl<M> Unpin for ChandeKrollStopInstance<M>
impl<M> UnwindSafe for ChandeKrollStopInstance<M>
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, I> IndicatorInstanceDyn<T> for Iwhere
T: OHLCV,
I: IndicatorInstance + 'static,
impl<T, I> IndicatorInstanceDyn<T> for Iwhere
T: OHLCV,
I: IndicatorInstance + 'static,
source§fn next(&mut self, candle: &T) -> IndicatorResult
fn next(&mut self, candle: &T) -> IndicatorResult
Evaluates given candle and returns
IndicatorResult
source§fn over(&mut self, inputs: &dyn AsRef<[T]>) -> Vec<IndicatorResult>
fn over(&mut self, inputs: &dyn AsRef<[T]>) -> Vec<IndicatorResult>
Evaluates the State over the given sequence of candles and returns sequence of
IndicatorResult
s. Read moresource§fn config(&self) -> &dyn IndicatorConfigDyn<T>
fn config(&self) -> &dyn IndicatorConfigDyn<T>
Returns a reference to dynamically dispatched Configuration, associated with the current State