kestrel-chartkitv0.43.0

← All examples

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", &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.

Arnaud Legoux Moving Average (Gaussian-weighted average of the last period closes). 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.Arnaud Legoux Moving Average (Gaussian-weighted average of the last period closes). 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