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§