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

Michael Giegrich, Roel Oomen, Christoph Reisinger
9/10/2024
q-fin.TRcs.LGmath.OC

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{giegrich2024limit,
  title  = {Limit Order Book Simulation and Trade Evaluation with K-Nearest-Neighbor Resampling},
  author = {Michael Giegrich and Roel Oomen and Christoph Reisinger},
  year   = {2024},
  eprint = {2409.06514},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.06514v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.06514.svg)](https://codeofpaper.com/paper/2409.06514)

Discussion