kestrel-chartkitv0.43.0

← All examples

super_smoother

Ehlers' SuperSmoother, a 2-pole Butterworth low-pass filter

super_smoother

examples/site_showcase.rs
// Ehlers' SuperSmoother, a 2-pole Butterworth low-pass filter
// Defaults of "super_smoother" (see the indicator reference)
let params = HashMap::from([
    ("period".to_string(), 10.0),
]);
let mut indicator = build_checked("super_smoother", &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.

Ehlers' SuperSmoother, a 2-pole Butterworth low-pass filter. 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.Ehlers' SuperSmoother, a 2-pole Butterworth low-pass filter. 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