kestrel-chartkitv0.33.0

← All examples

liquidity_sweeps

Liquidity Sweeps and EQH/EQL Detector

liquidity_sweeps

examples/site_showcase.rs
// Liquidity Sweeps and EQH/EQL Detector
// Defaults of "liquidity_sweeps" (see the indicator reference)
let params = HashMap::from([
    ("pivot_len".to_string(), 5.0),
    ("tolerance_pct".to_string(), 0.2),
]);
let mut indicator = build_checked("liquidity_sweeps", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Liquidity Sweeps and EQH/EQL Detector. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 3 alerts in view, the latest as markers.Liquidity Sweeps and EQH/EQL Detector. Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 3 alerts in view, the latest as markers.
  • Market structure and patterns
  • unit: Unitless