kestrel-chartkitv0.33.0

← All examples

acc_dist

Accumulation / Distribution Line

acc_dist

examples/site_showcase.rs
// Accumulation / Distribution Line
// Defaults of "acc_dist" (see the indicator reference)
let params = HashMap::new();
let mut indicator = build_checked("acc_dist", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Accumulation / Distribution Line. 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.Accumulation / Distribution Line. 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.
  • Volume
  • unit: Volume