kestrel-chartkitv0.33.0

← All examples

zone_rejection

Failed breakout at a confirmed pivot-cluster zone: wick through support/resistance, close back; extra["wick…

zone_rejection

examples/site_showcase.rs
// Failed breakout at a confirmed pivot-cluster zone: wick through support/resistance, close back; extra["wick"] is the wick tip (natural stop)
// Defaults of "zone_rejection" (see the indicator reference)
let params = HashMap::from([
    ("atr_len".to_string(), 14.0),
    ("max_width_atr".to_string(), 2.0),
    ("min_touches".to_string(), 2.0),
    ("pivot_len".to_string(), 5.0),
    ("tolerance_atr".to_string(), 0.25),
]);
let mut indicator = build_checked("zone_rejection", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Failed breakout at a confirmed pivot-cluster zone: wick through support/resistance, close back; extra["wick"] is the wick tip (natural stop). 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.Failed breakout at a confirmed pivot-cluster zone: wick through support/resistance, close back; extra["wick"] is the wick tip (natural stop). 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.
  • Market structure and patterns
  • unit: Unitless