Struct yata::indicators::MomentumIndexInstance
source · pub struct MomentumIndexInstance { /* private fields */ }
Trait Implementations§
source§impl Clone for MomentumIndexInstance
impl Clone for MomentumIndexInstance
source§fn clone(&self) -> MomentumIndexInstance
fn clone(&self) -> MomentumIndexInstance
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 Debug for MomentumIndexInstance
impl Debug for MomentumIndexInstance
source§impl<'de> Deserialize<'de> for MomentumIndexInstance
impl<'de> Deserialize<'de> for MomentumIndexInstance
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 IndicatorInstance for MomentumIndexInstance
impl IndicatorInstance for MomentumIndexInstance
§type Config = MomentumIndex
type Config = MomentumIndex
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 RefUnwindSafe for MomentumIndexInstance
impl Send for MomentumIndexInstance
impl Sync for MomentumIndexInstance
impl Unpin for MomentumIndexInstance
impl UnwindSafe for MomentumIndexInstance
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