bos_choch
BOS and CHoCH Market Structure Engine
bos_choch
examples/site_showcase.rs// BOS and CHoCH Market Structure Engine
// Defaults of "bos_choch" (see the indicator reference)
let params = HashMap::from([
("pivot_len".to_string(), 5.0),
]);
let mut indicator = build_checked("bos_choch", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}