Skip to main content
QUICK REVIEW

[Paper Review] Deep reinforcement learning for time series: playing idealized trading games

Xiang Gao|arXiv (Cornell University)|Mar 11, 2018
Stock Market Forecasting MethodsDecision Sciences19 references17 citations
TL;DR

This paper applies deep reinforcement learning, specifically Deep Q-Networks with LSTM, GRU, CNN, and MLP architectures, to learn optimal trading strategies in two idealized time series environments: univariate (wave-like prices) and bivariate (price plus correlated noisy signal). The GRU-based agent outperforms others in the univariate game, while the MLP-based agent excels in the bivariate game, demonstrating effective strategy learning from time series inputs.

ABSTRACT

Deep Q-learning is investigated as an end-to-end solution to estimate the optimal strategies for acting on time series input. Experiments are conducted on two idealized trading games. 1) Univariate: the only input is a wave-like price time series, and 2) Bivariate: the input includes a random stepwise price time series and a noisy signal time series, which is positively correlated with future price changes. The Univariate game tests whether the agent can capture the underlying dynamics, and the Bivariate game tests whether the agent can utilize the hidden relation among the inputs. Stacked Gated Recurrent Unit (GRU), Long Short-Term Memory (LSTM) units, Convolutional Neural Network (CNN), and multi-layer perceptron (MLP) are used to model Q values. For both games, all agents successfully find a profitable strategy. The GRU-based agents show best overall performance in the Univariate game, while the MLP-based agents outperform others in the Bivariate game.

Motivation & Objective

  • To investigate whether deep reinforcement learning can learn profitable trading strategies from time series inputs without prior domain-specific feature engineering.
  • To evaluate the effectiveness of different deep neural network architectures—GRU, LSTM, CNN, and MLP—in modeling Q-values for sequential decision-making in trading.
  • To test whether agents can discover hidden patterns in noisy signals correlated with future price movements.
  • To compare model performance across two controlled environments: one with only price dynamics and another with an informative signal.

Proposed method

  • The study employs Deep Q-Networks (DQN) with various recurrent and feedforward architectures to estimate Q-values from time series observations.
  • In the univariate game, the input is a wave-like price series; in the bivariate game, inputs include a stepwise price series and a correlated noisy signal.
  • Stacked Gated Recurrent Units (GRUs), Long Short-Term Memory (LSTM) units, Convolutional Neural Networks (CNNs), and multi-layer perceptrons (MLPs) are used to model the Q-value function.
  • The agents are trained using experience replay and target networks to stabilize learning in the reinforcement learning framework.
  • Training is conducted in a simulated environment where the agent receives rewards based on cumulative portfolio returns over time.
  • The performance of each agent is evaluated based on final cumulative returns and consistency across multiple training runs.

Experimental results

Research questions

  • RQ1Can a deep reinforcement learning agent learn a profitable trading strategy from raw time series data without explicit feature engineering?
  • RQ2How do different neural network architectures—GRU, LSTM, CNN, and MLP—compare in learning optimal strategies from time series inputs?
  • RQ3Can the agent exploit a hidden, noisy signal that is positively correlated with future price changes in a bivariate trading environment?
  • RQ4Does the agent’s performance depend on the underlying structure of the time series, such as periodicity or noise levels?
  • RQ5Which architecture yields the most robust and profitable strategy across different time series dynamics?

Key findings

  • In the univariate game, the GRU-based agent achieved the highest cumulative return, demonstrating superior ability to model periodic price dynamics.
  • In the bivariate game, the MLP-based agent outperformed all other architectures, suggesting it effectively captured the signal-noise relationship.
  • All agent architectures successfully learned profitable strategies in both games, indicating the robustness of the DQN framework for time series decision-making.
  • The use of stacked GRUs and LSTMs improved temporal modeling compared to feedforward networks in the univariate setting.
  • The inclusion of a correlated noisy signal significantly enhanced performance in the bivariate game, confirming the agent’s ability to extract useful information from imperfect signals.
  • The results show that end-to-end deep reinforcement learning can discover non-trivial trading strategies directly from raw time series inputs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.