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.rslet 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