kestrel-chartkitv0.43.0

← All examples

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", &params)?;

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.

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. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 0 alerts in view, the latest as markers.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. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 0 alerts in view, the latest as markers.
  • Moving averages, bands and trend lines
  • unit: Price