vwap_regime
VWAP as a regime reading: the distance of the close from the rolling VWAP in ATRs as value, with vwap, slop…
vwap_regime
examples/site_showcase.rs// VWAP as a regime reading: the distance of the close from the rolling VWAP in ATRs as value, with vwap, slope_atr, slope_state (-2..2), z_score, cross_frequency and price_persistence as extras; needs real volume
// Defaults of "vwap_regime" (see the indicator reference)
let params = HashMap::from([
("atr_len".to_string(), 14.0),
("flat_threshold".to_string(), 0.1),
("regime_window".to_string(), 20.0),
("slope_lookback".to_string(), 20.0),
("strong_threshold".to_string(), 0.3),
("window".to_string(), 390.0),
]);
let mut indicator = build_checked("vwap_regime", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}Not yet verified: no independent second implementation yet.