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