ppo
Percentage Price Oscillator
ppo
examples/site_showcase.rs// Percentage Price Oscillator
// Defaults of "ppo" (see the indicator reference)
let params = HashMap::from([
("fast_period".to_string(), 12.0),
("signal_period".to_string(), 9.0),
("slow_period".to_string(), 26.0),
]);
let mut indicator = build_checked("ppo", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}