kestrel-chartkitv0.33.0

← All examples

efi

Elder's Force Index

efi

examples/site_showcase.rs
// Elder's Force Index (price change times volume, EMA-smoothed)
// Defaults of "efi" (see the indicator reference)
let params = HashMap::from([
    ("ema_len".to_string(), 13.0),
]);
let mut indicator = build_checked("efi", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Elder's Force Index (price change times volume, EMA-smoothed). 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's Force Index (price change times volume, EMA-smoothed). 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.
  • Volume
  • unit: Unitless