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", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}