[][src]Trait cxmr_ta_core::Next

pub trait Next<T> {
    fn next(&mut self, input: &T) -> f64;
}

Consumes a data item of type T and returns Output.

Typically T can be f64 or a struct similar to DataItem, that implements traits necessary to calculate value of a particular indicator.

In most cases Output is f64, but sometimes it can be different. For example for MACD it is (f64, f64, f64) since MACD returns 3 values.

Required methods

fn next(&mut self, input: &T) -> f64

Loading content...

Implementors

impl<T: Close + Volume> Next<T> for OnBalanceVolume[src]

impl<T: Close> Next<T> for EfficiencyRatio[src]

impl<T: Close> Next<T> for ExponentialMovingAverage[src]

impl<T: Close> Next<T> for RateOfChange[src]

impl<T: Close> Next<T> for RelativeStrengthIndex[src]

impl<T: Close> Next<T> for SimpleMovingAverage[src]

impl<T: Close> Next<T> for StandardDeviation[src]

impl<T: High + Low + Close + Volume> Next<T> for MoneyFlowIndex[src]

impl<T: High + Low + Close> Next<T> for AverageTrueRange[src]

impl<T: High + Low + Close> Next<T> for FastStochastic[src]

impl<T: High + Low + Close> Next<T> for SlowStochastic[src]

impl<T: High + Low + Close> Next<T> for TrueRange[src]

impl<T: High> Next<T> for Maximum[src]

impl<T: Low> Next<T> for Minimum[src]

Loading content...