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. Merton, Robert C., 1976. "Option pricing when underlying stock returns are discontinuous," Journal of Financial Economics, Elsevier, vol. 3(1-2), pages 125-144.
    3. 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. 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.
    5. 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.
    6. 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.
    7. Jovanovic, Franck & Schinckus, Christophe, 2017. "Econophysics and Financial Economics: An Emerging Dialogue," OUP Catalogue, Oxford University Press, number 9780190205034, Decembrie.
    8. 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.
    9. 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.
    10. 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.
    11. 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.
    12. 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.
    13. 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.
    14. 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.
    15. Christophe Chorro & Florian Ielpo & Benoît Sévi, 2017. "The contribution of jumps to forecasting the density of returns," Post-Print halshs-01442618, HAL.
    16. Peter Carr & Liuren Wu, 2014. "Static Hedging of Standard Options," Journal of Financial Econometrics, Oxford University Press, vol. 12(1), pages 3-46.
    17. Kathrin Glau & Ricardo Pachon & Christian Potz, 2019. "Speed-up credit exposure calculations for pricing and risk management," Papers 1912.01280, arXiv.org.
    18. Scott Duke Kominers & Alexander Teytelboym & Vincent P Crawford, 2017. "An invitation to market design," Oxford Review of Economic Policy, Oxford University Press and Oxford Review of Economic Policy Limited, vol. 33(4), pages 541-571.
    19. Pringles, Rolando & Olsina, Fernando & Penizzotto, Franco, 2020. "Valuation of defer and relocation options in photovoltaic generation investments by a stochastic simulation-based method," Renewable Energy, Elsevier, vol. 151(C), pages 846-864.
    20. Fenglong Guo, 2025. "Pricing Vulnerable Options With Variance Gamma Systematic and Idiosyncratic Factors by Laplace Transform Inversion," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 45(1), pages 47-76, January.

    More about this item

    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.