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

    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. repec:cdl:anderf:qt43n1k4jb is not listed on IDEAS
    4. Longstaff, Francis A & Schwartz, Eduardo S, 2001. "Valuing American Options by Simulation: A Simple Least-Squares Approach," The Review of Financial Studies, Society for Financial Studies, vol. 14(1), pages 113-147.
    5. 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.
    6. 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)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Gang Huang & Xiaohua Zhou & Qingyang Song, 2024. "A Deep Reinforcement Learning Framework for Dynamic Portfolio Optimization: Evidence from China's Stock Market," Papers 2412.18563, arXiv.org, revised Feb 2025.

    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. A. Madhavi & A. Nagesh & A. Govardhan, 2025. "Sentiment-Based Hierarchical Deep Learning Framework Using Hybrid Optimization for Course Recommendation in E-learning," Annals of Data Science, Springer, vol. 12(5), pages 1661-1690, October.
    2. 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).
    3. 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.
    4. Jiang, Kangqi & Du, Xinyi & Chen, Zhongfei, 2022. "Firms' digitalization and stock price crash risk," International Review of Financial Analysis, Elsevier, vol. 82(C).
    5. 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.
    6. Junjie Guo, 2025. "Integration of Wavelet Transform Convolution and Channel Attention with LSTM for Stock Price Prediction based Portfolio Allocation," Papers 2507.01973, arXiv.org, revised Jul 2025.
    7. Uddin, Ajim & Yu, Dantong, 2020. "Latent factor model for asset pricing," Journal of Behavioral and Experimental Finance, Elsevier, vol. 27(C).
    8. Axelsson, Birger & Song, Han-Suck, 2023. "Univariate Forecasting for REITs with Deep Learning: A Comparative Analysis with an ARIMA Model," Working Paper Series 23/10, Royal Institute of Technology, Department of Real Estate and Construction Management & Banking and Finance, revised 14 Nov 2023.
    9. Landry Frank Ineza Havugimana & Bolan Liu & Fanshuo Liu & Junwei Zhang & Ben Li & Peng Wan, 2023. "Review of Artificial Intelligent Algorithms for Engine Performance, Control, and Diagnosis," Energies, MDPI, vol. 16(3), pages 1-25, January.
    10. Werner Kristjanpoller & Kevin Michell & Cristian Llanos & Marcel C. Minutolo, 2025. "Incorporating causal notions to forecasting time series: a case study," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 11(1), pages 1-22, December.
    11. Huh, Jeonggyu, 2020. "Measuring systematic risk with neural network factor model," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 542(C).
    12. 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.
    13. 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.
    14. 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".
    15. 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).
    16. 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).
    17. 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.
    18. 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.
    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).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    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: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.