kestrel-chartkitv0.33.0

← All examples

pivot_sets

Multi-Pivot Set Engine

pivot_sets

examples/site_showcase.rs
// Multi-Pivot Set Engine
// Defaults of "pivot_sets" (see the indicator reference)
let params = HashMap::new();
let mut indicator = build_checked("pivot_sets", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Multi-Pivot Set Engine. 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.Multi-Pivot Set Engine. 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.
  • Market structure and patterns
  • unit: Price