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

FlowHFT: Imitation Learning via Flow Matching Policy for Optimal High-Frequency Trading under Diverse Market Conditions

Author

Listed:
  • Yang Li
  • Zhi Chen
  • Steve Yang

Abstract

High-frequency trading (HFT) is an investing strategy that continuously monitors market states and places bid and ask orders at millisecond speeds. Traditional HFT approaches fit models with historical data and assume that future market states follow similar patterns. This limits the effectiveness of any single model to the specific conditions it was trained for. Additionally, these models achieve optimal solutions only under specific market conditions, such as assumptions about stock price's stochastic process, stable order flow, and the absence of sudden volatility. Real-world markets, however, are dynamic, diverse, and frequently volatile. To address these challenges, we propose the FlowHFT, a novel imitation learning framework based on flow matching policy. FlowHFT simultaneously learns strategies from numerous expert models, each proficient in particular market scenarios. As a result, our framework can adaptively adjust investment decisions according to the prevailing market state. Furthermore, FlowHFT incorporates a grid-search fine-tuning mechanism. This allows it to refine strategies and achieve superior performance even in complex or extreme market scenarios where expert strategies may be suboptimal. We test FlowHFT in multiple market environments. We first show that flow matching policy is applicable in stochastic market environments, thus enabling FlowHFT to learn trading strategies under different market conditions. Notably, our single framework consistently achieves performance superior to the best expert for each market condition.

Suggested Citation

  • Yang Li & Zhi Chen & Steve Yang, 2025. "FlowHFT: Imitation Learning via Flow Matching Policy for Optimal High-Frequency Trading under Diverse Market Conditions," Papers 2505.05784, arXiv.org, revised May 2025.
  • Handle: RePEc:arx:papers:2505.05784
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Madhavan, Ananth, 2000. "Market microstructure: A survey," Journal of Financial Markets, Elsevier, vol. 3(3), pages 205-258, August.
    2. Harris, Larry, 2002. "Trading and Exchanges: Market Microstructure for Practitioners," OUP Catalogue, Oxford University Press, number 9780195144703.
    3. Merton, Robert C., 1976. "Option pricing when underlying stock returns are discontinuous," Journal of Financial Economics, Elsevier, vol. 3(1-2), pages 125-144.
    4. Marco Avellaneda & Sasha Stoikov, 2008. "High-frequency trading in a limit order book," Quantitative Finance, Taylor & Francis Journals, vol. 8(3), pages 217-224.
    5. Pietro Fodra & Mauricio Labadie, 2012. "High-frequency market-making with inventory constraints and directional bets," Working Papers hal-00675925, HAL.
    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. Yang Li & Zhi Chen, 2025. "FinFlowRL: An Imitation-Reinforcement Learning Framework for Adaptive Stochastic Control in Finance," Papers 2510.15883, arXiv.org.
    2. Campi, Luciano & Zabaljauregui, Diego, 2020. "Optimal market making under partial information with general intensities," LSE Research Online Documents on Economics 104612, London School of Economics and Political Science, LSE Library.
    3. Thomas Spooner & Rahul Savani, 2020. "Robust Market Making via Adversarial Reinforcement Learning," Papers 2003.01820, arXiv.org, revised Jul 2020.
    4. Sofiene El Aoud & Frédéric Abergel, 2015. "A stochastic control approach for options market making," Post-Print hal-01061852, HAL.
    5. Antonio Briola & Silvia Bartolucci & Tomaso Aste, 2024. "Deep Limit Order Book Forecasting," Papers 2403.09267, arXiv.org, revised Jun 2024.
    6. Hanousek, Jan & Novotný, Jan, 2012. "Price jumps in Visegrad-country stock markets: An empirical analysis," Emerging Markets Review, Elsevier, vol. 13(2), pages 184-201.
    7. Luitgard Veraart, 2010. "Optimal Market Making in the Foreign Exchange Market," Applied Mathematical Finance, Taylor & Francis Journals, vol. 17(4), pages 359-372.
    8. Philippe Bergault & David Evangelista & Olivier Gu'eant & Douglas Vieira, 2018. "Closed-form approximations in multi-asset market making," Papers 1810.04383, arXiv.org, revised Sep 2022.
    9. Qing-Qing Yang & Wai-Ki Ching & Jiawen Gu & Tak-Kuen Siu, 2020. "Trading strategy with stochastic volatility in a limit order book market," Decisions in Economics and Finance, Springer;Associazione per la Matematica, vol. 43(1), pages 277-301, June.
    10. repec:wsi:acsxxx:v:21:y:2018:i:08:n:s0219525918500194 is not listed on IDEAS
    11. Fei Xie & Yang Liu & Changlong Hu & Shenbao Liang, 2025. "Dynamic Modeling of Limit Order Book and Market Maker Strategy Optimization Based on Markov Queue Theory," Mathematics, MDPI, vol. 13(5), pages 1-27, February.
    12. Alejandro Garc'ia Figal & Alejandro Lage Castellanos & Roberto Mulet, 2025. "Looking into informal currency markets as Limit Order Books: impact of market makers," Papers 2503.03858, arXiv.org.
    13. Olivier Guéant, 2016. "The Financial Mathematics of Market Liquidity: From Optimal Execution to Market Making," Post-Print hal-01393136, HAL.
    14. Alexandru Mandes, 2015. "Impact of inventory-based electronic liquidity providers within a high-frequency event- and agent-based modeling framework," MAGKS Papers on Economics 201515, Philipps-Universität Marburg, Faculty of Business Administration and Economics, Department of Economics (Volkswirtschaftliche Abteilung).
    15. Jin-Huei Yeh & Jying-Nan Wang & Chung-Ming Kuan, 2014. "A noise-robust estimator of volatility based on interquantile ranges," Review of Quantitative Finance and Accounting, Springer, vol. 43(4), pages 751-779, November.
    16. Saran Ahuja & George Papanicolaou & Weiluo Ren & Tzu-Wei Yang, 2016. "Limit order trading with a mean reverting reference price," Papers 1607.00454, arXiv.org, revised Nov 2016.
    17. Francesca Lilla, 2023. "Volatility Bursts: A Discrete-Time Option Model with Multiple Volatility Components," Journal of Financial Econometrics, Oxford University Press, vol. 21(3), pages 678-713.
    18. Jovanovic, Franck & Schinckus, Christophe, 2017. "Econophysics and Financial Economics: An Emerging Dialogue," OUP Catalogue, Oxford University Press, number 9780190205034.
    19. Damien Challet & R'emy Chicheportiche & Mehdi Lallouache & Serge Kassibrakis, 2016. "Statistically validated lead-lag networks and inventory prediction in the foreign exchange market," Papers 1609.04640, arXiv.org, revised Jul 2018.
    20. Lester Ingber, 2020. "Developing Bid-Ask Probabilities for High-Frequency Trading," Virtual Economics, The London Academy of Science and Business, vol. 3(2), pages 7-24, April.
    21. Degryse, H.A., 2007. "Competition on financial markets : Does market design matter?," Other publications TiSEM ee5530b2-34f7-4d95-ad62-f, Tilburg University, School of Economics and Management.

    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:2505.05784. 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.