coil_release
Coil Release: coil strength from symbolic complexity, box-counting fractal dimension and efficiency over le…
coil_release
examples/site_showcase.rs// Coil Release: coil strength from symbolic complexity, box-counting fractal dimension and efficiency over len bars; value = setup score 0..1 (coil score times release dynamics); trend context = EMA(ema_len) slope over slope_len bars in ATR units on the chart timeframe (originally a higher timeframe); extra: complexity, fractal_dim, efficiency, chop, coil, coil_score, release_dyn, trend, corr_high, corr_low, was_base; alerts bull/bear_release (first break of the break_len band with the trend) and bull/bear_base_break (break against the trend out of a base; prefix = expected move)
// Defaults of "coil_release" (see the indicator reference)
let params = HashMap::from([
("break_len".to_string(), 12.0),
("chop_veto".to_string(), 61.8),
("cooldown".to_string(), 8.0),
("ema_len".to_string(), 55.0),
("len".to_string(), 34.0),
("slope_len".to_string(), 5.0),
("thr_base".to_string(), 0.55),
("thr_cont".to_string(), 0.45),
]);
let mut indicator = build_checked("coil_release", ¶ms)?;
for bar in &bars {
if let Some(output) = indicator.on_bar(bar) {
// output.value, output.extra[...], indicator.alerts()
}
}