dema
Double Exponential Moving Average
dema
examples/site_showcase.rs// Double Exponential Moving Average
// Defaults of "dema" (see the indicator reference)
let params = HashMap::from([
("period".to_string(), 20.0),
]);
let mut indicator = build_checked("dema", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}