rma
Wilder's smoothed moving average
rma
examples/site_showcase.rs// Wilder's smoothed moving average (alpha = 1/period, seeded with the mean of the first period closes)
// Defaults of "rma" (see the indicator reference)
let params = HashMap::from([
("period".to_string(), 14.0),
]);
let mut indicator = build_checked("rma", ¶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.