How is this different from complex event processing (CEP)? High frequency trading has been using this from day 1.
The real trick is working with historical events and fetch them from disk, otherwise your reasoning time window is restricted to whatever fits in RAM.