IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2104.04041.html
   My bibliography  Save this paper

CLVSA: A Convolutional LSTM Based Variational Sequence-to-Sequence Model with Attention for Predicting Trends of Financial Markets

Author

Listed:
  • Jia Wang
  • Tong Sun
  • Benyuan Liu
  • Yu Cao
  • Hongwei Zhu

Abstract

Financial markets are a complex dynamical system. The complexity comes from the interaction between a market and its participants, in other words, the integrated outcome of activities of the entire participants determines the markets trend, while the markets trend affects activities of participants. These interwoven interactions make financial markets keep evolving. Inspired by stochastic recurrent models that successfully capture variability observed in natural sequential data such as speech and video, we propose CLVSA, a hybrid model that consists of stochastic recurrent networks, the sequence-to-sequence architecture, the self- and inter-attention mechanism, and convolutional LSTM units to capture variationally underlying features in raw financial trading data. Our model outperforms basic models, such as convolutional neural network, vanilla LSTM network, and sequence-to-sequence model with attention, based on backtesting results of six futures from January 2010 to December 2017. Our experimental results show that, by introducing an approximate posterior, CLVSA takes advantage of an extra regularizer based on the Kullback-Leibler divergence to prevent itself from overfitting traps.

Suggested Citation

  • Jia Wang & Tong Sun & Benyuan Liu & Yu Cao & Hongwei Zhu, 2021. "CLVSA: A Convolutional LSTM Based Variational Sequence-to-Sequence Model with Attention for Predicting Trends of Financial Markets," Papers 2104.04041, arXiv.org.
  • Handle: RePEc:arx:papers:2104.04041
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2104.04041
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Vangelis Bacoyannis & Vacslav Glukhov & Tom Jin & Jonathan Kochems & Doo Re Song, 2018. "Idiosyncrasies and challenges of data driven learning in electronic trading," Papers 1811.09549, arXiv.org, revised Nov 2018.
    2. F. FernAndez-RodrIguez & S. Sosvilla-Rivero & J. Andrada-FElix, 2003. "Technical analysis in foreign exchange markets: evidence from the EMS," Applied Financial Economics, Taylor & Francis Journals, vol. 13(2), pages 113-122.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Jinan Zou & Qingying Zhao & Yang Jiao & Haiyao Cao & Yanxi Liu & Qingsen Yan & Ehsan Abbasnejad & Lingqiao Liu & Javen Qinfeng Shi, 2022. "Stock Market Prediction via Deep Learning Techniques: A Survey," Papers 2212.12717, arXiv.org, revised Feb 2023.
    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.

    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. Jia Wang & Hongwei Zhu & Jiancheng Shen & Yu Cao & Benyuan Liu, 2022. "Dual-CLVSA: a Novel Deep Learning Approach to Predict Financial Markets with Sentiment Measurements," Papers 2202.03158, arXiv.org.
    2. Alexandros E. Milionis & Evangelia Papanagiotou, 2008. "A Note on the Use of Moving Average Trading Rules to Test For Weak from Efficiency in Capital Markets," Working Papers 91, Bank of Greece.
    3. Simón Sosvilla-Rivero & Emma García, "undated". "Forecasting the Dollar/Euro Exchange Rate: Can International Parities Help?," Working Papers 2003-15, FEDEA.
    4. Dios Palomares, Rafaela & Martínez Paz, José Miguel & Martínezcarrasco Pleite, Federico, 2006. "Including environmental variables in the effi ciency analysis: A three-step method/El análisis de efi ciencia con variables de entorno: un método de programas con tres etapas," Estudios de Economia Aplicada, Estudios de Economia Aplicada, vol. 24, pages 477-497, Abril.
    5. S. Sosvilla-Rivero & R. Maroto-Illera, 2003. "Regimen changes and duration in the European Monetary System," Applied Economics, Taylor & Francis Journals, vol. 35(18), pages 1923-1933.
    6. Giuseppe Galloppo, 2009. "Dynamic Asset Allocation Using a Combined Criteria Decision System," Accounting & Taxation, The Institute for Business and Finance Research, vol. 1(1), pages 29-44.
    7. 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.
    8. Manahov, Viktor & Hudson, Robert & Gebka, Bartosz, 2014. "Does high frequency trading affect technical analysis and market efficiency? And if so, how?," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 28(C), pages 131-157.
    9. Marcus Buckmann & Andy Haldane & Anne-Caroline Hüser, 2021. "Comparing minds and machines: implications for financial stability," Oxford Review of Economic Policy, Oxford University Press and Oxford Review of Economic Policy Limited, vol. 37(3), pages 479-508.
    10. Gómez-Puig, Marta & Sosvilla-Rivero, Simón & Ramos-Herrera, María del Carmen, 2014. "An update on EMU sovereign yield spread drivers in times of crisis: A panel data analysis," The North American Journal of Economics and Finance, Elsevier, vol. 30(C), pages 133-153.
    11. Julián Andrada Félix & Fernando Fernández Rodríguez & María Dolores García Artiles, 2004. "Non-linear trading rules in the New York Stock Exchange," Documentos de trabajo conjunto ULL-ULPGC 2004-05, Facultad de Ciencias Económicas de la ULPGC.
    12. Sermpinis, Georgios & Stasinakis, Charalampos & Dunis, Christian, 2014. "Stochastic and genetic neural network combinations in trading and hybrid time-varying leverage effects," Journal of International Financial Markets, Institutions and Money, Elsevier, vol. 30(C), pages 21-54.
    13. Alexandros Milionis & Evangelia Papanagiotou, 2009. "A study of the predictive performance of the moving average trading rule as applied to NYSE, the Athens Stock Exchange and the Vienna Stock Exchange: sensitivity analysis and implications for weak-for," Applied Financial Economics, Taylor & Francis Journals, vol. 19(14), pages 1171-1186.
    14. Alexandros E. Milionis & Evangelia Papanagiotou, 2013. "Decomposing the predictive performance of the moving average trading rule of technical analysis: the contribution of linear and non-linear dependencies in stock returns," Journal of Applied Statistics, Taylor & Francis Journals, vol. 40(11), pages 2480-2494, November.
    15. Reyes Maroto Illera & Francisco Pérez Bermejo & Simón Sosvilla-Rivero, "undated". "An Eclectic Approach to Currency Crises: Drawing Lessons from the EMS Experience," Working Papers 2002-22, FEDEA.
    16. Andrada-Félix Julián & Fernadez-Rodriguez Fernando & Garcia-Artiles Maria-Dolores & Sosvilla-Rivero Simon, 2003. "An Empirical Evaluation of Non-Linear Trading Rules," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 7(3), pages 1-32, October.
    17. Jia Wang & Tong Sun & Benyuan Liu & Yu Cao & Degang Wang, 2021. "Financial Markets Prediction with Deep Learning," Papers 2104.05413, arXiv.org.
    18. Muhammad Arif & Muddasar Hasan & Abu Bakr & Muhammad Ziaullah & Muhammad Ali Tarer, 2018. "Profitability Of The Moving Averages Technical Trading Rules In An Emerging Stock Market-A Study Of Individual Stocks Listed On Pakistan Stock Exchange," IBT Journal of Business Studies (JBS), Ilma University, Faculty of Management Science, vol. 14(2), pages 67-76.
    19. Robert Kremer & Sherrill Shaffer, 2007. "Improving the accuracy of forward exchange rate forecasts by correcting for prior bias," Applied Financial Economics, Taylor & Francis Journals, vol. 17(18), pages 1469-1478.
    20. Emma Garcia & Simón Sosvilla-rivero, 2005. "Forecasting the dollar|euro exchange rate: are international parities useful?," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 24(5), pages 369-377.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:arx:papers:2104.04041. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.