[Paper Review] How to Evaluate Trading Strategies: Single Agent Market Replay or Multiple Agent Interactive Simulation?
This paper proposes a unified simulation framework that enables both market replay and interactive agent-based simulation (IABS) for evaluating trading strategies within the same environment. By integrating a population of background trading agents (ZI agents) that react dynamically to the experimental strategy, the approach reveals that IABS produces more realistic, persistent price impacts—especially for large orders—compared to traditional market replay, which assumes a passive, unresponsive market.
We show how a multi-agent simulator can support two important but distinct methods for assessing a trading strategy: Market Replay and Interactive Agent-Based Simulation (IABS). Our solution is important because each method offers strengths and weaknesses that expose or conceal flaws in the subject strategy. A key weakness of Market Replay is that the simulated market does not substantially adapt to or respond to the presence of the experimental strategy. IABS methods provide an artificial market for the experimental strategy using a population of background trading agents. Because the background agents attend to market conditions and current price as part of their strategy, the overall market is responsive to the presence of the experimental strategy. Even so, IABS methods have their own weaknesses, primarily that it is unclear if the market environment they provide is realistic. We describe our approach in detail, and illustrate its use in an example application: The evaluation of market impact for various size orders.
Motivation & Objective
- To address the limitations of traditional market replay, where the simulated market does not respond to the experimental strategy, leading to overly optimistic performance estimates.
- To develop a simulation framework that supports both market replay and interactive agent-based simulation (IABS) for more robust strategy evaluation.
- To investigate whether IABS provides a more realistic environment for assessing market impact, especially for large orders, compared to standard backtesting.
- To evaluate the long-term price impact of large market orders under both passive (replay) and active (IABS) market conditions.
- To compare the stability and persistence of price changes after large orders in both simulation paradigms, using event study methodology.
Proposed method
- Adapt an existing interactive agent-based simulation (IABS) framework to also support market replay by replaying historical order book data in time-sequential fashion.
- Implement a population of background trading agents (ZI agents) with heterogeneous, stateful strategies that react to price changes and order flow.
- Use a limit order book (LOB) model with price/time priority matching and order cancellations to simulate realistic market microstructure dynamics.
- Introduce a single large market order as the experimental strategy and simulate its execution in both replay and IABS modes.
- Apply event study methodology to measure price impact by comparing price trajectories before and after the order in both environments.
- Use ZI agents with valuation functions and risk parameters (e.g., η) to model strategic behavior, including guaranteed execution at the current spread.
Experimental results
Research questions
- RQ1How does the market response to a large order differ between passive market replay and active interactive agent-based simulation?
- RQ2Does the IABS environment produce more persistent price impacts than traditional market replay, aligning better with established market impact models?
- RQ3To what extent do background agents in IABS adapt their behavior in response to the experimental strategy, altering market equilibrium?
- RQ4Can a unified simulation framework support both market replay and IABS evaluation without compromising realism or consistency?
- RQ5How do the dynamic behaviors of ZI agents—such as order cancellations and state-dependent valuations—affect the overall market response to large orders?
Key findings
- In market replay, prices quickly revert to baseline levels after a large order, suggesting a transient impact that may not reflect real market behavior.
- In IABS, prices stabilize at a new, persistent level after the order, indicating a longer-lasting or even permanent price impact, consistent with established market impact models.
- The ZI agents in IABS dynamically adjust their valuations and order placement based on changes in their holdings and market conditions, leading to a new market equilibrium.
- Even when ZI agents do not change their limit prices, their behavior shifts due to the spread and execution guarantees (via parameter η), altering market dynamics.
- The presence of responsive background agents in IABS leads to a more realistic and comprehensive evaluation of market impact than passive replay.
- The results suggest that IABS is better suited for evaluating strategies involving large orders, as it captures strategic market feedback that replay cannot.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.