rvat
Relative Volume at Time
rvat
examples/site_showcase.rs// Relative Volume at Time (volume against the same time of day on previous days, regular and cumulative)
// Defaults of "rvat" (see the indicator reference)
let params = HashMap::from([
("bar_seconds".to_string(), 60.0),
("day_start_offset".to_string(), 0.0),
("days".to_string(), 10.0),
]);
let mut indicator = build_checked("rvat", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}