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

Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data

Author

Listed:
  • Taewook Kim
  • Ha Young Kim

Abstract

Forecasting stock prices plays an important role in setting a trading strategy or determining the appropriate timing for buying or selling a stock. We propose a model, called the feature fusion long short-term memory-convolutional neural network (LSTM-CNN) model, that combines features learned from different representations of the same data, namely, stock time series and stock chart images, to predict stock prices. The proposed model is composed of LSTM and a CNN, which are utilized for extracting temporal features and image features. We measure the performance of the proposed model relative to those of single models (CNN and LSTM) using SPDR S&P 500 ETF data. Our feature fusion LSTM-CNN model outperforms the single models in predicting stock prices. In addition, we discover that a candlestick chart is the most appropriate stock chart image to use to forecast stock prices. Thus, this study shows that prediction error can be efficiently reduced by using a combination of temporal and image features from the same data rather than using these features separately.

Suggested Citation

  • Taewook Kim & Ha Young Kim, 2019. "Forecasting stock prices with a feature fusion LSTM-CNN model using different representations of the same data," PLOS ONE, Public Library of Science, vol. 14(2), pages 1-23, February.
  • Handle: RePEc:plo:pone00:0212320
    DOI: 10.1371/journal.pone.0212320
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0212320
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0212320&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0212320?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. Fama, Eugene F & French, Kenneth R, 1992. "The Cross-Section of Expected Stock Returns," Journal of Finance, American Finance Association, vol. 47(2), pages 427-465, June.
    2. Thierry Jeantheau, 2004. "A link between complete models with stochastic volatility and ARCH models," Finance and Stochastics, Springer, vol. 8(1), pages 111-131, January.
    3. Neely, Christopher & Weller, Paul & Dittmar, Rob, 1997. "Is Technical Analysis in the Foreign Exchange Market Profitable? A Genetic Programming Approach," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 32(4), pages 405-426, December.
    4. Chen, Joseph & Hong, Harrison & Stein, Jeremy C., 2001. "Forecasting crashes: trading volume, past returns, and conditional skewness in stock prices," Journal of Financial Economics, Elsevier, vol. 61(3), pages 345-381, September.
    5. Wei Bao & Jun Yue & Yulei Rao, 2017. "A deep learning framework for financial time series using stacked autoencoders and long-short term memory," PLOS ONE, Public Library of Science, vol. 12(7), pages 1-24, July.
    6. French, Kenneth R. & Schwert, G. William & Stambaugh, Robert F., 1987. "Expected stock returns and volatility," Journal of Financial Economics, Elsevier, vol. 19(1), pages 3-29, September.
    7. Meese, Richard A. & Rogoff, Kenneth, 1983. "Empirical exchange rate models of the seventies : Do they fit out of sample?," Journal of International Economics, Elsevier, vol. 14(1-2), pages 3-24, February.
    8. Keim, Donald B. & Stambaugh, Robert F., 1986. "Predicting returns in the stock and bond markets," Journal of Financial Economics, Elsevier, vol. 17(2), pages 357-390, December.
    9. Fama, Eugene F, 1970. "Efficient Capital Markets: A Review of Theory and Empirical Work," Journal of Finance, American Finance Association, vol. 25(2), pages 383-417, May.
    10. Taylor, Mark P. & Allen, Helen, 1992. "The use of technical analysis in the foreign exchange market," Journal of International Money and Finance, Elsevier, vol. 11(3), pages 304-314, June.
    11. Blume, Lawrence & Easley, David & O'Hara, Maureen, 1994. "Market Statistics and Technical Analysis: The Role of Volume," Journal of Finance, American Finance Association, vol. 49(1), pages 153-181, March.
    12. Zhiqiang Guo & Huaiqing Wang & Quan Liu & Jie Yang, 2014. "A Feature Fusion Based Forecasting Model for Financial Time Series," PLOS ONE, Public Library of Science, vol. 9(6), pages 1-13, June.
    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. Hsu, Po-Hsuan & Taylor, Mark P. & Wang, Zigan & Li, Yan, 2024. "The out-of-sample performance of carry trades," Journal of International Money and Finance, Elsevier, vol. 143(C).
    2. Linnenluecke, Martina K. & Chen, Xiaoyan & Ling, Xin & Smith, Tom & Zhu, Yushu, 2017. "Research in finance: A review of influential publications and a research agenda," Pacific-Basin Finance Journal, Elsevier, vol. 43(C), pages 188-199.
    3. Stefanescu, Razvan & Dumitriu, Ramona, 2015. "Conţinutul analizei seriilor de timp financiare [The Essentials of the Analysis of Financial Time Series]," MPRA Paper 67175, University Library of Munich, Germany.
    4. Bertrand Maillet & Thierry Michel, 2000. "Further insights on the puzzle of technical analysis profitability," The European Journal of Finance, Taylor & Francis Journals, vol. 6(2), pages 196-224.
    5. Adam Karp & Gary Van Vuuren, 2019. "Investment Implications Of The Fractal Market Hypothesis," Annals of Financial Economics (AFE), World Scientific Publishing Co. Pte. Ltd., vol. 14(01), pages 1-27, March.
    6. Taylor, Mark & Hsu, Po-Hsuan, 2014. "Forty Years, Thirty Currencies and 21,000 Trading Rules: A Large-scale, Data-Snooping Robust Analysis of Technical Trading in t," CEPR Discussion Papers 10018, C.E.P.R. Discussion Papers.
    7. Lukas Menkhoff & Mark P. Taylor, 2007. "The Obstinate Passion of Foreign Exchange Professionals: Technical Analysis," Journal of Economic Literature, American Economic Association, vol. 45(4), pages 936-972, December.
    8. Chiarella, Carl & He, Xue-Zhong & Hommes, Cars, 2006. "A dynamic analysis of moving average rules," Journal of Economic Dynamics and Control, Elsevier, vol. 30(9-10), pages 1729-1753.
    9. Kwon, Ki-Yeol & Kish, Richard J., 2002. "A comparative study of technical trading strategies and return predictability: an extension of Brock, Lakonishok, and LeBaron (1992) using NYSE and NASDAQ indices," The Quarterly Review of Economics and Finance, Elsevier, vol. 42(3), pages 611-631.
    10. Bong-Chan, Kho, 1996. "Time-varying risk premia, volatility, and technical trading rule profits: Evidence from foreign currency futures markets," Journal of Financial Economics, Elsevier, vol. 41(2), pages 249-290, June.
    11. Yochanan Shachmurove & Uri BenZion & Paul Klein & Joseph Yagil, 2001. "A Moving Average Comparison of the Tel-Aviv 25 and S&P 500 Stock Indices," Penn CARESS Working Papers 4731f3394c43bebf4d3191c81, Penn Economics Department.
    12. Fernando Rubio, 2005. "Eficiencia De Mercado, Administracion De Carteras De Fondos Y Behavioural Finance," Finance 0503028, University Library of Munich, Germany, revised 23 Jul 2005.
    13. Foort Hamelink, 2001. "Nonlinear analysis for forecasting currencies: are they useful to the portfolio manager?," The European Journal of Finance, Taylor & Francis Journals, vol. 7(4), pages 335-355.
    14. David McMillan, 2004. "Non-linear predictability of UK stock market returns," Money Macro and Finance (MMF) Research Group Conference 2003 63, Money Macro and Finance Research Group.
    15. Kadilli, Anjeza, 2015. "Predictability of stock returns of financial companies and the role of investor sentiment: A multi-country analysis," Journal of Financial Stability, Elsevier, vol. 21(C), pages 26-45.
    16. Cheol‐Ho Park & Scott H. Irwin, 2007. "What Do We Know About The Profitability Of Technical Analysis?," Journal of Economic Surveys, Wiley Blackwell, vol. 21(4), pages 786-826, September.
    17. Taufiq Choudhry & Ranadeva Jayasekera, 2015. "Level of efficiency in the UK equity market: empirical study of the effects of the global financial crisis," Review of Quantitative Finance and Accounting, Springer, vol. 44(2), pages 213-242, February.
    18. Stephan Schulmeister, 2000. "Technical Analysis and Exchange Rate Dynamics," WIFO Studies, WIFO, number 25857, January.
    19. Trifan, Emanuela, 2004. "Entscheidungsregeln und ihr Einfluss auf den Aktienkurs," Darmstadt Discussion Papers in Economics 131, Darmstadt University of Technology, Department of Law and Economics.
    20. Kun Xing & Honggang Li, 2024. "The profitability of interacting trading strategies from an ecological perspective," Annals of Finance, Springer, vol. 20(3), pages 377-394, September.

    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:pone00:0212320. 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: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    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.