IDEAS home Printed from https://ideas.repec.org/a/jas/jasssj/2022-169-3.html
   My bibliography  Save this article

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 on 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, replicating real-world scenarios that could precipitate 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, 2024. "High-Frequency Financial Market Simulation and Flash Crash Scenarios Analysis: An Agent-Based Modelling Approach," Journal of Artificial Societies and Social Simulation, Journal of Artificial Societies and Social Simulation, vol. 27(2), pages 1-8.
  • Handle: RePEc:jas:jasssj:2022-169-3
    as

    Download full text from publisher

    File URL: https://www.jasss.org/27/2/8/8.pdf
    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. 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.
    3. Anton Golub & John Keane & Ser-Huang Poon, 2012. "High Frequency Trading and Mini Flash Crashes," Papers 1211.6667, arXiv.org.
    4. Ananth Madhavan, 2012. "Exchange-Traded Funds, Market Structure, and the Flash Crash," Financial Analysts Journal, Taylor & Francis Journals, vol. 68(4), pages 20-35, July.
    5. repec:hal:spmain:info:hdl:2441/13thfd12aa8rmplfudlgvgahff is not listed on IDEAS
    6. Menkveld, Albert J., 2013. "High frequency trading and the new market makers," Journal of Financial Markets, Elsevier, vol. 16(4), pages 712-740.
    7. 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.
    8. 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, November.
    9. Albert S. Kyle & Anna A. Obizhaeva, 2020. "Large Bets and Stock Market Crashes," Working Papers w0269, New Economic School (NES).
    10. 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.
    11. 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).
    12. 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.
    13. 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.
    14. 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.
    15. 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.
    16. Hill, Jonathan B., 2010. "On Tail Index Estimation For Dependent, Heterogeneous Data," Econometric Theory, Cambridge University Press, vol. 26(5), pages 1398-1436, October.
    17. 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.
    18. B. LeBaron, 2001. "A builder's guide to agent-based financial markets," Quantitative Finance, Taylor & Francis Journals, vol. 1(2), pages 254-261.
    19. Carl Chiarella, 1992. "The Dynamics of Speculative Behaviour," Working Paper Series 13, Finance Discipline Group, UTS Business School, University of Technology, Sydney.
    Full references (including those not matched with items on IDEAS)

    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. 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.
    2. 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.
    3. 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.
    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. 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.
    6. 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.
    7. 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.
    8. 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.
    9. 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.
    10. 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.
    11. Steffen, Viktoria, 2023. "A literature review on extreme price movements with reversal," Journal of Behavioral and Experimental Finance, Elsevier, vol. 38(C).
    12. Perukrishnen Vytelingum & Rory Baggott & Namid Stillman & Jianfei Zhang & Dingqiu Zhu & Tao Chen & Justin Lyon, 2025. "Agent-based Liquidity Risk Modelling for Financial Markets," Papers 2505.15296, arXiv.org.
    13. Banerjee, Anirban & Nawn, Samarpan, 2024. "Proprietary algorithmic traders and liquidity supply during the pandemic," Finance Research Letters, Elsevier, vol. 61(C).
    14. Yeh, Chia-Hsuan & Yang, Chun-Yi, 2010. "Examining the effectiveness of price limits in an artificial stock market," Journal of Economic Dynamics and Control, Elsevier, vol. 34(10), pages 2089-2108, October.
    15. 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.
    16. 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).
    17. 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.
    18. 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).
    19. 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.
    20. Christophe Desagre & Floris Laly & Mikael Petitjean, 2025. "Revisiting the trading activity of high-frequency trading firms around ultra-fast flash events," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 11(1), pages 1-37, December.

    More about this item

    Keywords

    ;
    ;
    ;
    ;

    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:jas:jasssj:2022-169-3. 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: Francesco Renzini (email available below). General contact details of provider: .

    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.