English

Limit Order Book Simulation and Trade Evaluation with $K$-Nearest-Neighbor Resampling

Trading and Market Microstructure 2024-09-11 v1 Machine Learning Optimization and Control Statistical Finance Machine Learning

Abstract

In this paper, we show how KK-nearest neighbor (KK-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 KK-NN resampling can be modified for choices of higher dimensional state spaces.

Keywords

Cite

@article{arxiv.2409.06514,
  title  = {Limit Order Book Simulation and Trade Evaluation with $K$-Nearest-Neighbor Resampling},
  author = {Michael Giegrich and Roel Oomen and Christoph Reisinger},
  journal= {arXiv preprint arXiv:2409.06514},
  year   = {2024}
}
R2 v1 2026-06-28T18:39:55.636Z