A Deep Reinforcement Learning Approach to Automated Stock Trading, using xLSTM Networks

Document Type : Original Article

Authors

1 دانشگاه شهید بهشتی

2 Faculty of Computer Science and Engineering Shahid Beheshti University Tehran, Iran

3 Faculty of Electrical Engineering Shahid Beheshti University Tehran, Iran

Abstract
Abstract—Traditional Long Short-Term Memory (LSTM) networks are effective for handling sequential data but have limitations such as gradient vanishing and difficulty in capturing long-term dependencies, which can impact their performance in dynamic and risky environments like stock trading. To address these limitations, this study explores the usage of the newly introduced Extended Long Short-Term Memory (xLSTM) network in combination with a deep reinforcement learning (DRL) approach for automated stock trading. Our proposed method utilizes xLSTM networks in both actor and critic components, enabling effective handling of time series data and dynamic market environments. Proximal Policy Optimization (PPO), with its ability to balance exploration and exploitation, is employed to optimize the trading strategy. Experiments were conducted using financial data from major tech companies over a comprehensive timeline, demonstrating that the xLSTM-based model outperforms LSTM-based methods in key trading evaluation metrics, including cumulative return, average profitability per trade, maximum earning rate, maximum pullback, and Sharpe ratio. These findings mark the potential of xLSTM for enhancing DRL-based stock trading systems.

Keywords

Subjects

Volume 2, Special Issue on AI 4 All- 2 - Serial Number 4
1st International Conference on Artificial Intelligence
January 2025
Pages 1-7

  • Receive Date 07 May 2025
  • Revise Date 26 July 2025
  • Accept Date 26 July 2025
  • First Publish Date 26 July 2025
  • Publish Date 01 January 2025