KB / alert
Breadth Reversal (Bullish)
Last verified
Auto-generated. This article is rebuilt from
app/signals/config/alert_thresholds.jsonbyscripts/build_alerts_kb.py. Edit the alert config and re-run the script — do not edit this file directly.
Breadth Reversal (Bullish)
Alert ID: BREADTH_REVERSAL
Category: breadth
Cross-detection: yes
Severity
INFO — positive signal or notable event; no action needed
Trigger condition
{
"field": "pct_above_50sma",
"op": "gte",
"value": 50,
"prev_op": "lt",
"prev_value": 50
}
pct_above_50sma >= 50
Previous read must have satisfied pct_above_50sma < 50 (cross-detection: fires only on the transition, not while the condition persists).
Cross-detection alerts fire only on the transition into the trigger state — the condition must have been false on the previous evaluation. Persistent states do not re-fire.
Message template
Breadth crossed above 50% ({pct_above_50sma:.0f}% >50d SMA) — participation broadening, bullish reversal signal.
Rendered with the current signals dict via Python str.format. Placeholders that fail to resolve fall back to the raw template (see _format_message in app/signals/alerts.py).
Cooldown / dedup
- Cooldown: none. Re-evaluation on every cycle.
- Dedup: at most one
active(oracknowledged) row peralert_idat a time. Re-firing while active updatesfired_atand the message but keeps the originalfirst_fired_at. - Cross-detection: does not auto-resolve when the condition clears — the alert row stays as the historical record of the transition itself.
Notifies
- Active alert feed (
/api/v1/alerts/active,/alerts/summary). - SSE stream (
/api/v1/agents/stream) for real-time consumers. alert_firedwebhook on first fire.alert_resolvedwebhook when the condition clears (non-cross-detection alerts only).
See also
- Signal fields referenced:
pct_above_50sma(no dedicated KB article yet — see /humans#signal-reference). - Alert reference (legacy monolith)
- Live alerts feed