[Paper Review] Agent Inspired Trading Using Recurrent Reinforcement Learning and LSTM Neural Networks
This paper proposes a recurrent reinforcement learning agent using Long Short-Term Memory (LSTM) networks to autonomously learn profitable, risk-aware trading strategies from raw FX price data. The system optimizes for long-term rewards using policy gradient methods and outperforms non-LSTM counterparts, achieving superior risk-adjusted returns—especially when trained on downside deviation ratio, which reduces drawdowns in volatile markets.
With the breakthrough of computational power and deep neural networks, many areas that we haven't explore with various techniques that was researched rigorously in past is feasible. In this paper, we will walk through possible concepts to achieve robo-like trading or advising. In order to accomplish similar level of performance and generality, like a human trader, our agents learn for themselves to create successful strategies that lead to the human-level long-term rewards. The learning model is implemented in Long Short Term Memory (LSTM) recurrent structures with Reinforcement Learning or Evolution Strategies acting as agents The robustness and feasibility of the system is verified on GBPUSD trading.
Motivation & Objective
- To develop an autonomous trading agent that learns optimal strategies through trial-and-error reinforcement learning, mimicking human trader behavior.
- To overcome limitations of value-function-based reinforcement learning—such as the curse of dimensionality and brittleness—by using direct policy optimization via recurrent reinforcement learning.
- To enhance training stability and mitigate vanishing gradients in recurrent structures using LSTM units and dropout regularization.
- To evaluate performance across different risk-adjusted objectives, including Sharpe Ratio and Downside Deviation Ratio, to assess risk-aware trading behavior.
- To demonstrate feasibility and robustness of the agent in real-world conditions using live FX data, particularly under high volatility and low liquidity.
- To enable minimal human intervention by training the agent directly on raw price data without hand-engineered features or domain-specific heuristics.
Proposed method
- Employs a recurrent reinforcement learning framework where the agent learns a policy directly from raw price sequences using policy gradient methods, avoiding value function approximation.
- Uses Long Short-Term Memory (LSTM) networks to model temporal dependencies in financial time series and mitigate vanishing gradient problems during backpropagation through time.
- Applies dropout regularization within the LSTM layers to improve generalization and reduce overfitting during training.
- Optimizes the agent’s policy using gradient ascent on the expected cumulative reward, with objectives formulated as Sharpe Ratio and Downside Deviation Ratio.
- Employs evolution strategies and Nelder-Mead as derivative-free optimization alternatives to validate robustness and convergence under noisy, nonstationary data.
- Trains and tests the agent on GBPUSD FX data, comparing performance across different bias terms (b=1 vs b=5) to balance transaction frequency and cost.
Experimental results
Research questions
- RQ1Can a recurrent reinforcement learning agent trained on raw FX price data learn profitable, generalizable trading strategies without hand-engineered features?
- RQ2How does the use of LSTM networks improve training stability and performance compared to standard RNNs in financial time series trading?
- RQ3Does optimizing for downside deviation ratio lead to better risk-adjusted performance than optimizing for Sharpe Ratio in volatile markets?
- RQ4How do hyperparameters such as the bias term (b) affect transaction frequency and overall profitability in real-world trading scenarios?
- RQ5Can the agent achieve robust, low-intervention performance across different market regimes, including low-liquidity periods?
Key findings
- The LSTM-based recurrent reinforcement learning agent achieved higher end-of-training total profit compared to a standard RNN baseline, demonstrating the effectiveness of long-term memory in financial sequence modeling.
- When trained with a bias term of b=5, the agent reduced average transaction duration from ~6 hours to ~70 hours, significantly lowering transaction costs and improving net profitability.
- The agent trained to maximize the Downside Deviation Ratio (DDR) exhibited lower drawdowns and more risk-averse behavior than the Sharpe Ratio-optimized agent, particularly in volatile market conditions.
- Performance with b=1 was worse than the initial weights, indicating that suboptimal hyperparameter choices can degrade learning outcomes, highlighting the importance of careful tuning.
- The system successfully discovered profitable strategies without domain-specific heuristics, confirming the feasibility of end-to-end, self-learning robo-trading agents on real FX data.
- Empirical results suggest that risk-aware objectives like DDR are effective for downside protection, making the agent suitable for passive or risk-averse investment strategies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.