Paper: arXiv 2409.06514
Abstract
In this paper, we show how $K$-nearest neighbor ($K$-NN) resampling, an off-policy evaluation method proposed in \cite{“giegrich2023k”}, can be applied to simulate limit order book (LOB) markets and how it can be used to evaluate and calibrate trading strategies. Using historical LOB data, we demonstrate that our simulation method is capable of recreating realistic LOB dynamics and that synthetic trading within the simulation leads to a market impact in line with the corresponding literature. Compared to other statistical LOB simulation methods, our algorithm has theoretical convergence guarantees under general conditions, does not require optimization, is easy to implement and computationally efficient. Furthermore, we show that in a benchmark comparison our method outperforms a deep learning-based algorithm for several key statistics. In the context of a LOB with pro-rata type matching, we demonstrate how our algorithm can calibrate the size of limit orders for a liquidation strategy. Finally, we describe how $K$-NN resampling can be modified for choices of higher dimensional state spaces.
Complexity vs Empirical Score
- Math Complexity: 7.5/10
- Empirical Rigor: 8.0/10
- Quadrant: Holy Grail — high math complexity, high empirical rigor
Why this score: The paper utilizes advanced mathematical concepts from stochastic calculus and metric space theory for K-NN resampling with convergence proofs, while demonstrating rigorous empirical validation using historical LOB data, outperforming deep learning benchmarks and providing specific calibration examples for trading strategies.
Research Flowchart
flowchart TD
A["Research Goal<br>Simulate LOB & Evaluate/Calibrate Trading<br>using K-NN Resampling"] --> B["Data & Inputs"]
B --> C["Methodology: K-NN Resampling"]
subgraph C ["Methodology: K-NN Resampling"]
direction LR
C1["Identify State Space"] --> C2["Find K-Nearest<br>Historical Neighbors"] --> C3["Resample Future<br>Transitions/Outcomes"]
end
C --> D["Computational Process"]
subgraph D ["Computational Process"]
direction LR
D1["Market Simulation<br>Recreate LOB Dynamics"] --> D2["Strategy Evaluation<br>Simulate Synthetic Trading"]
end
D --> E["Key Findings & Outcomes"]
subgraph E ["Key Findings & Outcomes"]
E1["Validated Market Impact<br>Matches Literature"]
E2["Outperformed Deep Learning<br>in Benchmark Stats"]
E3["Calibrated Liquidation<br>Strategy Order Sizes"]
E4["Extensible to<br>Higher Dimensional States"]
end
Cited References (49)
- Limit Order Book Simulation with Generative Adversarial Networks (2023)
- Inferring term rates from SOFR futures prices (2019)
- Three-Month SOFR (2024)
- Generative AI for End-to-End Limit Order Book Modelling: A Token-Level Autoregressive Generative Model of Message Flow Using a Deep State Space Network (2023)
- Combining parametric and nonparametric models for off-policy evaluation (2019)
- Handbook of Price Impact Modeling (2023)
- No-dynamic-arbitrage and market impact (2010)
- Market impacts and the life cycle of investors orders (2015)
and 41 more
- Market impact: A systematic study of limit orders (2017)
- $ K $-Nearest-Neighbor Resampling for Off-Policy Evaluation in Stochastic Control (2023) — link
- Universal features of price formation in financial markets: perspectives from deep learning (2019)
- Market orders and market efficiency (1997)
- Limit Order Book Simulations: A Review — → 2402.17359
- Recent advances in reinforcement learning in finance (2023)
- A stochastic model for order book dynamics (2010)
- A mathematical approach to order book modeling (2013)
- Price dynamics in a Markovian limit order market (2013)
- A law of large numbers for limit order books (2017)
- The role of volume in order book dynamics: a multivariate Hawkes process analysis (2017)
- Conditional Generators for Limit Order Book Environments: Explainability, Challenges, and Robustness — → 2306.12806
- A generative model of a limit order book using recurrent neural networks (2023)
- Enhancing trading strategies with order book signals (2018)
- Pro-rata matching and one-tick markets (2008)
- Optimal high-frequency trading in a pro rata microstructure with predictive information (2015)
- A distribution-free theory of nonparametric regression (2002)
- Statistical properties of stock order books: empirical results and models (2002)
- Hawkes processes in finance (2015)
- Order-book modeling and market making strategies (2018)
- State-dependent Hawkes processes and their application to limit order book modelling (2022)
- Simulating and analyzing order book data: The queue-reactive model (2015)
- An agent based model of the E-Mini S&P 500 applied to Flash Crash analysis (2012)
- Abides: Towards high-fidelity market simulation for AI research (2019) — link
- Fast agent-based simulation framework of limit order books with applications to pro-rata markets and the study of latency effects (2020) — link
- Neural Stochastic Agent-Based Limit Order Book Simulation: A Hybrid Methodology (2023)
- Modeling high-frequency order flow imbalance by functional limit theorems for two-sided risk processes (2015)
- Ergodicity and diffusivity of Markovian order book models: a general framework (2017)
- A stochastic partial differential equation model for limit order book dynamics (2021)
- Intra-Day Price Simulation with Generative Adversarial Modelling of the Order Flow (2021)
- Generating realistic stock market order streams (2020)
- The Limit Order Book Recreation Model (LOBRM): An Extended Analysis (2021)
- Model-based gym environments for limit order book trading (2022) — link
- The unbalanced G romov W asserstein distance: Conic formulation and relaxation (2021)
- Anomalous price impact and the critical nature of liquidity in financial markets (2011)
- Active portfolio management (2000)
- Market impact and trading profile of hidden orders in stock markets (2009)
- The Elements of Statistical Learning (2009)
- The market impact of a limit order (2012)
- The price impact of order book events: market orders, limit orders and cancellations (2012)
- Neural networks for option pricing and hedging: a literature review (2019) — link
2 of 49 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2518 linked papers.