kestrel-chartkitv0.33.0

← All examples

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", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Relative Volume at Time (volume against the same time of day on previous days, regular and cumulative). Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 0 alerts in view, the latest as markers.Relative Volume at Time (volume against the same time of day on previous days, regular and cumulative). Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 0 alerts in view, the latest as markers.
  • Volume
  • unit: Ratio