jma
An approximation of the Jurik moving average, following an openly published formula; it is not the product …
jma
examples/site_showcase.rs// An approximation of the Jurik moving average, following an openly published formula; it is not the product of Jurik Research, whose original is not public, and does not reproduce its values
// Defaults of "jma" (see the indicator reference)
let params = HashMap::from([
("period".to_string(), 14.0),
("phase".to_string(), 0.0),
("power".to_string(), 2.0),
]);
let mut indicator = build_checked("jma", ¶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.