skip to main content
10.1145/3587828.3587851acmotherconferencesArticle/Chapter ViewAbstractPublication PagesicscaConference Proceedingsconference-collections
research-article

Object Detection Approach for Stock Chart Patterns Recognition in Financial Markets

Published:20 June 2023Publication History

ABSTRACT

Technical analysis is a chart-based method, from price movements and trading volume of stocks to analyze movements to make trend predictions and make real buying and selling decisions. Pattern-based technical analysis is one of the most effective for stock market volatility. The problem analysts often face is that looking for patterns wastes time and effort with thousands of stock symbols. This research aims to apply object detection techniques to analyze and recognize chart patterns, thus evaluating the accuracy of price action candlesticks. However, image data of the patterns on the candlestick chart is too scarce. We built an image dataset consisting of four patterns: Head and Shoulder, reverse Head and Shoulders, Double Top, and Double Bottom. Candlestick charts' distinctive shape makes it challenging to discern precise patterns, and segmentation has been used in the data processing section to reduce candlestick chart noise.

Moreover, data collection also encountered the problem of time and effort. So the method to generate variable data uses possible patterns to enrich the data set. The experiments reveal that performance in detecting patterns is described later in this article.

References

  1. Lovrić, Miodrag; Milanović, Marina; Stamenković, Milan .2014. Algoritmic methods for segmentation of time series: An overview. In Journal of Contemporary Economic and Business Issues.ISSN 1857-9108.Google ScholarGoogle Scholar
  2. Jamaloodeen, Mohamed; Heinz, Adrian; and Pollacia, Lissa .2018. A Statistical Analysis of the Predictive Power of Japanese Candlesticks. Journal of International & Interdisciplinary Business Research: Vol. 5 , Article 5.Google ScholarGoogle Scholar
  3. Max Jönsson. 2016. The Predictive Power of Candlestick Patterns. In Department of Economics NEKH01.Google ScholarGoogle Scholar
  4. Zhu M., Atri S., Yegen E. 2016. Are candlestick trading strategies effective in certain stocks with distinct features. In Pacific-Basin Finance Journal, 37, 116-127.Google ScholarGoogle ScholarCross RefCross Ref
  5. Nguyen, N. 2016. Stock Price Prediction using Hidden Markov Model. Editorial Express, March, 21.Google ScholarGoogle Scholar
  6. Henrique BM, Sobreiro VA, Kimura H. Literature review: machine learning techniques applied to financial market prediction. Expert Syst Appl. 2019; 124:226–51.Google ScholarGoogle Scholar
  7. Zhang Y, Wu L. Stock market prediction of S&P 500 via combination of improved BCO approach and BP neural network. Expert Syst Appl. 2009; 36(5):8849–54.Google ScholarGoogle Scholar
  8. Xinyu Guo, Xun Liang, Xiang Li. 2007. A Stock Pattern Recognition Algorithm Based on Neural Networks. Third International Conference on Natural Computation .ICNC.Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. Moghaddam AH, Moghaddam MH, Esfandyari MJJoEF, Science A. 2016.Stock market index prediction using artificial neural network.89–93.Google ScholarGoogle Scholar
  10. Krauss C, Do XA, Huck N. 2017. Deep neural networks, gradient-boosted trees, random forests: Statistical arbitrage on the S&P 500. Eur J Oper Res. 259(2):689–702.Google ScholarGoogle ScholarCross RefCross Ref
  11. C. L. Jan.2018.An effective financial statements fraud detection model for the sustainable development of financial markets: evidence from Taiwan. Sustainability ,vol. 10, no. 2 p. 513.Google ScholarGoogle ScholarCross RefCross Ref
  12. Gupta D, Pratama M, Ma Z, Li J, Prasad M.2019. Financial time series forecasting using twin support vector regression. PLoS ONE. 14(3).Google ScholarGoogle Scholar
  13. Kusuma, R. M. I., Ho, T. T., Kao, W. C., Ou, Y. Y., & Hua, K. L. (2019). Using deep learning neural networks and candlestick chart representation to predict stock market. arXiv preprint arXiv:1903.12258.Google ScholarGoogle Scholar
  14. Liang Q, Rong W, Zhang J, Liu J, Xiong Z, editors .2017. Restricted Boltzmann machine based stock market trend prediction. International Joint Conference on Neural Networks (IJCNN).IEEE.Google ScholarGoogle Scholar
  15. Yaohu Lin, Shancun Liu, Haijun Yang. 2020. Improving stock trading decisions based on pattern recognition using machine learning technology. PMID: 34358269.Google ScholarGoogle Scholar
  16. James Chen, LLC .2015.Double Bottom Definition.In Investopedia.Google ScholarGoogle Scholar
  17. Chung, Fu-Lai 2004. An evolutionary approach to pattern-based time series segmentation. In IEEE transactions on evolutionary computation.8.5, pp. 471-489.Google ScholarGoogle Scholar
  18. Aleksey Bochkovskiy, Chien-Yao Wang, Hong-Yuan Mark Liao .2020.YOLOv4: Optimal Speed and Accuracy of Object Detection. In ArXiv. ArXiv:2004.10934.Google ScholarGoogle Scholar
  19. Chien-Yao Wang, Alexey Bochkovskiy, Hong-Yuan Mark Liao .2020. Scaled-YOLOv4: Scaling Cross Stage Partial Network. In ArXiv. ArXiv:2011.08036.Google ScholarGoogle Scholar
  20. Zheng Ge, Songtao Liu, Feng Wang, Zeming Li, Jian Sun. 2021 YOLOX: Exceeding YOLO Series in 2021. In ArXiv. ArXiv:2107.08430.Google ScholarGoogle Scholar
  21. MixingTan,QuocV.Le. 2020 .EfficientDet:Scalable and Efficient Object Detection. In ArXiv .ArXiv:1911.09070.Google ScholarGoogle Scholar
  22. Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier,Alexander Kirillov, ,SergeyZagoruyko. 2020. End-to-End Object Detection with Transformers. In ArXiv .ArXiv:2005.12872v3.Google ScholarGoogle Scholar
  23. Yufeng Han,Yang Liu, Guofu Zhou and Yingzi Zhu.2021.Technical Analysis in the Stock Market: A Review. In SSRN Journal. 10.2139.Google ScholarGoogle Scholar
  24. Chien-Yao Wang, I-Hau Yeh, Hong-Yuan Mark Liao .2021.You Only Learn One Representation: Unified Network for Multiple Tasks. In ArXiv. ArXiv: 2105.04206Google ScholarGoogle Scholar
  25. MixingTan, QuocV.Le. 2019. EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. In ArXiv.ArXiv: 1905.11946.Google ScholarGoogle Scholar
  26. Jun-Hao Chen, Yun-Cheng Tsai.2020. Encoding candlesticks as images for pattern classification using convolutional neural networks. Southwestern University of Finance and Economics, vol. 6(1), pages 1-19, December.Google ScholarGoogle Scholar
  27. Yu-Chia Hsu.2021.Using Convolutional Neural Network and Candlestick Representation to Predict Sports Match Outcomes.Appl. Sci. 2021, 11(14), 6594 .Google ScholarGoogle Scholar
  28. SERDAR BIROGUL, GÜNAY TEMÜR , AND UTKU KOSE. 2020. YOLO Object Recognition Algorithm and "Buy-Sell Decision" Model Over 2D Candlestick Charts. IEEE.Google ScholarGoogle Scholar
  29. Celal Buğra Kaya, Alperen Yılmaz, Gizem Nur Uzun, Zeynep Hilal Kilimci. 2020. Stock Pattern Classification from Charts using Deep Learning Algorithms. In 8 th International Symposium on Innovative Technologies in Engineering and Science.Google ScholarGoogle Scholar
  30. Zhang N, Lin A, Shang P.2017. Multidimensional k-nearest neighbor model based on EEMD for financial time series forecasting. Phys A Stat Mech its Appl. 477:161–73.Google ScholarGoogle Scholar
  31. Fischer T, Krauss C. 2018.Deep learning with long short-term memory networks for financial market predictions. Eur J Oper Res. 270(2):654–69.Google ScholarGoogle ScholarCross RefCross Ref
  32. Bao W, Yue J, Rao Y.2017. A deep learning framework for financial time series using stacked autoencoders and long-short term memory. PLoS ONE. 12(7):e0180944.Google ScholarGoogle ScholarCross RefCross Ref
  33. Qiu J, Wang B, Zhou C. 2020. Forecasting stock prices with long-short term memory neural network based on attention mechanism. PLoS ONE. 15(1).Google ScholarGoogle Scholar

Index Terms

  1. Object Detection Approach for Stock Chart Patterns Recognition in Financial Markets

    Recommendations

    Comments

    Login options

    Check if you have access through your login credentials or your institution to get full access on this article.

    Sign in
    • Published in

      cover image ACM Other conferences
      ICSCA '23: Proceedings of the 2023 12th International Conference on Software and Computer Applications
      February 2023
      385 pages
      ISBN:9781450398589
      DOI:10.1145/3587828

      Copyright © 2023 ACM

      Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

      Publisher

      Association for Computing Machinery

      New York, NY, United States

      Publication History

      • Published: 20 June 2023

      Permissions

      Request permissions about this article.

      Request Permissions

      Check for updates

      Qualifiers

      • research-article
      • Research
      • Refereed limited
    • Article Metrics

      • Downloads (Last 12 months)106
      • Downloads (Last 6 weeks)12

      Other Metrics

    PDF Format

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    HTML Format

    View this article in HTML Format .

    View HTML Format