pub struct TRIXInstance<M: MovingAverageConstructor = MA> { /* private fields */ }Trait Implementations§
Source§impl<M: Clone + MovingAverageConstructor> Clone for TRIXInstance<M>
impl<M: Clone + MovingAverageConstructor> Clone for TRIXInstance<M>
Source§fn clone(&self) -> TRIXInstance<M>
fn clone(&self) -> TRIXInstance<M>
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<M: Debug + MovingAverageConstructor> Debug for TRIXInstance<M>
impl<M: Debug + MovingAverageConstructor> Debug for TRIXInstance<M>
Source§impl<'de, M> Deserialize<'de> for TRIXInstance<M>
impl<'de, M> Deserialize<'de> for TRIXInstance<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 TRIXInstance<M>
impl<M: MovingAverageConstructor> IndicatorInstance for TRIXInstance<M>
Source§fn next<T: OHLCV>(&mut self, candle: &T) -> IndicatorResult
fn next<T: OHLCV>(&mut self, candle: &T) -> IndicatorResult
Evaluates given candle and returns
IndicatorResultSource§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
IndicatorResults. Read moreAuto Trait Implementations§
impl<M> Freeze for TRIXInstance<M>
impl<M> RefUnwindSafe for TRIXInstance<M>
impl<M> Send for TRIXInstance<M>
impl<M> Sync for TRIXInstance<M>
impl<M> Unpin for TRIXInstance<M>
impl<M> UnwindSafe for TRIXInstance<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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
IndicatorResultSource§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
IndicatorResults. 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