[][src]Enum cxmr_ta::Indicator

pub enum Indicator {
    AverageTrueRange,
    EfficiencyRatio,
    ExponentialMovingAverage,
    FastStochastic,
    Maximum,
    Minimum,
    MoneyFlowIndex,
    OnBalanceVolume,
    RateOfChange,
    RelativeStrengthIndex,
    SimpleMovingAverage,
    SlowStochastic,
    TrueRange,
    Spread,
    MovingAverageConvergenceDivergence,
    ClosePrice,
    AskRate,
    BidRate,
    EntryRate,
    ExitRate,
}

Operation is technical analysis or orderbook method.

Variants

AverageTrueRange

Average true range (ATR).

EfficiencyRatio

Kaufman's Efficiency Ratio (ER).

ExponentialMovingAverage

An exponential moving average (EMA), also known as an exponentially weighted moving average (EWMA).

FastStochastic

Fast stochastic oscillator.

Maximum

Returns the highest value in a given time frame.

Minimum

Returns the lowest value in a given time frame.

MoneyFlowIndex

Money Flow Index (MFI).

OnBalanceVolume

On Balance Volume (OBV).

RateOfChange

Rate of Change (ROC)

RelativeStrengthIndex

The relative strength index (RSI).

SimpleMovingAverage

Simple moving average (SMA).

SlowStochastic

Slow stochastic oscillator.

TrueRange

The range of a day's trading is simply high - low. The true range extends it to yesterday's closing price if it was outside of today's range.

Spread

Spread in the orderbook.

MovingAverageConvergenceDivergence

Moving average converge divergence (MACD).

ClosePrice

Closing price.

AskRate

Ask rate in the orderbook.

BidRate

Bid rate in the orderbook.

EntryRate

Market entry rate.

ExitRate

Market exit rate.

Methods

impl Indicator[src]

pub fn parameters(&self) -> usize[src]

Returns amount of expected parameters.

pub fn descriptors(&self) -> Option<&'static [ParamDescriptor]>[src]

Returns descriptors of expected parameters. It can be None if doesn't expect any arguments

pub fn construct<S: State>(
    &self,
    params: Option<&Params>
) -> Result<BoxIndicator<S>, Error>
[src]

Constructs technical analysis operator using parameters. Returns error only if amount of parameters is wrong.

pub fn into_op(self) -> Result<Operation, Error>[src]

Constructs indicator operation with params.

pub fn with_params(self, params: Params) -> Result<Operation, Error>[src]

Constructs indicator operation with params.

Trait Implementations

impl Clone for Indicator[src]

impl Copy for Indicator[src]

impl Debug for Indicator[src]

impl<'de> Deserialize<'de> for Indicator[src]

impl Eq for Indicator[src]

impl<'_> From<&'_ Indicator> for Marker[src]

impl FromStr for Indicator[src]

type Err = ()

The associated error which can be returned from parsing.

impl Hash for Indicator[src]

impl Ord for Indicator[src]

impl PartialEq<Indicator> for Indicator[src]

impl PartialOrd<Indicator> for Indicator[src]

impl Serialize for Indicator[src]

impl StructuralEq for Indicator[src]

impl StructuralPartialEq for Indicator[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.