Simulation and estimation of an agent-based market-model with a matching engine

An agent-based model with interacting low frequency liquidity takers inter-mediated by high-frequency liquidity providers acting collectively as market makers can be used to provide realistic simulated price impact curves. This is possible when agent-based model interactions occur asynchronously via order matching using a matching engine in event time to replace sequential calendar time market clearing. Here the matching engine infrastructure has been modified to provide a continuous feed of order confirmations and updates as message streams in order to conform more closely to live trading environments. The resulting trade and quote message data from the simulations are then aggregated, calibrated and visualised. Various stylised facts are presented along with event visualisations and price impact curves. We argue that additional realism in modelling can be achieved with a small set of agent parameters and simple interaction rules once interactions are reactive, asynchronous and in event time. We argue that the reactive nature of market agents may be a fundamental property of financial markets and when accounted for can allow for parsimonious modelling without recourse to additional sources of noise.

[1]  Peter Winker,et al.  A global optimization heuristic for estimating agent based models , 2003, Comput. Stat. Data Anal..

[2]  Tim Gebbie,et al.  Can agent-based models probe market microstructure? , 2016, Physica A: Statistical Mechanics and its Applications.

[3]  M. Mézard,et al.  Statistical Properties of Stock Order Books: Empirical Results and Models , 2002 .

[4]  F. Lillo,et al.  Econophysics: Master curve for price-impact function , 2003, Nature.

[5]  Eric Bonabeau,et al.  Agent-based modeling: Methods and techniques for simulating human systems , 2002, Proceedings of the National Academy of Sciences of the United States of America.

[6]  Paul R. Milgrom,et al.  Bid, ask and transaction prices in a specialist market with heterogeneously informed traders , 1985 .

[7]  Kwangwon Ahn,et al.  Agent-based models in financial market studies , 2018, Journal of Physics: Conference Series.

[8]  Carl Hewitt,et al.  A Universal Modular ACTOR Formalism for Artificial Intelligence , 1973, IJCAI.

[9]  B. LeBaron Building the Santa Fe Artificial Stock Market , 2002 .

[10]  T. W. Epps Comovements in Stock Prices in the Very Short Run , 1979 .

[11]  T. Gebbie,et al.  The Problem of Calibrating an Agent-Based Model of High-Frequency Trading , 2016, 1606.01495.

[12]  Carl Chiarella,et al.  Heterogeneity, Market Mechanisms, and Asset Price Dynamics , 2008 .

[13]  Tobias Preis,et al.  Multi-Agent–Based Order Book Model of Financial Markets , 2006 .

[14]  R. Cont Empirical properties of asset returns: stylized facts and statistical issues , 2001 .

[15]  Stacy Williams,et al.  Limit order books , 2010, 1012.0349.

[16]  Tim Gebbie,et al.  CoinTossX: An open-source low-latency high-throughput matching engine , 2021, ArXiv.

[17]  Marcos Lopez de Prado,et al.  Algorithmic and High Frequency Trading , 2016 .

[18]  F. Abergel,et al.  Econophysics review: I. Empirical facts , 2011 .

[19]  Philippe Mathieu,et al.  On the Design of Agent-Based Artificial Stock Markets , 2011, ICAART.

[20]  Gopikrishnan,et al.  Economic fluctuations and anomalous diffusion , 2000, Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics.

[21]  Roberto Dieci,et al.  Heterogeneous Agent Models in Finance , 2018 .

[22]  Chester Spatt,et al.  An Empirical Analysis of the Limit Order Book and the Order Flow in the Paris Bourse , 1995 .

[23]  J. Geweke,et al.  THE ESTIMATION AND APPLICATION OF LONG MEMORY TIME SERIES MODELS , 1983 .

[24]  Jean Nuyts,et al.  Inference about the Tail of a Distribution: Improvementon the Hill Estimator , 2010, Int. J. Math. Math. Sci..

[25]  The Epps effect under alternative sampling schemes , 2020, 2011.11281.

[26]  Marco Raberto,et al.  A multi-assets artificial stock market with zero-intelligence traders , 2011 .

[27]  Mohandas V.P,et al.  Implementing an agent based artificial stock market model in JADE - an illustration , 2013 .

[28]  C. Chiarella,et al.  MEAN VARIANCE PREFERENCES, EXPECTATIONS FORMATION, AND THE DYNAMICS OF RANDOM ASSET PRICES , 2000 .

[29]  F. Abergel,et al.  Econophysics review: II. Agent-based models , 2011 .

[30]  T. Gebbie,et al.  Comparing the market microstructure between two South African exchanges , 2020, 2011.04367.

[31]  A. Lo,et al.  THE ECONOMETRICS OF FINANCIAL MARKETS , 1996, Macroeconomic Dynamics.

[32]  Blake LeBaron,et al.  Agent-based computational finance : Suggested readings and early research , 2000 .

[33]  Carl Hewitt,et al.  Actor Model of Computation: Scalable Robust Information Systems , 2010, 1008.1459.

[34]  John A. Nelder,et al.  A Simplex Method for Function Minimization , 1965, Comput. J..

[35]  Sanmay Das A learning market-maker in the Glosten–Milgrom model , 2005 .

[36]  Jochen L. Leidner,et al.  Financial Market Data Simulation Using Deep Intelligence Agents , 2019, PAAMS.

[37]  Kimmo Kaski,et al.  Characteristic times in stock market indices , 1999 .

[38]  M. Avellaneda,et al.  High-frequency trading in a limit order book , 2008 .

[39]  B. LeBaron Agent-based Computational Finance , 2006 .

[40]  Giorgio Fagiolo,et al.  Rock Around the Clock: An Agent-Based Model of Low- and High-Frequency Trading , 2014 .

[41]  Diane Wilcox,et al.  Hierarchical Causality in Financial Economics , 2014, 1408.5585.

[42]  Charles M. C. Lee,et al.  Inferring Trade Direction from Intraday Data , 1991 .

[43]  Patrick Chang,et al.  Simulation and estimation of a point-process market-model with a matching engine , 2021, 2105.02211.

[44]  A. Tversky,et al.  Prospect theory: an analysis of decision under risk — Source link , 2007 .

[45]  Lixing Han,et al.  Implementing the Nelder-Mead simplex algorithm with adaptive parameters , 2010, Computational Optimization and Applications.

[46]  Peter Winker,et al.  An objective function for simulation based inference on exchange rate data , 2007 .

[47]  F. Lillo,et al.  The Long Memory of the Efficient Market , 2003, cond-mat/0311053.

[48]  Alexandru Mandes,et al.  Microstructure-Based Order Placement in a Continuous Double Auction Agent Based Model , 2016, Algorithmic Finance.

[49]  D. Wilcox,et al.  Deviations in expected price impact for small transaction volumes under fee restructuring , 2016, 1602.04950.

[50]  J. Farmer,et al.  The Predictive Power of Zero Intelligence in Financial Markets , 2003, Proceedings of the National Academy of Sciences of the United States of America.

[51]  Silvia Crafa,et al.  From agent-based modeling to actor-based reactive systems in the analysis of financial networks , 2021, Journal of Economic Interaction and Coordination.

[52]  Tanmoy Chakraborty,et al.  Market making and mean reversion , 2011, EC '11.

[53]  M. Mézard,et al.  Statistical properties of stock order books: empirical results and models , 2002, cond-mat/0203511.

[54]  F. Westerhoff,et al.  On the bimodality of the distribution of the S&P 500's distortion: Empirical evidence and theoretical explanations ☆ , 2017 .

[55]  C. Hommes Heterogeneous Agent Models in Economics and Finance , 2005 .

[56]  Donovan Platt,et al.  A Comparison of Economic Agent-Based Model Calibration Methods , 2019, Journal of Economic Dynamics and Control.

[57]  B. Mandlebrot The Variation of Certain Speculative Prices , 1963 .