IDEAS home Printed from https://ideas.repec.org/a/jbh/ijsrcs/v12y2026i3id2069.html

Design and Implementation of a Reinforcement Learning Agent for Algorithmic Trading Simulation

Author

Listed:
  • Batthala Viswanatha
  • Bitinti Veeresh Reddy
  • P Harshavardhan
  • Golla Rajesh
  • Gudditi Nithin
  • K Muddu Swamy

Abstract

Financial markets are characterized by high volatility, non-linearity, and complex dynamics, rendering the design of manual trading strategies both difficult and prone to human bias. While supervised learning models have been employed for price prediction, they often fail to capture the sequential nature of trading decisions. This paper presents a simulation framework for an automated stock trading bot utilizing Reinforcement Learning (RL). Specifically, a Deep Q-Network (DQN) agent is implemented and trained to make discrete trading decisions (Buy, Sell, Hold) based on historical price data and technical indicators. The system utilizes a custom OpenAI Gym-compatible environment to simulate market conditions and employs reward shaping to optimize for risk-adjusted returns. Experimental results demonstrate that the RL agent outperforms traditional rule-based strategies, such as Buy-and-Hold and Moving Average Crossover, in terms of cumulative return and Sharpe ratio within the simulated environment.

Suggested Citation

  • Batthala Viswanatha & Bitinti Veeresh Reddy & P Harshavardhan & Golla Rajesh & Gudditi Nithin & K Muddu Swamy, 2026. "Design and Implementation of a Reinforcement Learning Agent for Algorithmic Trading Simulation," International Journal of Scientific Research in Computer Science, Engineering and Information Technology, International Journal of Scientific Research in Computer Science, Engineering and Information Technology, vol. 12(3), pages 645-652, June.
  • Handle: RePEc:jbh:ijsrcs:v12:y2026:i3:id:2069
    DOI: 10.32628/CSEIT26123362
    Note: Article URL: https://ijsrcseit.com/home/article/view/CSEIT26123362
    as

    Download full text from publisher

    File URL: https://ijsrcseit.com/home/article/view/CSEIT26123362
    File Function: Article URL
    Download Restriction: no

    File URL: https://ijsrcseit.com/home/article/download/CSEIT26123362/CSEIT26123362
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.32628/CSEIT26123362?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
    ---><---

    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:jbh:ijsrcs:v12:y2026:i3:id:2069. 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.

    We have no bibliographic references for this item. You can help adding them by using 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: Pankaj Sharma (USA) (email available below). General contact details of provider: https://ijsrcseit.com/home .

    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.