kestrel-chartkitv0.33.0

← All examples

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", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Balance of Power. 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.Balance of Power. 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.
  • Oscillators
  • unit: Ratio