pub trait EmaIF { // Provided methods fn get_fast(&self) -> f64 { ... } fn get(&self) -> f64 { ... } fn get_slow(&self) -> f64 { ... } fn trend(&self) -> f64 { ... } }
API for observing EMA.
return the current value.
return a ratio of short / long statistics.