Stock Market Forecasting Using ant Colony Optimization Based Algorithm
American Journal of Mathematical and Computer Modelling
Volume 4, Issue 3, September 2019, Pages: 52-57
Received: May 30, 2019; Accepted: Jul. 10, 2019; Published: Aug. 10, 2019
Views 500      Downloads 161
Muhammed Kabir Ahmed, Department of Mathematics, Gombe State University, Gombe, Nigeria
Gregory Maksha Wajiga, Department of Computer Science, Modibbo Adama University of Technology, Yola, Nigria
Nachamada Vachaku Blamah, Department of Computer Science, University of Jos, Jos, Nigeria
Bala Modi, Department of Mathematics, Gombe State University, Gombe, Nigeria
Article Tools
Follow on us
Due to the importance of forecasting the capital market earnings in finance, recently the aspect of stock market prediction has been a major research area that has generated a lot of attention involving various machine learning algorithms. In the recent presentations, it has been indicated that neural networks have some drawbacks in learning the data patterns or that they may perform inconsistently and unpredictable because of the complexity of the stock market data. However, due to the distributive nature of the capital market, a computational intelligence technique called Ant Colony Optimization (ACO) which is suitable for solving distributed control problem was applied in this paper, to get the most optimal solution from three technical analysis strategies. The obtained optimal prediction of the next day closing stock price the ACO algorithm performs better than the other three approaches (Price Momentum Oscillator, Stochastic and Moving Average). Our algorithm (ACO based) was evaluated to have the accuracy of 0.812500, Sensitivity of 0.907407 and Specificity of 0.690476. The ACO based technique have the highest accuracy, Sensitivity and Specificity than the other three (3) technical indicators in predicting the next day closing stock price. Therefore, the optimal prediction of our ACO Agent provides a better forecast than the three initial strategies.
Stock Market, Technical Analysis, ACO, Forecasting
To cite this article
Muhammed Kabir Ahmed, Gregory Maksha Wajiga, Nachamada Vachaku Blamah, Bala Modi, Stock Market Forecasting Using ant Colony Optimization Based Algorithm, American Journal of Mathematical and Computer Modelling. Vol. 4, No. 3, 2019, pp. 52-57. doi: 10.11648/j.ajmcm.20190403.11
Copyright © 2019 Authors retain the copyright of this article.
This article is an open access article distributed under the Creative Commons Attribution License ( which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Adanma, E. S., Oleka, D. C., and Nwanne, T. F. I. (2015). The Nigerian Stock Exchange: A Bane for Sustainable Economic Development. EUROPEAN JOURNAL OF BUSINESS AND SOCIAL SCIENCES. Vol. 3, No. 1.
Olusegun, O., Matthew, O., and Fasina, F. (2011). Nigerian stock exchange and economic development. Knowledge Management, Information Management, Learning Management. No. 14.
Osazevbaru, H. O. (2014). Measuring Nigerian Stock Market Volatility. SINGAPOREAN Journal of Business Economics, and management studies Vol. 2, no 8.
Ghoshal, S. and Roberts, S (2015). Forecasting Time Series from heterogeneous Data Streams using Adaptive Automatic Relevance Determination Gaussian Process Regression. University of Oxford.
Milosevic, N. (2016). Equity Forecast: Predicting Long Term Stock Price Movement using Machine Learning. Journal of Economics Library Volume 3 (2).
Tsai, C. F. and Wang, S. P., (2009). Stock Price Forecasting by Hybrid Machine Learning Techniques: Proceedings of the International Multi-Conference of Engineers and Computer Scientists IMECS 2009, Hong Kong. Vol. 1.
Shen, S., Jiang, H. and Zhang, T. (2016). Stock Market Forecasting Using Machine Learning Algorithms. Citeseer.
Pang. X, Zhou. Y, Wang. P, Lin, W and Chang, V. Stock Market Prediction based on Deep Long Short Term Memory Neural Network In Proceedings of the 3rd International Conference on Complexity, Future Information Systems and Risk (COMPLEXIS 2018), pages 102-108.
Dorigo, M and Stutzle, T. (2004). Ant Colony Optimizatio:. London: A Bradford Book, The MIT Press, Cambridge, Massachusetts.
Blum, C. (2005). Ant Colony Optimization: Introduction and Recent Trends: Science Direct, Physics of Life Review 353-373.
Stützle, T. and Hoosb, H. H. (2000). MAX–MIN Ant System: Future Generation Computer Systems, 16 (2000) 889–914.
Katiyar, S, Nasiruddin, I and Ansari, A.(2015). Ant Colony Optimization: A Tutorial Review. National Conference on Advances in Power and Control, At Faculty of Engineering and Technology, Manav Rachna International University, Faridabad, Haryana.
Ramalingam. S and Sujatha. P (2018). An Extensive Work on Stock Price Prediction Using Ant Colony Optimization Algorithm (ACO-SPP). International Journal of Intelligent Engineering and Systems, Vol. 11, No. 6.
Stock Basics Tutorials (2010). Investopedia, A Division of Value Click, Inc.
Science Publishing Group
1 Rockefeller Plaza,
10th and 11th Floors,
New York, NY 10020
Tel: (001)347-983-5186