laguerre_rsi
Ehlers' Laguerre RSI: the share of upward steps among the steps between four Laguerre stages seeded with th…
laguerre_rsi
examples/site_showcase.rs// Ehlers' Laguerre RSI: the share of upward steps among the steps between four Laguerre stages seeded with the first close; no value until a stage has moved, and the previous value is kept while all stages are level
// Defaults of "laguerre_rsi" (see the indicator reference)
let params = HashMap::from([
("gamma".to_string(), 0.5),
("lower".to_string(), 0.2),
("upper".to_string(), 0.8),
]);
let mut indicator = build_checked("laguerre_rsi", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}