IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2609.13825.html

ViperQ: Order Flow Pattern Recognition via Auction Market Theory for Reinforcement Learning Trading

Author

Listed:
  • Asser Moustafa
  • Rares-Mihail Neagu
  • Jugal Kalita

Abstract

Reinforcement learning trading systems published in the academic literature overwhelmingly rely on price-aggregate state representations (OHLCV bars) or limit-order-book depth features, leaving microstructure pattern theories from the practitioner literature, namely Auction Market Theory and Market Profile, without a peer-reviewed computational instantiation. We present ViperQ, a reinforcement learning system whose state representation is built explicitly from Auction Market Theory primitives: Volume Point of Control, Value Area position, Low Volume Node flags, Cumulative Volume Delta divergence, and tape-velocity signatures, assembled into a 20-dimensional Z-normalised vector. Two Proximal Policy Optimisation agents are trained with a prospect theory-grounded asymmetric reward function that penalises losing holds at a magnitude consistent with Kahneman and Tversky's loss-aversion coefficient. Evaluated on a held-out twelve-month partition of institutional tick data the agents have never seen, ViperQ achieves +163.6% ROI on TSLA (-27.5% max drawdown, 27,019 trades) and +116.5% ROI on NVDA (-47.8% max drawdown, 12,892 trades) under zero leverage. The results establish Auction Market Theory features as a tractable structured input modality for sequential decision-making on financial time series and motivate further work on microstructure-aware policy learning.

Suggested Citation

  • Asser Moustafa & Rares-Mihail Neagu & Jugal Kalita, 2026. "ViperQ: Order Flow Pattern Recognition via Auction Market Theory for Reinforcement Learning Trading," Papers 2609.13825, arXiv.org.
  • Handle: RePEc:arx:papers:2609.13825
    as

    Download full text from publisher

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

    References listed on IDEAS

    as
    1. Ben Hambly & Renyuan Xu & Huining Yang, 2021. "Recent Advances in Reinforcement Learning in Finance," Papers 2112.04553, arXiv.org, revised Feb 2023.
    2. Rama Cont & Arseniy Kukanov & Sasha Stoikov, 2014. "The Price Impact of Order Book Events," Journal of Financial Econometrics, Oxford University Press, vol. 12(1), pages 47-88.
    3. Glosten, Lawrence R. & Milgrom, Paul R., 1985. "Bid, ask and transaction prices in a specialist market with heterogeneously informed traders," Journal of Financial Economics, Elsevier, vol. 14(1), pages 71-100, March.
    4. Kyle, Albert S, 1985. "Continuous Auctions and Insider Trading," Econometrica, Econometric Society, vol. 53(6), pages 1315-1335, November.
    5. Daniel Kahneman & Amos Tversky, 2013. "Prospect Theory: An Analysis of Decision Under Risk," World Scientific Book Chapters, in: Leonard C MacLean & William T Ziemba (ed.), HANDBOOK OF THE FUNDAMENTALS OF FINANCIAL DECISION MAKING Part I, chapter 6, pages 99-127, World Scientific Publishing Co. Pte. Ltd..
    6. Tversky, Amos & Kahneman, Daniel, 1992. "Advances in Prospect Theory: Cumulative Representation of Uncertainty," Journal of Risk and Uncertainty, Springer, vol. 5(4), pages 297-323, October.
    7. David Easley & Marcos M. López de Prado & Maureen O'Hara, 2012. "Flow Toxicity and Liquidity in a High-frequency World," The Review of Financial Studies, Society for Financial Studies, vol. 25(5), pages 1457-1493.
    8. Ben Hambly & Renyuan Xu & Huining Yang, 2023. "Recent advances in reinforcement learning in finance," Mathematical Finance, Wiley Blackwell, vol. 33(3), pages 437-503, July.
    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. Cui, Xudong & Gong, Pu & Liu, Tong, 2025. "The disposition effect and market volatility prediction," International Review of Financial Analysis, Elsevier, vol. 108(PB).
    2. Park, Andreas & Sgroi, Daniel, "undated". "Herding and Contrarianism in a Financial Trading Experiment with Endogenous Timing," Economic Research Papers 269879, University of Warwick - Department of Economics.
    3. Huang, Zihuang & Wang, Shaokun & Li, Kaifeng, 2025. "The impact of informed trading on liquidity in Chinese crude oil futures," Energy Economics, Elsevier, vol. 150(C).
    4. Prakul Sunil Hiremath & Vruksha Arun Hiremath, 2026. "Early Detection of Latent Microstructure Regimes in Limit Order Books," Papers 2604.20949, arXiv.org.
    5. Janhavi Shankar Tripathi & Erick W. Rengifo, 2025. "FinTech, Fractional Trading, and Order Book Dynamics: A Study of US Equities Markets," FinTech, MDPI, vol. 4(2), pages 1-23, April.
    6. Qingfu Liu & Yiuman Tse & Kaixin Zheng, 2021. "The impact of trading behavioral biases on market liquidity under different volatility levels: Evidence from the Chinese commodity futures market," The Financial Review, Eastern Finance Association, vol. 56(4), pages 671-692, November.
    7. Chang, Sanders S. & Wang, F. Albert, 2015. "Adverse selection and the presence of informed trading," Journal of Empirical Finance, Elsevier, vol. 33(C), pages 19-33.
    8. Yanyi Ye & Yun Wang & Xiaoguang Yang, 2022. "Bank loan information and information asymmetry in the stock market: evidence from China," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 8(1), pages 1-28, December.
    9. Lof, Matthijs & van Bommel, Jos, 2023. "Asymmetric information and the distribution of trading volume," Journal of Corporate Finance, Elsevier, vol. 82(C).
    10. Jakusch, Sven Thorsten, 2017. "On the applicability of maximum likelihood methods: From experimental to financial data," SAFE Working Paper Series 148, Leibniz Institute for Financial Research SAFE, revised 2017.
    11. Muhammad Toheed Fayyaz & Abdul Jabbar & Faheem Ahmad Qureshi & Syed Qaisar Jalil, 2026. "A Frequency-Controlled Comparison of Tick- and Minute-Based Information Bars for Cryptocurrency Markets," Papers 2608.26158, arXiv.org.
    12. Huang, Jiageng & Zhang, Nianhua, 2026. "Act or hesitate? Investor sentiment divergence and informed trading," Pacific-Basin Finance Journal, Elsevier, vol. 99(C).
    13. Antonio Briola & Silvia Bartolucci & Tomaso Aste, 2024. "Deep Limit Order Book Forecasting," Papers 2403.09267, arXiv.org, revised Jun 2024.
    14. O’Hara, Maureen, 2015. "High frequency market microstructure," Journal of Financial Economics, Elsevier, vol. 116(2), pages 257-270.
    15. Mazza, Paolo, 2015. "Price dynamics and market liquidity: An intraday event study on Euronext," The Quarterly Review of Economics and Finance, Elsevier, vol. 56(C), pages 139-153.
    16. Rob Hayward, 2018. "Foreign Exchange Speculation: An Event Study," IJFS, MDPI, vol. 6(1), pages 1-13, February.
    17. Przemys{l}aw Rola, 2025. "Boltzmann Price: Toward Understanding the Fair Price in High-Frequency Markets," Papers 2507.09734, arXiv.org.
    18. Choi, Darwin, 2019. "Disposition sales and stock market liquidity," Journal of Financial Markets, Elsevier, vol. 45(C), pages 19-36.
    19. Rzayev, Khaladdin & Sakkas, Athanasios & Urquhart, Andrew, 2025. "An adoption model of cryptocurrencies," European Journal of Operational Research, Elsevier, vol. 323(1), pages 253-266.
    20. David Abad & M. Fuensanta Cutillas†Gomariz & Juan Pedro Sánchez†Ballesta & José Yagüe, 2018. "Does IFRS Mandatory Adoption Affect Information Asymmetry in the Stock Market?," Australian Accounting Review, CPA Australia, vol. 28(1), pages 61-78, March.

    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:2609.13825. 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: https://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.