Expand description
Event/alert enrichment: timestamps, instrument/timeframe context, stable IDs, deduplication. Event and alert enrichment model.
crate::indicator::IndicatorAlert stays a lightweight per-bar signal (kind/note/strength)
so every existing indicator keeps constructing it unchanged. AlertEvent is the layer a
runner/composition graph wraps around it once timestamp, instrument, and timeframe context is
known, adding a stable event ID, an explicit state phase, and deduplication support.
Structs§
- Alert
Deduplicator - Tracks event IDs already admitted so repeated recalculation (e.g. rollback/idempotent replay of the same bar) does not re-emit duplicate alerts downstream.
- Alert
Event - An
IndicatorAlertenriched with timestamp, instrument, timeframe, a stable event ID, and an explicit lifecycle phase, suitable for deduplication and cross-bar tracking.
Enums§
- Event
Phase - Lifecycle phase of a tracked setup/alert.