Current Trends in Signal Processing

Implementation of K-Means clustering algorithm with technical indicators to identify Profitable stocks

  1. Dhwaj Sharma ✉
  2. Bhupesh Gour

Abstract

In the ever-changing world of stock market trading, accurately predicting price movements is key to maximizing profits. Technical analysis, which looks at past price data to predict future trends, provides valuable insights for investors. This paper delves into using machine learning methods, particularly the K-Means clustering algorithm, along with moving average data, to categorize daily trading patterns. By breaking down the market into clusters and examining the main patterns within the largest cluster, this study aims to identify positive or negative trends. We worked with a dataset spanning ten years of historical data from five companies listed on the National Stock Exchange of India (NSE), including HDFC Bank Ltd., Hindustan Unilever Ltd., Asian Paints Limited, Maruti Suzuki India Limited, and NTPC Limited. The approach involves collecting data, preprocessing it, and conducting clustering analysis using K-Means. Following this, we evaluate and analyze profitability, including backtesting against historical data to verify algorithmic results. This research adds to the evolving field of stock market analysis by merging technical indicators with machine learning algorithms to aid in making well-informed investment decisions.

Keywords

References (11)

  1. Shah D, Isah H, Zulkernine F. Stock market analysis: A review and taxonomy of prediction techniques. International Journal of Financial Studies. 2019 May 27;7(2):26.
  2. Khan AU, Gour BH. Stock market trends prediction using neural network -based hybrid model. International Journal of Computer Science Engineering and Information Technology Research. 2013;3(1):11-8.
  3. Deng S, Mitsubuchi T, Shioda K, Shimada T, Sakurai A. Combining technical analysis with sentiment analysis for stock price prediction. In2011 IEEE ninth international conference on dependable, autonomic, and secure computing 2011 Dec 12 (pp. 800-807). IEEE.
  4. Shen S, Jiang H, Zhang T. Stock market forecasting using machine learning algorithms. Department of Electrical Engineering, Stanford University, Stanford, CA. 2012:1-5.
  5. W. Huang et al., “Forecasting stock market movement direction with support vector machine,” Computers & Operations Research, 32, pp. 2513–2522005, 2005
  6. Gupta SC, Singh S, Kumar D. Stock Prediction using Machine Learning Algorithms. Grenze International Journal of Engineering & Technology (GIJET). 2022 Jan 1;8(1). Current Trends in Signal Processing Volume 13, Issue 3 ISSN: 2277-6176 (Online), ISSN: 2321-4252 (Print) © STM Journals 2023. All Rights Reserved 14
  7. Gour B, Maurya JP, Richhariya V. Converging Deep Learning Neural Network Architecture for Predicting NSE-50. In2021 6th International Conference for Convergence in Technology (I2CT) 2021 Apr 2 (pp. 1-4). IEEE.
  8. Ding B, Li L, Zhu Y, Liu H, Bao J, Yang Z. Research on comprehensive analysis method of stock KDJ index based on K -means clustering. In3rd International Conference on Mechatronics Engineering and Information Technology (ICMEIT 2019) 2019 Apr (pp. 484-491). Atlantis Press.
  9. Moody J, Saffell M. Learning to trade via direct reinforcement. IEEE transactions on neural Networks. 2001 Jul;12(4):875-89.
  10. Lee CT, Chen YP. The efficacy of neural networks and simple technical indicators in predicting stock markets. In2007 International Conference on Convergence Information Technology (ICCIT 2007) 2007 Nov 21 (pp. 2292-2297). IEEE.
  11. National Stock Exchange of India (NSE) Website. Historical Stock Market Data. Retrieved from https://www.nseindia.com.

Read more of it

Subscribe to one journal or build your own list of several. One invoice, one payment, access for a full year.

Subscribe to journals →

Publish your article

Peer-reviewed journals across every subject, with open access options. Send your manuscript to the right editor today.

Publish with us → Calculate your APC
Support