nautilus_indicators::indicator

Trait MovingAverage

source
pub trait MovingAverage: Indicator {
    // Required methods
    fn value(&self) -> f64;
    fn count(&self) -> usize;
    fn update_raw(&mut self, value: f64);
}

Required Methods§

source

fn value(&self) -> f64

source

fn count(&self) -> usize

source

fn update_raw(&mut self, value: f64)

Trait Implementations§

source§

impl Debug for dyn MovingAverage + Send

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§