Skip to main content

ema

Function ema 

Source
pub fn ema(prices: &[f64], period: usize) -> Result<Vec<f64>, IndicatorError>
Expand description

Exponential Moving Average over a price slice. Returns a Vec of the same length; leading values are NaN until warm-up.