kestrel-chartkitv0.33.0

← All examples

wyckoff

Wyckoff accumulation/distribution state machine: range-lock, Phases A-E, Spring/UTAD, SOS/SOW/LPS/LPSY, seq…

wyckoff

examples/site_showcase.rs
// Wyckoff accumulation/distribution state machine: range-lock, Phases A-E, Spring/UTAD, SOS/SOW/LPS/LPSY, sequence validation and Cause/Quality scoring
// Defaults of "wyckoff" (see the indicator reference)
let params = HashMap::from([
    ("min_range_bars".to_string(), 6.0),
    ("range_atr_max".to_string(), 3.0),
    ("range_lookback".to_string(), 20.0),
]);
let mut indicator = build_checked("wyckoff", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Wyckoff accumulation/distribution state machine: range-lock, Phases A-E, Spring/UTAD, SOS/SOW/LPS/LPSY, sequence validation and Cause/Quality scoring. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 2 alerts in view, the latest as markers.Wyckoff accumulation/distribution state machine: range-lock, Phases A-E, Spring/UTAD, SOS/SOW/LPS/LPSY, sequence validation and Cause/Quality scoring. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 2 alerts in view, the latest as markers.
  • Market structure and patterns
  • unit: Unitless