IDEAS home Printed from https://ideas.repec.org/a/spr/aodasc/v11y2024i5d10.1007_s40745-023-00469-1.html
   My bibliography  Save this article

A Novel Stock Trading Model based on Reinforcement Learning and Technical Analysis

Author

Listed:
  • Zahra Pourahmadi

    (Yazd University)

  • Dariush Fareed

    (Yazd University)

  • Hamid Reza Mirzaei

    (Yazd University)

Abstract

This study investigates the potential of using reinforcement learning (RL) to establish a financial trading system (FTS), taking into account the main constraint imposed by the stock market, e.g., transaction costs. More specifically, this paper shows the inferior performance of the pure reinforcement learning model when it is applied in a multi-dimensional and noisy stock market environment. To solve this problem and to get a practical and reasonable trading strategies process, a modified RL model is proposed based on the actor-critic method where we have amended the actor by incorporating three metrics from technical analysis. The results show significant improvement compared with traditional trading strategies. The reliability of the model is verified by experimental results on financial data (S&P500 index) and a fair evaluation of the proposed method and pure RL and three benchmarks is demonstrated. Statistical analysis proves that a combination of a) technical analysis (role-based strategies) and b) RL (machine learning strategies) and c) restricting the action of the RL policy network with a few realistic conditions results in trading decisions with higher investment return rates.

Suggested Citation

  • Zahra Pourahmadi & Dariush Fareed & Hamid Reza Mirzaei, 2024. "A Novel Stock Trading Model based on Reinforcement Learning and Technical Analysis," Annals of Data Science, Springer, vol. 11(5), pages 1653-1674, October.
  • Handle: RePEc:spr:aodasc:v:11:y:2024:i:5:d:10.1007_s40745-023-00469-1
    DOI: 10.1007/s40745-023-00469-1
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s40745-023-00469-1
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s40745-023-00469-1?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Koya Ishikawa & Kazuhide Nakata, 2021. "Online Trading Models with Deep Reinforcement Learning in the Forex Market Considering Transaction Costs," Papers 2106.03035, arXiv.org, revised Dec 2021.
    2. James B. Heaton & Nicholas Polson & Jan H. Witte, 2017. "Rejoinder to ‘Deep learning for finance: deep portfolios’," Applied Stochastic Models in Business and Industry, John Wiley & Sons, vol. 33(1), pages 19-21, January.
    3. James M. Tien, 2017. "Internet of Things, Real-Time Decision Making, and Artificial Intelligence," Annals of Data Science, Springer, vol. 4(2), pages 149-178, June.
    4. J. B. Heaton & N. G. Polson & J. H. Witte, 2017. "Deep learning for finance: deep portfolios," Applied Stochastic Models in Business and Industry, John Wiley & Sons, vol. 33(1), pages 3-12, January.
    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. Sang Il Lee & Seong Joon Yoo, 2019. "Multimodal Deep Learning for Finance: Integrating and Forecasting International Stock Markets," Papers 1903.06478, arXiv.org, revised Sep 2019.
    2. Jinyang Li, 2024. "A Deep Reinforcement Learning Framework For Financial Portfolio Management," Papers 2409.08426, arXiv.org.
    3. Chengyu Liu & Yan Li & Mingjie Fang & Feng Liu, 2023. "Using machine learning to explore the determinants of service satisfaction with online healthcare platforms during the COVID-19 pandemic," Service Business, Springer;Pan-Pacific Business Association, vol. 17(2), pages 449-476, June.
    4. Vitor Azevedo & Christopher Hoegner, 2023. "Enhancing stock market anomalies with machine learning," Review of Quantitative Finance and Accounting, Springer, vol. 60(1), pages 195-230, January.
    5. Tang, Xuli & Li, Xin & Ding, Ying & Song, Min & Bu, Yi, 2020. "The pace of artificial intelligence innovations: Speed, talent, and trial-and-error," Journal of Informetrics, Elsevier, vol. 14(4).
    6. Ben Moews & Gbenga Ibikunle, 2020. "Predictive intraday correlations in stable and volatile market environments: Evidence from deep learning," Papers 2002.10385, arXiv.org.
    7. Kolesnikova, A. & Yang, Y. & Lessmann, S. & Ma, T. & Sung, M.-C. & Johnson, J.E.V., 2019. "Can Deep Learning Predict Risky Retail Investors? A Case Study in Financial Risk Behavior Forecasting," IRTG 1792 Discussion Papers 2019-023, Humboldt University of Berlin, International Research Training Group 1792 "High Dimensional Nonstationary Time Series".
    8. Caldeira, João F. & Santos, André A.P. & Torrent, Hudson S., 2023. "Semiparametric portfolios: Improving portfolio performance by exploiting non-linearities in firm characteristics," Economic Modelling, Elsevier, vol. 122(C).
    9. Moews, Ben & Ibikunle, Gbenga, 2020. "Predictive intraday correlations in stable and volatile market environments: Evidence from deep learning," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 547(C).
    10. Doron Avramov & Si Cheng & Lior Metzker, 2023. "Machine Learning vs. Economic Restrictions: Evidence from Stock Return Predictability," Management Science, INFORMS, vol. 69(5), pages 2587-2619, May.
    11. Li, Weiping & Mei, Feng, 2020. "Asset returns in deep learning methods: An empirical analysis on SSE 50 and CSI 300," Research in International Business and Finance, Elsevier, vol. 54(C).
    12. Eric Benhamou & David Saltiel & Serge Tabachnik & Sui Kai Wong & François Chareyron, 2021. "Distinguish the indistinguishable: a Deep Reinforcement Learning approach for volatility targeting models," Working Papers hal-03202431, HAL.
    13. Flori, Andrea & Regoli, Daniele, 2021. "Revealing Pairs-trading opportunities with long short-term memory networks," European Journal of Operational Research, Elsevier, vol. 295(2), pages 772-791.
    14. Jiang, Kangqi & Du, Xinyi & Chen, Zhongfei, 2022. "Firms' digitalization and stock price crash risk," International Review of Financial Analysis, Elsevier, vol. 82(C).
    15. Weijia Peng & Chun Yao, 2023. "Sector-level equity returns predictability with machine learning and market contagion measure," Empirical Economics, Springer, vol. 65(4), pages 1761-1798, October.
    16. Rubesam, Alexandre, 2022. "Machine learning portfolios with equal risk contributions: Evidence from the Brazilian market," Emerging Markets Review, Elsevier, vol. 51(PB).
    17. Zhengyong Jiang & Jeyan Thiayagalingam & Jionglong Su & Jinjun Liang, 2023. "CAD: Clustering And Deep Reinforcement Learning Based Multi-Period Portfolio Management Strategy," Papers 2310.01319, arXiv.org.
    18. Eric Benhamou & David Saltiel & Serge Tabachnik & Sui Kai Wong & Franc{c}ois Chareyron, 2021. "Adaptive learning for financial markets mixing model-based and model-free RL for volatility targeting," Papers 2104.10483, arXiv.org, revised Apr 2021.
    19. Hauzenberger, Niko & Huber, Florian & Klieber, Karin, 2023. "Real-time inflation forecasting using non-linear dimension reduction techniques," International Journal of Forecasting, Elsevier, vol. 39(2), pages 901-921.
    20. Mirza, Nawazish & Rizvi, Syed Kumail Abbas & Naqvi, Bushra & Umar, Muhammad, 2024. "Inflation prediction in emerging economies: Machine learning and FX reserves integration for enhanced forecasting," International Review of Financial Analysis, Elsevier, vol. 94(C).

    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:spr:aodasc:v:11:y:2024:i:5:d:10.1007_s40745-023-00469-1. 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: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.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.