All books

Professional

Apps About Coach Log in Start reading

Quantitative Finance · Glossary

What is Event-driven backtest, simulated clock?

Also known as: event-driven backtest · simulated clock

Definition 17.1 Research Craft: Predictors, Backtests, Measurement, Portfolios · Chapter 17 — Event-Driven Backtests

An event-driven backtest processes a time-ordered stream of events (market data, order acknowledgements, fills, cancellations, corporate actions) one at a time, each changing the state of the strategy, its orders and its portfolio. Its simulated clock is the time of the event being processed; nothing may use information stamped later.

The architecture of firm.evbt: one queue of events ordered by time, kind and sequence number, a dispatcher, and handlers that may only schedule events in the future.
Figure 17.1. The architecture of firm.evbt: one queue of events ordered by time, kind and sequence number, a dispatcher, and handlers that may only schedule events in the future.
Read in context →