IDEAS home Printed from https://ideas.repec.org/a/plo/pcsy00/0000037.html

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. Qihang Zhou & Changjun Zhou & Xiao Wang, 2022. "Stock prediction based on bidirectional gated recurrent unit with convolutional neural network and feature selection," PLOS ONE, Public Library of Science, vol. 17(2), pages 1-20, February.
    4. 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).
    5. Janusz Gajda & Rafał Walasek, 2020. "Fractional differentiation and its use in machine learning," Working Papers 2020-32, Faculty of Economic Sciences, University of Warsaw.
    6. Adam Korniejczuk & Robert 'Slepaczuk, 2024. "Statistical arbitrage in multi-pair trading strategy based on graph clustering algorithms in US equities market," Papers 2406.10695, arXiv.org.
    7. 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.
    8. Shruthi Komarla Rammurthy & Sagar B. Patil, 2021. "An LSTM-Based Approach to Predict Stock Price Movement for IT Sector Companies," International Journal of Cognitive Informatics and Natural Intelligence (IJCINI), IGI Global Scientific Publishing, vol. 15(4), pages 1-12, October.
    9. Ramchandra Rimal & Binod Rimal & Hum Nath Bhandari & Nawa Raj Pokhrel & Keshab R. Dahal, 2025. "Real Estate Market Prediction Using Deep Learning Models," Annals of Data Science, Springer, vol. 12(4), pages 1113-1156, August.
    10. Johanna Karina Solano Meza & David Orjuela Yepes & Javier Rodrigo-Ilarri & María-Elena Rodrigo-Clavero, 2023. "Comparative Analysis of the Implementation of Support Vector Machines and Long Short-Term Memory Artificial Neural Networks in Municipal Solid Waste Management Models in Megacities," IJERPH, MDPI, vol. 20(5), pages 1-20, February.
    11. Giovanni Ballarin & Jacopo Capra & Petros Dellaportas, 2025. "Multi-Horizon Echo State Network Prediction of Intraday Stock Returns," Papers 2504.19623, arXiv.org.
    12. Gaurang Sonkavde & Deepak Sudhakar Dharrao & Anupkumar M. Bongale & Sarika T. Deokate & Deepak Doreswamy & Subraya Krishna Bhat, 2023. "Forecasting Stock Market Prices Using Machine Learning and Deep Learning Models: A Systematic Review, Performance Analysis and Discussion of Implications," IJFS, MDPI, vol. 11(3), pages 1-22, July.
    13. Gaoshan Wang & Guangjin Yu & Xiaohong Shen, 2020. "The Effect of Online Investor Sentiment on Stock Movements: An LSTM Approach," Complexity, Hindawi, vol. 2020, pages 1-11, December.
    14. Jianyuan Zhong & Zhijian Xu & Saizhuo Wang & Xiangyu Wen & Jian Guo & Qiang Xu, 2024. "DSPO: An End-to-End Framework for Direct Sorted Portfolio Construction," Papers 2405.15833, arXiv.org.
    15. Cohen, Gil & Aiche, Avishay, 2023. "Forecasting gold price using machine learning methodologies," Chaos, Solitons & Fractals, Elsevier, vol. 175(P2).
    16. 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).
    17. Ergenç Cansu & Aktaş Rafet, 2025. "A Supervised Machine Learning in Financial Forecasting: Identifying Effective Models for the BIST100 Index," Review of Economic Perspectives, Sciendo, vol. 25(1), pages 66-90.
    18. Hum Nath Bhandari & Nawa Raj Pokhrel & Ramchandra Rimal & Keshab R. Dahal & Binod Rimal, 2024. "Implementation of deep learning models in predicting ESG index volatility," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 10(1), pages 1-24, December.
    19. 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.
    20. Bivas Dinda, 2024. "Gated recurrent neural network with TPE Bayesian optimization for enhancing stock index prediction accuracy," Papers 2406.02604, arXiv.org.

    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.