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, Decembrie.
    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.
    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. Antonio Briola & Silvia Bartolucci & Tomaso Aste, 2024. "Deep Limit Order Book Forecasting," Papers 2403.09267, arXiv.org, revised Jun 2024.
    2. 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.
    3. Luitgard Veraart, 2010. "Optimal Market Making in the Foreign Exchange Market," Applied Mathematical Finance, Taylor & Francis Journals, vol. 17(4), pages 359-372.
    4. repec:wsi:acsxxx:v:21:y:2018:i:08:n:s0219525918500194 is not listed on IDEAS
    5. 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.
    6. Olivier Guéant, 2016. "The Financial Mathematics of Market Liquidity: From Optimal Execution to Market Making," Post-Print hal-01393136, HAL.
    7. 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).
    8. 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.
    9. 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.
    10. Jovanovic, Franck & Schinckus, Christophe, 2017. "Econophysics and Financial Economics: An Emerging Dialogue," OUP Catalogue, Oxford University Press, number 9780190205034, Decembrie.
    11. 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.
    12. 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.
    13. Yusui Tang & Feng Ma & Yaojie Zhang & Yu Wei, 2022. "Forecasting the oil price realized volatility: A multivariate heterogeneous autoregressive model," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 27(4), pages 4770-4783, October.
    14. Jan Novotny, 2010. "Were Stocks during the Financial Crisis More Jumpy: A Comparative Study," CERGE-EI Working Papers wp416, The Center for Economic Research and Graduate Education - Economics Institute, Prague.
    15. Jan Hanousek & Evzen Kocenda & Jan Novotny, 2014. "Price jumps on European stock markets," Borsa Istanbul Review, Research and Business Development Department, Borsa Istanbul, vol. 14(1), pages 10-22, March.
    16. Alexandru Mandes, 2020. "Impact of Electronic Liquidity Providers Within a High-Frequency Agent-Based Modeling Framework," Computational Economics, Springer;Society for Computational Economics, vol. 55(2), pages 407-450, February.
    17. Alexandru Mandes, 2016. "Algorithmic and High-Frequency Trading Strategies: A Literature Review," MAGKS Papers on Economics 201625, Philipps-Universität Marburg, Faculty of Business Administration and Economics, Department of Economics (Volkswirtschaftliche Abteilung).
    18. Jan Hanousek & Jan Novotný, 2014. "Cenové skoky během finanční nejistoty: od intuice k regulační perspektivě [Price Jumps during Financial Crisis: From Intuition to Financial Regulation]," Politická ekonomie, Prague University of Economics and Business, vol. 2014(1), pages 32-48.
    19. 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.
    20. Roza Galeeva & Ehud Ronn, 2022. "Oil futures volatility smiles in 2020: Why the bachelier smile is flatter," Review of Derivatives Research, Springer, vol. 25(2), pages 173-187, July.
    21. Carol Alexandra & Leonardo M. Nogueira, 2005. "Optimal Hedging and Scale Inavriance: A Taxonomy of Option Pricing Models," ICMA Centre Discussion Papers in Finance icma-dp2005-10, Henley Business School, University of Reading, revised Nov 2005.

    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.