bop
Balance of Power
bop
examples/site_showcase.rs// Balance of Power
// Defaults of "bop" (see the indicator reference)
let params = HashMap::from([
("period".to_string(), 14.0),
]);
let mut indicator = build_checked("bop", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}