{"title":"Limit Order Book Simulation and Trade Evaluation with $K$-Nearest-Neighbor Resampling","authors":"Michael Giegrich, Roel Oomen, Christoph Reisinger","doi":"arxiv-2409.06514","DOIUrl":null,"url":null,"abstract":"In this paper, we show how $K$-nearest neighbor ($K$-NN) resampling, an\noff-policy evaluation method proposed in \\cite{giegrich2023k}, can be applied\nto simulate limit order book (LOB) markets and how it can be used to evaluate\nand calibrate trading strategies. Using historical LOB data, we demonstrate\nthat our simulation method is capable of recreating realistic LOB dynamics and\nthat synthetic trading within the simulation leads to a market impact in line\nwith the corresponding literature. Compared to other statistical LOB simulation\nmethods, our algorithm has theoretical convergence guarantees under general\nconditions, does not require optimization, is easy to implement and\ncomputationally efficient. Furthermore, we show that in a benchmark comparison\nour method outperforms a deep learning-based algorithm for several key\nstatistics. In the context of a LOB with pro-rata type matching, we demonstrate\nhow our algorithm can calibrate the size of limit orders for a liquidation\nstrategy. Finally, we describe how $K$-NN resampling can be modified for\nchoices of higher dimensional state spaces.","PeriodicalId":501340,"journal":{"name":"arXiv - STAT - Machine Learning","volume":"95 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-09-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"arXiv - STAT - Machine Learning","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/arxiv-2409.06514","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
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.