kestrel-chartkitv0.49.0

← All examples

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

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
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. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 7 alerts in view, the latest as markers.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. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 7 alerts in view, the latest as markers.
  • Oscillators
  • unit: Ratio