pvt
Price Volume Trend
pvt
examples/site_showcase.rs// Price Volume Trend (volume weighted by the relative price change, accumulated)
// Defaults of "pvt" (see the indicator reference)
let params = HashMap::new();
let mut indicator = build_checked("pvt", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}