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. Longstaff, Francis A & Schwartz, Eduardo S, 2001. "Valuing American Options by Simulation: A Simple Least-Squares Approach," University of California at Los Angeles, Anderson Graduate School of Management qt43n1k4jb, Anderson Graduate School of Management, UCLA.
    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. Weihan Li & Jin E. Zhang & Xinfeng Ruan & Pakorn Aschakulporn, 2024. "An empirical study on the early exercise premium of American options: Evidence from OEX and XEO options," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 44(7), pages 1117-1153, July.
    2. Work, James & Hauer, Grant & Luckert, M.K. (Marty), 2018. "What ethanol prices would induce growers to switch from agriculture to poplar in Alberta? A multiple options approach," Journal of Forest Economics, Elsevier, vol. 33(C), pages 51-62.
    3. Kathrin Glau & Ricardo Pachon & Christian Potz, 2019. "Speed-up credit exposure calculations for pricing and risk management," Papers 1912.01280, arXiv.org.
    4. Dong, Wenfeng & Kang, Boda, 2019. "Analysis of a multiple year gas sales agreement with make-up, carry-forward and indexation," Energy Economics, Elsevier, vol. 79(C), pages 76-96.
    5. 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.
    6. Gabriel J Power & Charli D. Tandja M. & Josée Bastien & Philippe Grégoire, 2015. "Measuring infrastructure investment option value," Journal of Risk Finance, Emerald Group Publishing, vol. 16(1), pages 49-72, January.
    7. Gkousis, Spiros & Welkenhuysen, Kris & Harcouët-Menou, Virginie & Pogacnik, Justin & Laenen, Ben & Compernolle, Tine, 2024. "Integrated geo-techno-economic and real options analysis of the decision to invest in a medium enthalpy deep geothermal heating plant. A case study in Northern Belgium," Energy Economics, Elsevier, vol. 134(C).
    8. O. Samimi & Z. Mardani & S. Sharafpour & F. Mehrdoust, 2017. "LSM Algorithm for Pricing American Option Under Heston–Hull–White’s Stochastic Volatility Model," Computational Economics, Springer;Society for Computational Economics, vol. 50(2), pages 173-187, August.
    9. Mo, Jian-Lei & Schleich, Joachim & Zhu, Lei & Fan, Ying, 2015. "Delaying the introduction of emissions trading systems—Implications for power plant investment and operation from a multi-stage decision model," Energy Economics, Elsevier, vol. 52(PB), pages 255-264.
    10. Song-Ping Zhu & Xin-Jiang He, 2018. "A hybrid computational approach for option pricing," International Journal of Financial Engineering (IJFE), World Scientific Publishing Co. Pte. Ltd., vol. 5(03), pages 1-16, September.
    11. Xuemei Gao & Dongya Deng & Yue Shan, 2014. "Lattice Methods for Pricing American Strangles with Two-Dimensional Stochastic Volatility Models," Discrete Dynamics in Nature and Society, Hindawi, vol. 2014, pages 1-6, April.
    12. Marcelo G. Figueroa, 2006. "Pricing Multiple Interruptible-Swing Contracts," Birkbeck Working Papers in Economics and Finance 0606, Birkbeck, Department of Economics, Mathematics & Statistics.
    13. Thomas Deschatre & Xavier Warin, 2023. "A Common Shock Model for multidimensional electricity intraday price modelling with application to battery valuation," Papers 2307.16619, arXiv.org.
    14. Jing Wu & Lijie Su & Gongshu Wang & Yang Yang, 2024. "Approximated Dynamic Programming for Production and Inventory Planning Problem in Cold Rolling Process of Steel Production," Mathematics, MDPI, vol. 12(24), pages 1-17, December.
    15. Abdullah Almansour & Margaret Insley, 2016. "The Impact of Stochastic Extraction Cost on the Value of an Exhaustible Resource: An Application to the Alberta Oil Sands," The Energy Journal, , vol. 37(2), pages 61-88, April.
    16. Lars Stentoft, 2008. "American Option Pricing Using GARCH Models and the Normal Inverse Gaussian Distribution," Journal of Financial Econometrics, Oxford University Press, vol. 6(4), pages 540-582, Fall.
    17. Jungmin An & Dong-Kwan Kim & Jinyeong Lee & Sung-Kwan Joo, 2021. "Least Squares Monte Carlo Simulation-Based Decision-Making Method for Photovoltaic Investment in Korea," Sustainability, MDPI, vol. 13(19), pages 1-14, September.
    18. Chi H. Truong, 2014. "A Two Factor Model for Water Prices and Its Implications for Evaluating Real Options and Other Water Price Derivatives," Canadian Journal of Agricultural Economics/Revue canadienne d'agroeconomie, Canadian Agricultural Economics Society/Societe canadienne d'agroeconomie, vol. 62(1), pages 23-45, March.
    19. Piotr Komański & Oskar Sokoliński, 2015. "Least-Squares Monte Carlo Simulation for Time Value of Options and Guarantees Calculation," Ekonomia journal, Faculty of Economic Sciences, University of Warsaw, vol. 41.
    20. Augusto Castillo, 2004. "Firm and Corporate Bond Valuation: A Simulation Dynamic Programming Approach," Latin American Journal of Economics-formerly Cuadernos de Economía, Instituto de Economía. Pontificia Universidad Católica de Chile., vol. 41(124), pages 345-360.

    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.