kestrel-chartkitv0.41.0

← All examples

Composite signal

MACD, Vortex and Trend Quality scored on every bar and weighed against the market regime, on synthetic 4-hour candles of a fictitious CASOON share. The lower pane shows the composite score; a marker shows where a Buy or Sell trigger starts, labelled with the score. Only a ClearToTrade grade produces a trigger, so a direction against the regime stays silent.

Composite signal

examples/site_showcase.rs
let subscores = vec![
    score_indicator("macd", &macd_out, &macd.alerts()),
    score_indicator("vortex", &vortex_out, &vortex.alerts()),
    score_indicator("trend_quality", &tq_out, &tq.alerts()),
];
let regime = classify_regime(&bars[..=i], adx_out.value, atr_out.value / 100.0);
let signal = aggregate_subscores(subscores, None, regime, Vec::new(), Some(bar), atr_out.extra["raw"]);
// signal.trigger, signal.score, signal.permission
Composite signal · CASOON (fictitious) 4hMACD, Vortex and Trend Quality scored on every bar and weighed against the market regime, on synthetic 4-hour candles of a fictitious CASOON share. The lower pane shows the composite score; a marker shows where a Buy or Sell trigger starts, labelled with the score. Only a ClearToTrade grade produces a trigger, so a direction against the regime stays silent.Composite signal · CASOON (fictitious) 4h8090100110120130Price−1.0−0.50.00.51.02026-01-052026-01-122026-01-192026-01-26ScoreCASOON (fictitious) (hollow: rising, filled: falling)composite scoreBuy +0.58: 2026-01-10 08:00, 112.61Sell -0.45: 2026-01-15 08:00, 116.04Sell -0.40: 2026-01-26 04:00, 87.06Buy +0.58Sell -0.45Sell -0.400: 0.000
  • score_indicator
  • aggregate_subscores
  • classify_regime