Skip to main content

Module event

Module event 

Source
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§

AlertDeduplicator
Tracks event IDs already admitted so repeated recalculation (e.g. rollback/idempotent replay of the same bar) does not re-emit duplicate alerts downstream.
AlertEvent
An IndicatorAlert enriched with timestamp, instrument, timeframe, a stable event ID, and an explicit lifecycle phase, suitable for deduplication and cross-bar tracking.

Enums§

EventPhase
Lifecycle phase of a tracked setup/alert.