Trait splr::primitive::ema::EmaIF

source ·
pub trait EmaIF {
    // Provided methods
    fn get_fast(&self) -> f64 { ... }
    fn get(&self) -> f64 { ... }
    fn get_slow(&self) -> f64 { ... }
    fn trend(&self) -> f64 { ... }
}
Expand description

API for observing EMA.

Provided Methods§

source

fn get_fast(&self) -> f64

return the current value.

source

fn get(&self) -> f64

return the current value.

source

fn get_slow(&self) -> f64

source

fn trend(&self) -> f64

return a ratio of short / long statistics.

Implementors§

source§

impl EmaIF for Ema2

source§

impl EmaIF for Ema

source§

impl EmaIF for EmaSU

source§

impl EmaIF for EmaView

source§

impl<const N: usize> EmaIF for Ewa2<N>

source§

impl<const N: usize> EmaIF for Ewa<N>