[Paper Review] High-performance stock index trading: making effective use of a deep LSTM neural network
This paper proposes a deep LSTM-based model combined with a novel distribution-aware trading strategy that outperforms traditional directional trading by leveraging the percentile position of predicted returns within their distribution. Tested on S&P 500, DJIA, NASDAQ, and Russell 2000 from 2010–2018, the approach achieved cumulative returns of 340–371%, significantly exceeding buy-and-hold and prior methods by optimizing for profitability over prediction accuracy.
We present a deep long short-term memory (LSTM)-based neural network for predicting asset prices, together with a successful trading strategy for generating profits based on the model's predictions. Our work is motivated by the fact that the effectiveness of any prediction model is inherently coupled to the trading strategy it is used with, and vise versa. This highlights the difficulty in developing models and strategies which are jointly optimal, but also points to avenues of investigation which are broader than prevailing approaches. Our LSTM model is structurally simple and generates predictions based on price observations over a modest number of past trading days. The model's architecture is tuned to promote profitability, as opposed to accuracy, under a strategy that does not trade simply based on whether the price is predicted to rise or fall, but rather takes advantage of the distribution of predicted returns, and the fact that a prediction's position within that distribution carries useful information about the expected profitability of a trade. The proposed model and trading strategy were tested on the S&P 500, Dow Jones Industrial Average (DJIA), NASDAQ and Russel 2000 stock indices, and achieved cumulative returns of 340%, 185%, 371% and 360%, respectively, over 2010-2018, far outperforming the benchmark buy-and-hold strategy as well as other recent efforts.
Motivation & Objective
- To address the joint optimization challenge of prediction models and trading strategies in stock index trading, recognizing that prediction accuracy alone does not guarantee profitability.
- To develop a model and strategy pair that maximizes actual trading profits rather than minimizing prediction error, by utilizing richer information in predicted return distributions.
- To demonstrate that a structurally simple deep LSTM model, when paired with a non-directional, distribution-sensitive trading strategy, can generate superior risk-adjusted returns compared to standard approaches.
- To show that hyperparameter selection should prioritize profitability under the trading strategy, not predictive accuracy, when designing models for financial applications.
Proposed method
- The model uses a deep LSTM network with 2–3 layers, input sequences of 11–22 past trading days, and 32–128 neurons, trained to predict the next-day price of major U.S. stock indices.
- A novel input mechanism incorporates the entire history of the LSTM cell’s hidden states into the output layer, enhancing temporal information retention.
- The trading strategy does not rely on binary up/down signals; instead, it uses the predicted return’s percentile within the empirical distribution of predicted returns to determine trade entry and size.
- Hyperparameters are tuned not for lowest prediction error but for maximum profitability under the proposed trading strategy, reflecting a profit-centric optimization objective.
- The model is trained and tested on S&P 500, DJIA, NASDAQ, and Russell 2000 from October 1, 2010, to May 1, 2018, with real-time strategy execution simulated on a desktop system.
- The approach is computationally efficient, requiring only 7–30 seconds per model update and trade execution cycle, enabling applicability to intra-day or multi-asset strategies.
Experimental results
Research questions
- RQ1Can a deep LSTM model be designed not for maximum prediction accuracy, but for maximum profitability when paired with a tailored trading strategy?
- RQ2Does exploiting the distribution of predicted returns—specifically the percentile position of a prediction—yield higher profits than standard directional trading strategies?
- RQ3Can a relatively simple LSTM architecture, with minimal hyperparameter tuning, outperform more complex models when the trading strategy is aligned with the model’s output distribution?
- RQ4Is it possible to achieve significantly higher cumulative returns than buy-and-hold by using a distribution-aware trading policy with a deep learning model?
Key findings
- The proposed model and trading strategy achieved cumulative returns of 340% on the S&P 500, 185% on the DJIA, 371% on NASDAQ, and 360% on Russell 2000 over the 2010–2018 period, far exceeding the buy-and-hold benchmark.
- Despite similar prediction accuracy to other models, the proposed approach significantly outperformed them in profitability, demonstrating that prediction accuracy is not a sufficient proxy for trading success.
- The model’s performance was highly sensitive to the choice of trading strategy: when used with a standard directional strategy, the same LSTM model underperformed, highlighting the importance of joint model-strategy design.
- The model is computationally efficient, with training and inference taking only 7–30 seconds per cycle on a standard desktop, enabling real-time or intra-day deployment.
- The approach outperformed multiple recent studies using longer testing periods and showed robustness across different market indices, suggesting strong generalization potential.
- The study demonstrates that the distribution of predicted returns—particularly their relative position—contains actionable information that is underutilized in standard trading frameworks.
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.