IDEAS home Printed from https://ideas.repec.org/a/plo/pcsy00/0000037.html
   My bibliography  Save this article

Volatility-informed SPY forecasting: From CGR-SPY analysis to DLSTM prediction

Author

Listed:
  • Hong Cao
  • Hao Chen
  • Yulong Lian
  • Hong-Kun Zhang

Abstract

Forecasting stock returns is a vital and at the same time challenging task in the financial arena, given the market’s susceptibility to abrupt swings. In this paper, we propose a strategy that adapts to different volatility regimes: during periods of high volatility, we employ the copper-gold ratio (CGR) as a leading indicator for the S&P 500 (SPY), while in periods of normal volatility, we introduce a differential long-term memory (DLSTM) neural network. The CGR combines the properties of copper (which reflects industrial and economic activity) and gold, a traditional safe-haven asset. In four major economic events, our analysis reveals that sharp movements in the CGR often precede corresponding changes in the SPY, suggesting the ratio’s potential as an early warning signal. For more stable markets, we introduce the DLSTM, which extends the standard LSTM architecture through a loss function designed to exploit differences between consecutive price steps. This design increases predictive power and achieves 82% directional accuracy on daily SPY forecasts, outperforming both a baseline LSTM and a binary classification approach. Finally, we validate the trading utility of the DLSTM by simulating intraday trading over one- and three-month periods, demonstrating consistent gains that highlight the practical value of the method. By synthesizing CGR analysis and DLSTM modeling, our approach offers a versatile framework to address diverse market environments and provide new insights for both researchers and practitioners.Author summary: Predicting stock movements can be challenging, especially when markets change rapidly. This study addresses the challenge by proposing a two-part approach to forecasting the S&P 500 (SPY) under different market conditions. During periods of high volatility, we use the copper-to-gold ratio (CGR). Copper’s value often tracks economic activity, while gold remains stable during financial turmoil, making their ratio a potential early warning indicator of stock price movements. Then, during quieter times, we introduce a specialized neural network called the difference long-short-term memory (DLSTM). The LSTM is a machine learning tool designed to remember important information over time, which is critical for financial data. Our DLSTM extends the LSTM by focusing on price changes between consecutive days, resulting in stronger predictive power. Tests show that it achieves 82% accuracy in predicting daily price trends, outperforming simpler models. We also validate these predictions using a simulated trading strategy that shows consistent gains over a one- and three-month period. By combining CGR and DLSTM, this study provides an adaptable approach for investors navigating today’s unpredictable markets.

Suggested Citation

  • Hong Cao & Hao Chen & Yulong Lian & Hong-Kun Zhang, 2025. "Volatility-informed SPY forecasting: From CGR-SPY analysis to DLSTM prediction," PLOS Complex Systems, Public Library of Science, vol. 2(8), pages 1-16, August.
  • Handle: RePEc:plo:pcsy00:0000037
    DOI: 10.1371/journal.pcsy.0000037
    as

    Download full text from publisher

    File URL: https://journals.plos.org/complexsystems/article?id=10.1371/journal.pcsy.0000037
    Download Restriction: no

    File URL: https://journals.plos.org/complexsystems/article/file?id=10.1371/journal.pcsy.0000037&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pcsy.0000037?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
    ---><---

    References listed on IDEAS

    as
    1. Svetlana Borovkova & Ioannis Tsiamas, 2019. "An ensemble of LSTM neural networks for high‐frequency stock market classification," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 38(6), pages 600-619, September.
    2. Jiayu Qiu & Bin Wang & Changjun Zhou, 2020. "Forecasting stock prices with long-short term memory neural network based on attention mechanism," PLOS ONE, Public Library of Science, vol. 15(1), pages 1-15, January.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Firuz Kamalov & Linda Smail & Ikhlaas Gurrib, 2021. "Stock price forecast with deep learning," Papers 2103.14081, arXiv.org.
    2. Chu Myaet Thwal & Ye Lin Tun & Kitae Kim & Seong-Bae Park & Choong Seon Hong, 2024. "Transformers with Attentive Federated Aggregation for Time Series Stock Forecasting," Papers 2402.06638, arXiv.org.
    3. Bouyaddou, Youssef & Jebabli, Ikram, 2025. "Integration of investor behavioral perspective and climate change in reinforcement learning for portfolio optimization," Research in International Business and Finance, Elsevier, vol. 73(PB).
    4. Janusz Gajda & Rafał Walasek, 2020. "Fractional differentiation and its use in machine learning," Working Papers 2020-32, Faculty of Economic Sciences, University of Warsaw.
    5. Lorenzo Menculini & Andrea Marini & Massimiliano Proietti & Alberto Garinei & Alessio Bozza & Cecilia Moretti & Marcello Marconi, 2021. "Comparing Prophet and Deep Learning to ARIMA in Forecasting Wholesale Food Prices," Forecasting, MDPI, vol. 3(3), pages 1-19, September.
    6. Zeng, Qing & Lu, Xinjie & Xu, Jin & Lin, Yu, 2024. "Macro-Driven Stock Market Volatility Prediction: Insights from a New Hybrid Machine Learning Approach," International Review of Financial Analysis, Elsevier, vol. 96(PB).
    7. Mohammad Zoynul Abedin & Mahmudul Hasan Moon & M. Kabir Hassan & Petr Hajek, 2025. "Deep learning-based exchange rate prediction during the COVID-19 pandemic," Annals of Operations Research, Springer, vol. 345(2), pages 1335-1386, February.
    8. Yuanrong Wang & Yinsen Miao & Alexander CY Wong & Nikita P Granger & Christian Michler, 2023. "Domain-adapted Learning and Interpretability: DRL for Gas Trading," Papers 2301.08359, arXiv.org, revised Sep 2023.
    9. Flori, Andrea & Regoli, Daniele, 2021. "Revealing Pairs-trading opportunities with long short-term memory networks," European Journal of Operational Research, Elsevier, vol. 295(2), pages 772-791.
    10. Tölö, Eero, 2020. "Predicting systemic financial crises with recurrent neural networks," Journal of Financial Stability, Elsevier, vol. 49(C).
    11. Akash Doshi & Alexander Issa & Puneet Sachdeva & Sina Rafati & Somnath Rakshit, 2020. "Deep Stock Predictions," Papers 2006.04992, arXiv.org.
    12. Stefenon, Stefano Frizzo & Seman, Laio Oriel & Aquino, Luiza Scapinello & Coelho, Leandro dos Santos, 2023. "Wavelet-Seq2Seq-LSTM with attention for time series forecasting of level of dams in hydroelectric power plants," Energy, Elsevier, vol. 274(C).
    13. Renigier-Biłozor Małgorzata & Janowski Artur, 2024. "Human-Machine Synergy in Real Estate Similarity Concept," Real Estate Management and Valuation, Sciendo, vol. 32(2), pages 13-30.
    14. Subba Rao Polamuri & K. Srinnivas & A. Krishna Mohan, 2023. "Prediction of stock price growth for novel greedy heuristic optimized multi-instances quantitative (NGHOMQ)," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 14(1), pages 353-366, February.
    15. Firuz Kamalov, 2019. "Forecasting significant stock price changes using neural networks," Papers 1912.08791, arXiv.org.
    16. Adam Korniejczuk & Robert Ślepaczuk, 2024. "Statistical arbitrage in multi-pair trading strategy based on graph clustering algorithms in US equities market," Working Papers 2024-09, Faculty of Economic Sciences, University of Warsaw.
    17. Conall Butler & Martin Crane, 2023. "Blockchain Transaction Fee Forecasting: A Comparison of Machine Learning Methods," Mathematics, MDPI, vol. 11(9), pages 1-26, May.
    18. Dhruhi Sheth & Manan Shah, 2023. "Predicting stock market using machine learning: best and accurate way to know future stock prices," International Journal of System Assurance Engineering and Management, Springer;The Society for Reliability, Engineering Quality and Operations Management (SREQOM),India, and Division of Operation and Maintenance, Lulea University of Technology, Sweden, vol. 14(1), pages 1-18, February.
    19. Yong-Hyong Kim & Song-Jun Ham & Chong-Sim Ri & Won-Hyok Kim & Wi-Song Ri, 2025. "Application of empirical wavelet transform, particle swarm optimization, gravitational search algorithm and long short-term memory neural network to copper price forecasting," Portuguese Economic Journal, Springer;Instituto Superior de Economia e Gestao, vol. 24(1), pages 151-169, January.
    20. Gil Cohen, 2022. "Artificial Intelligence in Trading the Financial Markets," International Journal of Economics & Business Administration (IJEBA), International Journal of Economics & Business Administration (IJEBA), vol. 0(1), pages 101-110.

    More about this item

    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:plo:pcsy00:0000037. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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: complexsystem (email available below). General contact details of provider: https://journals.plos.org/complexsystems/ .

    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.