kestrel-chartkitv0.33.0

← All examples

adaptive_chandelier

Chandelier Exit ratchet extended with adaptive multiplier, body-filtered weak flips, and bull/bear trap det…

adaptive_chandelier

examples/site_showcase.rs
// Chandelier Exit ratchet extended with adaptive multiplier, body-filtered weak flips, and bull/bear trap detection (use AdaptiveChandelierEngine::new directly for use_close_extremes=false or simple_adaptive=true; this f64-only entry uses the documented defaults for both)
// Defaults of "adaptive_chandelier" (see the indicator reference)
let params = HashMap::from([
    ("atr_mult".to_string(), 4.5),
    ("body_filter_atr".to_string(), 0.8),
    ("danger_dist_atr".to_string(), 0.35),
    ("length".to_string(), 30.0),
    ("warn_dist_atr".to_string(), 0.75),
]);
let mut indicator = build_checked("adaptive_chandelier", &params)?;

for bar in &bars {
    if let Some(output) = indicator.on_bar(bar) {
        // output.value, output.extra[...], indicator.alerts()
    }
}
Chandelier Exit ratchet extended with adaptive multiplier, body-filtered weak flips, and bull/bear trap detection (use AdaptiveChandelierEngine::new directly for use_close_extremes=false or simple_adaptive=true; this f64-only entry uses the documented defaults for both). Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 14 alerts in view, the latest as markers.Chandelier Exit ratchet extended with adaptive multiplier, body-filtered weak flips, and bull/bear trap detection (use AdaptiveChandelierEngine::new directly for use_close_extremes=false or simple_adaptive=true; this f64-only entry uses the documented defaults for both). Default parameters on synthetic 4-hour bars of a fictitious CASOON share (invented prices), the last 150 bars; 14 alerts in view, the latest as markers.
  • Volatility and trend strength
  • unit: Price