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