kestrel-chartkitv0.33.0

← All examples

elder_ray

Elder Ray Index

elder_ray

examples/site_showcase.rs
// Elder Ray Index (Bull/Bear Power)
// Defaults of "elder_ray" (see the indicator reference)
let params = HashMap::from([
    ("period".to_string(), 13.0),
]);
let mut indicator = build_checked("elder_ray", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Elder Ray Index (Bull/Bear Power). 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.Elder Ray Index (Bull/Bear Power). 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.
  • Oscillators
  • unit: Unitless