Struct yata::indicators::Kaufman[][src]

pub struct Kaufman {
    pub period1: PeriodType,
    pub period2: PeriodType,
    pub period3: PeriodType,
    pub filter_period: PeriodType,
    pub square_smooth: bool,
    pub k: ValueType,
    pub source: Source,
}

Kaufman Adaptive Moving Average (KAMA)

Links

1 value

  • KAMA value

Range of KAMA values is the same as the range of the source values.

1 signal

  • if filter_period is less or equal than 0, then returns signal when KAMA crosses source value. When source crosses KAMA upwards, returns full buy signal. When source crosses KAMA downwards, returns full sell signal. Otherwise returns no signal.

  • if filter_period is greater than 1, it uses same cross between source and KAMA, but with additional filtering using standard deviation.

Fields

period1: PeriodType

Volatility calculation period. Default is 10.

Range in [1; PeriodType::MAX).

period2: PeriodType

Fast period. Default is 2.

Range in [1; period3).

period3: PeriodType

Slow period. Default is 30.

Range in (period2; PeriodType::MAX).

filter_period: PeriodType

Filter period. Default is 10.

Range in [0; PeriodType::MAX)

square_smooth: bool

Apply double smoothing. Default is true.

k: ValueType

Standard deviation multiplier. Default is 0.3.

Range in (0.0; +inf)

source: Source

Source type. Default is Close

Trait Implementations

impl Clone for Kaufman[src]

impl Copy for Kaufman[src]

impl Debug for Kaufman[src]

impl Default for Kaufman[src]

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

impl IndicatorConfig for Kaufman[src]

type Instance = KaufmanInstance

Type of State

impl Serialize for Kaufman[src]

Auto Trait Implementations

impl RefUnwindSafe for Kaufman

impl Send for Kaufman

impl Sync for Kaufman

impl Unpin for Kaufman

impl UnwindSafe for Kaufman

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: for<'de> 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.