Forecasting Stock Market Trend using Machine Learning Algorithms with Technical Indicators

Full Text (PDF, 634KB), PP.32-38

Views: 0 Downloads: 0


Partho Protim Dey 1,* Nadia Nahar 1 B M Mainul Hossain 1

1. Institute of Information Technology, University of Dhaka, Dhaka 1000, Bangladesh

* Corresponding author.


Received: 9 Dec. 2019 / Revised: 1 Feb. 2020 / Accepted: 14 Feb. 2020 / Published: 8 Jun. 2020

Index Terms

Stock price movement, technical indicators, machine learning techniques, DSE


Stock market prediction is a process of trying to decide the stock trends based on the analysis of historical data. However, the stock market is subject to rapid changes. It is very difficult to predict because of its dynamic & unpredictable nature. The main goal of this paper is to present a model that can predict stock market trend. The model is implemented with the help of machine learning algorithms using eleven technical indicators. The model is trained and tested by the published stock data obtained from DSE (Dhaka Stock Exchange, Bangladesh). The empirical result reveals the effectiveness of machine learning techniques with a maximum accuracy of 86.67%, 64.13% and 69.21% for “today”, “tomorrow” and “day_after_tomorrow”.

Cite This Paper

Partho Protim Dey, Nadia Nahar, B M Mainul Hossain, "Forecasting Stock Market Trend using Machine Learning Algorithms with Technical Indicators", International Journal of Information Technology and Computer Science(IJITCS), Vol.12, No.3, pp.32-38, 2020. DOI:10.5815/ijitcs.2020.03.05


[1]G. S. Atsalakis and K. P. Valavanis, “Surveying stock market forecasting techniques – Part II: Soft computing methods,” Expert systems with applications, vol. 36, no. 3, pp. 5932–5941, Apr. 2009.

[2]G. S. Atsalakis and K. P. Valavanis, “Surveying stock market forecasting techniques – Part II: Soft computing methods,” Expert systems with applications, vol. 36, no. 3, pp. 5932–5941, Apr. 2009.

[3]D. J. Bodas-Sagi, P. Fernández-Blanco, J. I. Hidalgo, and F. J.Soltero -Domingo, “A parallel evolutionary algorithm for technical market indicators optimization,” Natural computing, vol. 12, no. 2, pp. 195–207, Sep. 2012.

[4]F. Andrade de Oliveira, L. Enrique Zarate, M. de Azevedo Reis, and C. Neri Nobre, “The use of artificial neural networks in the analysis and prediction of stock prices,” in Proceedings of the IEEE International conference on systems, man, and cybernetics, 2011, pp. 2151–2155.

[5]Fama, E., Fisher, L., Jensen, M., & Roll, R. (1969). The Adjustment of Stock Prices to New Information. International Economic Review, 10(1), 1-21. doi:10.2307/2525569

[6]Fama, E. (1965). Tomorrow on the New York Stock Exchange. The Journal of Business, 38(3), 285-299. Retrieved from

[7]In Cootner, P. H. (2001). The random character of stock market prices. London: Risk.

[8]Fama, Eugene. (1965). The Behavior of Stock Market Price. Journal of Business - J BUS. 38. 10.1086/294743.

[9]Wang, Jian-Zhou & Wang, Ju-Jie & Zhang, George & Guo, Shu-Po. (2011). Forecasting stock indices with back propagation neural network. Expert Syst. Appl. 38. 14346-14355. 10.1016/j.eswa.2011.04.222.

[10]J. H. Kim, A. Shamsuddin, and K.-P. Lim, “Stock return predictability and the adaptive markets hypothesis: Evidence from century-long U.S. data,” Journal of Empirical Finance, vol. 18, no. 5, pp. 868–879, Dec. 2011.

[11] N. Taylor, “The rise and fall of technical trading rule success,” Journal of Banking & Finance, vol. 40, pp. 286–302, Mar. 2014.

[12]Fernández, Pablo & Bodas Sagi, Diego J. & Soltero, Francisco & Hidalgo, Ignacio. (2008). Technical market indicators optimization using evolutionary algorithms. GECCO'08: Proceedings of the 10th Annual Conference on Genetic and Evolutionary Computation 2008. 1851-1858. 10.1145/1388969.1388989.

[13]Allen F., Karjalainen R. Using Genetic Algorithms to Find Technical Trading Rules. Journal of Financial Economics. Vol 5. Pp. 245-275. 1999

[14]Arifovic J., Evolutionary Algorithms in Macroeconomic Models. Macroeconomic Dynamics, Cambridge University Press, vol. 4(3), pags. 373-414, September 2000.

[15]Sharma, M.; Sharma, S.; Singh, G. Performance Analysis of Statistical and Supervised Learning Techniques in Stock Data Mining. Data 2018, 3, 54.

[16]Bodas Sagi, Diego J. & Fernández, Pablo & Hidalgo, Ignacio & Soltero, Francisco & Risco-Martín, José L.. (2009). Multiobjective optimization of technical market indicators. 1999-2004. 10.1145/1570256.1570266.

[17]Kara, Yakup & Boyacioglu, Melek & Baykan, Omer. (2011). Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul Stock Exchange. Expert Systems with Applications. 38. 5311-5319. 10.1016/j.eswa.2010.10.027.

[18]Shynkevich, Yauheniya & Mcginnity, T.M. & Coleman, Sonya & Belatreche, Ammar & Li, Yuhua. (2017). Forecasting Price Movements using Technical Indicators: Investigating the Impact of Varying Input Window Length. Neurocomputing. 10.1016/j.neucom.2016.11.095.

[19]Stocks & Commodities V16:1 (33-37): Smoothing Techniques For More Accurate Signals by Tim Tillson

[20]Wilder, J.. (1978). New Concepts in Technical Trading Systems.

[21]Bollinger, John. Bollinger on Bollinger Bands. McGraw Hill, 2002. ISBN 978-0-07-137368-5

[22]Granville, J. E. (1976). Granville's new strategy of daily stock market timing for maximum profit. Englewood Cliffs, N.J: Prentice-Hall.