IDEAS home Printed from https://ideas.repec.org/a/gam/jjrfmx/v17y2024i12p555-d1540856.html
   My bibliography  Save this article

Reinforcement Learning Pair Trading: A Dynamic Scaling Approach

Author

Listed:
  • Hongshen Yang

    (Department of ECSE, The University of Auckland, Auckland 1010, New Zealand)

  • Avinash Malik

    (Department of ECSE, The University of Auckland, Auckland 1010, New Zealand)

Abstract

Cryptocurrency is a cryptography-based digital asset with extremely volatile prices. Around USD 70 billion worth of cryptocurrency is traded daily on exchanges. Trading cryptocurrency is difficult due to the inherent volatility of the crypto market. This study investigates whether Reinforcement Learning (RL) can enhance decision-making in cryptocurrency algorithmic trading compared to traditional methods. In order to address this question, we combined reinforcement learning with a statistical arbitrage trading technique, pair trading, which exploits the price difference between statistically correlated assets. We constructed RL environments and trained RL agents to determine when and how to trade pairs of cryptocurrencies. We developed new reward shaping and observation/action spaces for reinforcement learning. We performed experiments with the developed reinforcement learner on pairs of BTC-GBP and BTC-EUR data separated by 1 min intervals ( n = 263,520). The traditional non-RL pair trading technique achieved an annualized profit of 8.33%, while the proposed RL-based pair trading technique achieved annualized profits from 9.94% to 31.53%, depending upon the RL learner. Our results show that RL can significantly outperform manual and traditional pair trading techniques when applied to volatile markets such as cryptocurrencies.

Suggested Citation

  • Hongshen Yang & Avinash Malik, 2024. "Reinforcement Learning Pair Trading: A Dynamic Scaling Approach," JRFM, MDPI, vol. 17(12), pages 1-19, December.
  • Handle: RePEc:gam:jjrfmx:v:17:y:2024:i:12:p:555-:d:1540856
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/1911-8074/17/12/555/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/1911-8074/17/12/555/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Benoit Mandelbrot, 1967. "The Variation of Some Other Speculative Prices," The Journal of Business, University of Chicago Press, vol. 40, pages 393-393.
    2. William F. Sharpe, 1964. "Capital Asset Prices: A Theory Of Market Equilibrium Under Conditions Of Risk," Journal of Finance, American Finance Association, vol. 19(3), pages 425-442, September.
    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. Bao, Te & Diks, Cees & Li, Hao, 2018. "A generalized CAPM model with asymmetric power distributed errors with an application to portfolio construction," Economic Modelling, Elsevier, vol. 68(C), pages 611-621.
    2. George Karathanassis & Vasilios Sogiakas, 2010. "Spill over effects of futures contracts initiation on the cash market: a regime shift approach," Review of Quantitative Finance and Accounting, Springer, vol. 34(1), pages 95-143, January.
    3. Goddard, John & Onali, Enrico, 2012. "Self-affinity in financial asset returns," International Review of Financial Analysis, Elsevier, vol. 24(C), pages 1-11.
    4. Yang, Xinxin & Zheng, Xinghua & Chen, Jiaqi, 2021. "Testing high-dimensional covariance matrices under the elliptical distribution and beyond," Journal of Econometrics, Elsevier, vol. 221(2), pages 409-423.
    5. LeBaron, Blake, 2003. "Non-Linear Time Series Models in Empirical Finance,: Philip Hans Franses and Dick van Dijk, Cambridge University Press, Cambridge, 2000, 296 pp., Paperback, ISBN 0-521-77965-0, $33, [UK pound]22.95, [," International Journal of Forecasting, Elsevier, vol. 19(4), pages 751-752.
    6. Franses,Philip Hans & Dijk,Dick van, 2000. "Non-Linear Time Series Models in Empirical Finance," Cambridge Books, Cambridge University Press, number 9780521779654, November.
    7. Mouck, T., 1998. "Capital markets research and real world complexity: The emerging challenge of chaos theory," Accounting, Organizations and Society, Elsevier, vol. 23(2), pages 189-203, February.
    8. Marcel Ausloos, 2013. "Econophysics: Comments on a Few Applications, Successes, Methods and Models," IIM Kozhikode Society & Management Review, , vol. 2(2), pages 101-115, July.
    9. Gilles Boevi Koumou, 2020. "Diversification and portfolio theory: a review," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 34(3), pages 267-312, September.
    10. Shi, Huai-Long & Zhou, Wei-Xing, 2022. "Factor volatility spillover and its implications on factor premia," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 80(C).
    11. Ho, Ron Yiu-wah & Strange, Roger & Piesse, Jenifer, 2006. "On the conditional pricing effects of beta, size, and book-to-market equity in the Hong Kong market," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 16(3), pages 199-214, July.
    12. Muhammad Kashif & Thomas Leirvik, 2022. "The MAX Effect in an Oil Exporting Country: The Case of Norway," JRFM, MDPI, vol. 15(4), pages 1-16, March.
    13. Michel Fliess & Cédric Join, 2009. "Systematic risk analysis: first steps towards a new definition of beta," Post-Print inria-00425077, HAL.
    14. Barbara Fidanza & Ottorino Morresi, 2021. "Size and Value Anomalies in European Bank Stocks," International Journal of Business and Management, Canadian Center of Science and Education, vol. 13(12), pages 227-227, July.
    15. Bo-Hung Chiou & Shen-Ho Chang, 2020. "Influence of Investment Efficiency by Managers and Accounting Conservatism on Idiosyncratic Risks to Investors," Advances in Management and Applied Economics, SCIENPRESS Ltd, vol. 10(1), pages 1-8.
    16. Constantinos Antoniou & John A. Doukas & Avanidhar Subrahmanyam, 2016. "Investor Sentiment, Beta, and the Cost of Equity Capital," Management Science, INFORMS, vol. 62(2), pages 347-367, February.
    17. Radosław Kurach, 2013. "Does Beta Explain Global Equity Market Volatility – Some Empirical Evidence," Contemporary Economics, University of Economics and Human Sciences in Warsaw., vol. 7(2), June.
    18. Zabolotnyy, Serihiy & Wasilewski, Mirosław, 2018. "Operating and financial leverage as risk measures in agricultural companies," Problems of Agricultural Economics / Zagadnienia Ekonomiki Rolnej 276377, Institute of Agricultural and Food Economics - National Research Institute (IAFE-NRI).
    19. Shi, Yun & Cui, Xiangyu & Zhou, Xunyu, 2020. "Beta and Coskewness Pricing: Perspective from Probability Weighting," SocArXiv 5rqhv, Center for Open Science.
    20. Abugri, Benjamin A. & Dutta, Sandip, 2014. "Are we overestimating REIT idiosyncratic risk? Analysis of pricing effects and persistence," International Review of Economics & Finance, Elsevier, vol. 29(C), pages 249-259.

    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:gam:jjrfmx:v:17:y:2024:i:12:p:555-:d:1540856. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.