Code, Compliance and Crashes: A Risk-Based Framework for AI Trading Systems
Downloads
The use of AI in securities markets has transformed the design of securities markets by introducing adaptive machine-learning and reinforcement-learning algorithms in order generation, routing and execution. This chapter focuses on the re-definition of market, operational and conduct risks by such systems and suggests a risk-based system of internal governance of institutions that use AI trading strategies. The analysis involves a combination of the analysis of the doctrines of regulatory regimes of key financial centres and syntheses of academic literature, case facts of flash crashes and near-misses, and conceptual maps of risk channels throughout the data-model-execution lifecycle. The results indicate a closed risk universe where market integrity issues, model and data risk, technology failures, cyber threats and data-protection concerns are intertwined. The current algorithmic trading regulations, which are mainly based on deterministic code, partially cover these dynamics. The chapter advances a governance framework based on human-in-the-loop supervision, proportional clarification, explicit duty all the way along the three lines of defence, and graded oversight that is aligned with the risk of strategy. Tools such as concrete tools, improved testing regimes, dynamic pre-trade limits, kill-switches, ongoing monitoring with explainability analytics, and detailed model inventories and audit trails are all concrete tools. The discussion admits shortcomings of a conceptual and legal-analysis method: there is yet to be empirically calibrated proposed controls, particularly in realistic multi-agent AI market settings. However, the framework has definite implications on regulators and companies. The regulators are urged to improve standards of algorithmic and AI trading, increase system wide stress testing and facilitate cross-border coordination. The companies are urged to incorporate AI-specific risk policies, ethics codes and psychosocial support to supervisors facing opaque and high-speed systems. Besides, ethical guidelines of fairness, non-manipulation, transparency and inclusiveness are also applied to design decisions concerning data selection, validation practises, client communication and internal ethics management. The difference is in the fact that microstructural risk analysis, comparative regulation, internal governance design and human-factor considerations are combined within one, coherent structure of AI trading. The chapter therefore adds to the current discussions on reliable financial AI by describing how trading technology innovation can be balanced with systemic stability and investor protection.
Alcázar-Blanco, A., et al. (2024). Incorporating artificial intelligence into finance: A bibliometric approach. Journal of Risk and Financial Management, 17(12), 556. https://doi.org/10.3390/jrfm17120556
Bahoo, S., Cucculelli, M., Goga, X., & Mondolo, J. (2024). Artificial intelligence in finance: A comprehensive review through bibliometric and content analysis. SN Business & Economics, 4(1), 23. https://doi.org/10.1007/s43546-023-00618-x
Dakalbab, F., Abu Talib, M., Nasir, Q., & Saroufil, T. (2024). Artificial intelligence techniques in financial trading: A systematic literature review. Journal of King Saud University – Computer and Information Sciences, 36(3), 102015. https://doi.org/10.1016/j.jksuci.2024.102015
Easley, D., López de Prado, M., & O’Hara, M. (2011). The microstructure of the “Flash Crash”: Flow toxicity, liquidity crashes, and the probability of informed trading. Journal of Portfolio Management, 37(2), 118–128. https://doi.org/10.3905/jpm.2011.37.2.118
Gomber, P., & Haferkorn, M. (2013). High-frequency-trading: Technologies and their implications for electronic securities trading. Business & Information Systems Engineering, 5(2), 97–99. https://doi.org/10.1007/s12599-013-0255-7
Jarrow, R., & Protter, P. (2012). A dysfunctional role of high frequency trading in electronic markets. International Journal of Theoretical and Applied Finance, 15(3), 1250022. https://doi.org/10.1142/S021902491250022
Johnson, N., Zhao, G., Hunsader, E., Meng, J., Ravindar, A., Carran, S., & Tivnan, B. (2013). Abrupt rise of new machine ecology beyond human response time. Scientific Reports, 3, 2627. https://doi.org/10.1038/srep02627
Kirilenko, A., & Lo, A. W. (2013). Moore’s Law versus Murphy’s Law: Algorithmic trading and its discontents. Journal of Economic Perspectives, 27(2), 51–72. https://doi.org/10.1257/jep.27.2.51
Kirilenko, A. A., Kyle, A. S., Samadi, M., & Tuzun, T. (2017). The Flash Crash: High-frequency trading in an electronic market. Journal of Finance, 72(3), 967–998. https://doi.org/10.1111/jofi.12498
Virgilio, G. P. M. (2019). High-frequency trading: A literature review. Financial Markets and Portfolio Management, 33(2), 183–208. https://doi.org/10.1007/s11408-019-00331-6
Aldridge, I. (2013). High-frequency trading: A practical guide to algorithmic strategies and trading systems (2nd ed.). Wiley.
Anuar, A. A., Ismail, N. A., & Ahmad, S. (2025). Artificial intelligence techniques in investment trading: A systematic literature review. Asia-Pacific Journal of Information Technology and Multimedia, 14(1), 1–30. https://doi.org/10.17576/apjitm-2025-1401-02
Zhang, Z., Zohren, S., & Roberts, S. (2021). Deep reinforcement learning for trading. Expert Systems with Applications, 177, 114802. https://doi.org/10.1016/j.eswa.2021.114802
Alfajeer, A., Altaweel, A., Bouridane, A., Mouheb, D., & Aslam, S. (2025). On detecting stock price manipulation attacks: A comprehensive systematic literature review. Multimedia Tools and Applications. Advance online publication. https://doi.org/10.1007/s11042-025-20641-4
Bhuiyan, M. S. M., Mir, M. N. H., Rafi, M. A., Ishraq, A., Rodrigues, G. N., Mridha, M. F., & Shin, J. (2025). Deep learning for algorithmic trading: A systematic review of predictive models and optimization strategies. Array, 26, 100390. https://doi.org/10.1016/j.array.2025.100390
Chullamonthon, P., & Tangamchit, P. (2023). Ensemble of supervised and unsupervised deep neural networks for stock price manipulation detection. Expert Systems with Applications, 228, 119698. https://doi.org/10.1016/j.eswa.2023.119698
Dalko, V. (2019). High-frequency trading: Order-based innovation or manipulation? Journal of Banking Regulation, 21(4), 289–304. https://doi.org/10.1057/s41261-019-00115-y
Harun, M., & Naafey Sardar, M. (2021). Social media sentiment and the stock market. Journal of Financial Services Marketing, 26(4), 185–197. https://doi.org/10.1057/s41264-021-00112-3
Khodabandehlou, S., & Hashemi Golpayegani, S. A. (2022). Market manipulation detection: A systematic literature review. Expert Systems with Applications, 210, 118330. https://doi.org/10.1016/j.eswa.2022.118330
Klumpes, P. J. M., & Mann, S. (2025). Operational resilience in the UK financial sector: Practical guidance. British Actuarial Journal. Advance online publication. https://doi.org/10.1017/S1357321725100202
Alexander, K. (2020). Regulating AI in financial markets: Risk-based approaches. Law and Financial Markets Review, 14(3), 167–180. https://doi.org/10.1080/17521440.2020.1811123
Amtenbrink, F., & Kleinen, J. (2019). The European legal framework for algorithmic and high-frequency trading: MiFID II and MAR. European Journal of Risk Regulation, 10(3), 501–525. https://doi.org/10.1017/err.2019.27
Avgouleas, E. (2016). Systemic risk, complex systems and macroprudential regulation. European Journal of Risk Regulation, 7(2), 227–246. https://doi.org/10.1017/S1867299X00005839
Boehmer, E., Li, D., & Saar, G. (2023). High-frequency traders’ evolving role as market makers. Journal of Financial Markets, 63, 100739. https://doi.org/10.1016/j.finmar.2023.100739
Brkan, M. (2019). Do algorithms rule the world? Algorithmic decision-making and data protection in the framework of the GDPR and beyond. International Journal of Law and Information Technology, 27(2), 91–121. https://doi.org/10.1093/ijlit/eay017
Busch, D., & Rittler, T. (2014). Best execution and high-frequency trading. Capital Markets Law Journal, 9(3), 203–232. https://doi.org/10.1093/cmlj/kmu017
Crisanto, J. C., Leuterio, C. B., Prenio, J., & Yong, J. (2024). Regulating AI in the financial sector: Recent developments and main challenges. Journal of Banking Regulation, 25(4), 321–340. https://doi.org/10.1057/s41261-024-00200-3
De Stefano, V., & Taes, S. (2023). Algorithmic management and workers’ rights. International Labour Review, 162(3), 345–370. https://doi.org/10.1111/ilr.12389
Hacker, P., Cordes, J., & Rochon, J. (2023). Regulating gatekeeper artificial intelligence and data: Transparency, access and fairness under the DMA, the GDPR and beyond. European Journal of Risk Regulation, 15(1), 1–24. https://doi.org/10.1017/err.2023.1
Lee, C. (2016). High-frequency trading: Review of the literature and regulatory initiatives around the world. Journal of Applied Finance & Banking, 6(2), 1–30. https://doi.org/10.2139/ssrn.2725521
Moloney, N. (2018). EU securities and financial markets regulation (3rd ed.). Journal of Financial Regulation, 4(2), 312–318. https://doi.org/10.1093/jfr/fjy010
Heß, V. L., & Damásio, B. (2025). Machine learning in banking risk management: Mapping a decade of evolution. International Journal of Information Management Data Insights, 5(1), 100324. https://doi.org/10.1016/j.jjimei.2025.100324
Leo, M., Sharma, S., & Maddulety, K. (2019). Machine learning in banking risk management: A literature review. Risks, 7(1), 29. https://doi.org/10.3390/risks7010029
Mabwe, K., Ring, P. J., & Webb, R. (2017). Operational risk and the three lines of defence in UK financial institutions: Is three really the magic number? Journal of Operational Risk, 12(1), 53–69. https://doi.org/10.21314/JOP.2017.187
Yeo, W. J., et al. (2025). A comprehensive review on financial explainable AI. Artificial Intelligence Review. Advance online publication. https://doi.org/10.1007/s10462-024-11077-7
Tülü, Ç., & Tüzün, E. (2024). Explainable artificial intelligence (XAI) in finance: A systematic literature review. Artificial Intelligence Review. Advance online publication. https://doi.org/10.1007/s10462-024-10854-8
Pimentel, N., & Pisoni, G. (2025). Rethinking explainable AI in financial services. AI & Society. Advance online publication. https://doi.org/10.1007/s00146-025-02315-9
Kahya, A. E., et al. (2025). Artificial intelligence and machine learning in risk management—Current challenges and ethical considerations in the financial sector. In Artificial intelligence and cybersecurity in finance (Lecture Notes in Electrical Engineering and Computer Technology). Advance online publication. https://doi.org/10.1007/978-3-031-89718-4_20

