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", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}