IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2208.13654.html
   My bibliography  Save this paper

High-frequency financial market simulation and flash crash scenarios analysis: an agent-based modelling approach

Author

Listed:
  • Kang Gao
  • Perukrishnen Vytelingum
  • Stephen Weston
  • Wayne Luk
  • Ce Guo

Abstract

This paper describes simulations and analysis of flash crash scenarios in an agent-based modelling framework. We design, implement, and assess a novel high-frequency agent-based financial market simulator that generates realistic millisecond-level financial price time series for the E-Mini S&P 500 futures market. Specifically, a microstructure model of a single security traded on a central limit order book is provided, where different types of traders follow different behavioural rules. The model is calibrated using the machine learning surrogate modelling approach. Statistical test and moment coverage ratio results show that the model has excellent capability of reproducing realistic stylised facts in financial markets. By introducing an institutional trader that mimics the real-world Sell Algorithm on May 6th, 2010, the proposed high-frequency agent-based financial market simulator is used to simulate the Flash Crash that took place that day. We scrutinise the market dynamics during the simulated flash crash and show that the simulated dynamics are consistent with what happened in historical flash crash scenarios. With the help of Monte Carlo simulations, we discover functional relationships between the amplitude of the simulated 2010 Flash Crash and three conditions: the percentage of volume of the Sell Algorithm, the market maker inventory limit, and the trading frequency of fundamental traders. Similar analyses are carried out for mini flash crash events. An innovative "Spiking Trader" is introduced to the model, aiming at precipitating mini flash crash events. We analyse the market dynamics during the course of a typical simulated mini flash crash event and study the conditions affecting its characteristics. The proposed model can be used for testing resiliency and robustness of trading algorithms and providing advice for policymakers.

Suggested Citation

  • Kang Gao & Perukrishnen Vytelingum & Stephen Weston & Wayne Luk & Ce Guo, 2022. "High-frequency financial market simulation and flash crash scenarios analysis: an agent-based modelling approach," Papers 2208.13654, arXiv.org.
  • Handle: RePEc:arx:papers:2208.13654
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2208.13654
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Lamperti, Francesco & Roventini, Andrea & Sani, Amir, 2018. "Agent-based model calibration using machine learning surrogates," Journal of Economic Dynamics and Control, Elsevier, vol. 90(C), pages 366-389.
    2. Majewski, Adam A. & Ciliberti, Stefano & Bouchaud, Jean-Philippe, 2020. "Co-existence of trend and value in financial markets: Estimating an extended Chiarella model," Journal of Economic Dynamics and Control, Elsevier, vol. 112(C).
    3. Neil Johnson & Guannan Zhao & Eric Hunsader & Jing Meng & Amith Ravindar & Spencer Carran & Brian Tivnan, 2012. "Financial black swans driven by ultrafast machine ecology," Papers 1202.1448, arXiv.org.
    4. Mark Paddrik & Roy Hayes & William Scherer & Peter Beling, 2017. "Effects of limit order book information level on market stability metrics," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 12(2), pages 221-247, July.
    5. Albert J. Menkveld & Bart Zhou Yueshen, 2019. "The Flash Crash: A Cautionary Tale About Highly Fragmented Markets," Management Science, INFORMS, vol. 65(10), pages 4470-4488, October.
    6. Paulin, James & Calinescu, Anisoara & Wooldridge, Michael, 2019. "Understanding flash crash contagion and systemic risk: A micro–macro agent-based approach," Journal of Economic Dynamics and Control, Elsevier, vol. 100(C), pages 200-229.
    7. Anton Golub & John Keane & Ser-Huang Poon, 2012. "High Frequency Trading and Mini Flash Crashes," Papers 1211.6667, arXiv.org.
    8. Gode, Dhananjay K & Sunder, Shyam, 1993. "Allocative Efficiency of Markets with Zero-Intelligence Traders: Market as a Partial Substitute for Individual Rationality," Journal of Political Economy, University of Chicago Press, vol. 101(1), pages 119-137, February.
    9. Franke, Reiner & Westerhoff, Frank, 2012. "Structural stochastic volatility in asset pricing dynamics: Estimation and model contest," Journal of Economic Dynamics and Control, Elsevier, vol. 36(8), pages 1193-1211.
    10. Menkveld, Albert J., 2013. "High frequency trading and the new market makers," Journal of Financial Markets, Elsevier, vol. 16(4), pages 712-740.
    11. Hill, Jonathan B., 2010. "On Tail Index Estimation For Dependent, Heterogeneous Data," Econometric Theory, Cambridge University Press, vol. 26(5), pages 1398-1436, October.
    12. Rama Cont, 2007. "Volatility Clustering in Financial Markets: Empirical Facts and Agent-Based Models," Springer Books, in: Gilles Teyssière & Alan P. Kirman (ed.), Long Memory in Economics, pages 289-309, Springer.
    13. repec:hal:spmain:info:hdl:2441/13thfd12aa8rmplfudlgvgahff is not listed on IDEAS
    14. Carl Chiarella, 1992. "The Dynamics of Speculative Behaviour," Working Paper Series 13, Finance Discipline Group, UTS Business School, University of Technology, Sydney.
    15. Andrei Kirilenko & Albert S. Kyle & Mehrdad Samadi & Tugkan Tuzun, 2017. "The Flash Crash: High-Frequency Trading in an Electronic Market," Journal of Finance, American Finance Association, vol. 72(3), pages 967-998, June.
    16. Vince Darley & Alexander V Outkin, 2007. "A NASDAQ Market Simulation:Insights on a Major Market from the Science of Complex Adaptive Systems," World Scientific Books, World Scientific Publishing Co. Pte. Ltd., number 6217, January.
    17. Albert S. Kyle & Anna A. Obizhaeva, 2020. "Large Bets and Stock Market Crashes," Working Papers w0269, New Economic School (NES).
    18. Frank McGroarty & Ash Booth & Enrico Gerding & V. L. Raju Chinthalapati, 2019. "High frequency trading strategies, market fragility and price spikes: an agent based model perspective," Annals of Operations Research, Springer, vol. 282(1), pages 217-244, November.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Kang Gao & Stephen Weston & Perukrishnen Vytelingum & Namid R. Stillman & Wayne Luk & Ce Guo, 2023. "Deeper Hedging: A New Agent-based Model for Effective Deep Hedging," Papers 2310.18755, arXiv.org.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. James Paulin & Anisoara Calinescu & Michael Wooldridge, 2018. "Understanding Flash Crash Contagion and Systemic Risk: A Micro-Macro Agent-Based Approach," Papers 1805.08454, arXiv.org.
    2. Paulin, James & Calinescu, Anisoara & Wooldridge, Michael, 2019. "Understanding flash crash contagion and systemic risk: A micro–macro agent-based approach," Journal of Economic Dynamics and Control, Elsevier, vol. 100(C), pages 200-229.
    3. Kang Gao & Perukrishnen Vytelingum & Stephen Weston & Wayne Luk & Ce Guo, 2022. "Understanding intra-day price formation process by agent-based financial market simulation: calibrating the extended chiarella model," Papers 2208.14207, arXiv.org.
    4. Sandrine Jacob Leal & Mauro Napoletano & Andrea Roventini & Giorgio Fagiolo, 2016. "Rock around the clock: An agent-based model of low- and high-frequency trading," Journal of Evolutionary Economics, Springer, vol. 26(1), pages 49-76, March.
    5. repec:hal:spmain:info:hdl:2441/f6h8764enu2lskk9p4oq9ig8k is not listed on IDEAS
    6. Noemi Schmitt & Ivonne Schwartz & Frank Westerhoff, 2022. "Heterogeneous speculators and stock market dynamics: a simple agent-based computational model," The European Journal of Finance, Taylor & Francis Journals, vol. 28(13-15), pages 1263-1282, October.
    7. Mark Paddrik & Roy Hayes & William Scherer & Peter Beling, 2017. "Effects of limit order book information level on market stability metrics," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 12(2), pages 221-247, July.
    8. Leal, Sandrine Jacob & Napoletano, Mauro, 2019. "Market stability vs. market resilience: Regulatory policies experiments in an agent-based model with low- and high-frequency trading," Journal of Economic Behavior & Organization, Elsevier, vol. 157(C), pages 15-41.
    9. repec:hal:spmain:info:hdl:2441/6ummnc8nko827b2luohnctekk7 is not listed on IDEAS
    10. Pankaj Kumar, 2021. "Deep Hawkes Process for High-Frequency Market Making," Papers 2109.15110, arXiv.org.
    11. Steffen, Viktoria, 2023. "A literature review on extreme price movements with reversal," Journal of Behavioral and Experimental Finance, Elsevier, vol. 38(C).
    12. repec:hal:spmain:info:hdl:2441/3utlh0ehcn860pus6p2p683ade is not listed on IDEAS
    13. Zila, Eric & Kukacka, Jiri, 2023. "Moment set selection for the SMM using simple machine learning," Journal of Economic Behavior & Organization, Elsevier, vol. 212(C), pages 366-391.
    14. Maarten P. Scholl & Anisoara Calinescu & J. Doyne Farmer, 2021. "How market ecology explains market malfunction," Proceedings of the National Academy of Sciences, Proceedings of the National Academy of Sciences, vol. 118(26), pages 2015574118-, June.
    15. Jagannathan, Ravi & Pelizzon, Loriana & Schaumburg, Ernst & Sherman, Mila Getmansky & Yuferova, Darya, 2022. "Recovery from fast crashes: Role of mutual funds," Journal of Financial Markets, Elsevier, vol. 59(PB).
    16. Angerer, Martin & Neugebauer, Tibor & Shachat, Jason, 2023. "Arbitrage bots in experimental asset markets," Journal of Economic Behavior & Organization, Elsevier, vol. 206(C), pages 262-278.
    17. Gonçalves, Jorge & Kräussl, Roman & Levin, Vladimir, 2019. "Do "speed bumps" prevent accidents in financial markets?," CFS Working Paper Series 636, Center for Financial Studies (CFS).
    18. David Rushing Dewhurst & Michael Vincent Arnold & Colin Michael Van Oort, 2018. "Selection mechanisms affect volatility in evolving markets," Papers 1812.05657, arXiv.org, revised Apr 2019.
    19. Qi Nan Zhai, 2015. "Asset Pricing Under Ambiguity and Heterogeneity," PhD Thesis, Finance Discipline Group, UTS Business School, University of Technology, Sydney, number 1-2015.
    20. Sandrine Jacob Leal & Mauro Napoletano, 2017. "Market Stability vs. Market Resilience: Regulatory Policies Experiments in an Agent-Based Model with Low- and High-Frequency Trading," Post-Print hal-01768876, HAL.
    21. Lux, Thomas, 2020. "Can heterogeneous agent models explain the alleged mispricing of the S&P 500?," Economics Working Papers 2020-03, Christian-Albrechts-University of Kiel, Department of Economics.
    22. Daniel Ladley, 2019. "The Design and Regulation of High Frequency Traders," Discussion Papers in Economics 19/02, Division of Economics, School of Business, University of Leicester.
    23. Colin M. Van Oort & Ethan Ratliff-Crain & Brian F. Tivnan & Safwan Wshah, 2023. "Adaptive Agents and Data Quality in Agent-Based Financial Markets," Papers 2311.15974, arXiv.org.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2208.13654. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.