alma
Arnaud Legoux Moving Average
alma
examples/site_showcase.rs// Arnaud Legoux Moving Average (Gaussian-weighted average of the last period closes)
// Defaults of "alma" (see the indicator reference)
let params = HashMap::from([
("offset".to_string(), 0.85),
("period".to_string(), 9.0),
("sigma".to_string(), 6.0),
]);
let mut indicator = build_checked("alma", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}Not yet verified: no independent second implementation yet.