anchored_vwap
Anchored VWAP Engine
anchored_vwap
examples/site_showcase.rs// Anchored VWAP Engine
// Defaults of "anchored_vwap" (see the indicator reference)
let params = HashMap::from([
("mult1".to_string(), 1.0),
("mult2".to_string(), 2.0),
]);
let mut indicator = build_checked("anchored_vwap", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}