true_range
True Range in price units
true_range
examples/site_showcase.rs// True Range in price units
// Defaults of "true_range" (see the indicator reference)
let params = HashMap::new();
let mut indicator = build_checked("true_range", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}