Technical Analysis Based Automatic Trading Prediction System for Stock Exchange using Support Vector Machine

  • I Made Akira Ivandio Agusta Department of Informatics and Computer Engineering, Politeknik Elektronika Negeri Surabaya, Indonesia
  • Aliridho Barakbah Department of Informatics and Computer Engineering, Politeknik Elektronika Negeri Surabaya, Indonesia
  • Arna Fariza Department of Informatics and Computer Engineering, Politeknik Elektronika Negeri Surabaya, Indonesia
Keywords: stock trading prediction, technical indicators, support vector machine, buy-sell signal


Stock exchange trading has been utilized to gain profit by constantly buying and selling best-performing stocks in a short term. Deep knowledge, time dedication, and experience are essential for optimizing profit if stock price fluctuations are analyzed manually. This research proposes a new trading prediction system that has the ability to automatically predict the accurate time for buying and selling stock using a combination of technical analysis and support vector machine (SVM). Technical analysis is used to analyze stock price fluctuation based on historical data by utilizing technical indicators such as moving average, Bollinger bands, relative strength index, stochastic oscillator, and Aroon oscillator. SVM maps inputs into higher dimensional spaces using non-linear kernel functions, making it suitable for various technical indicators implementation as inputs in stock trading prediction. Experimentation on five Indonesian stocks reveals that the combination of technical analysis and support vector machine is best suited for continuously fluctuated stocks, with the highest accuracy of 77.8%.


Download data is not yet available.


A. Jungherr, M. Mader, H. Schoen, and A. Wuttke, Context-driven attitude formation: the difference between supporting free trade in the abstract and supporting specific trade agreements, Review of International Political Economy, 2018. DOI:

T. S. Coe and K. Laosethakul, Applying Technical Trading Rules to Beat Long-Term Investing: Evidence from Asian Markets, Asia-Pacific Financial Markets, 2021. DOI:

Y. A. Sadono, R. Hadi, and A. Widyasari, Tutup Tahun 2020 dengan Optimisme Pasar Modal Indonesia Lebih Baik, Indonesia Stock Exchange Press Release, 2020.

S. Lahmiri, A Technical Analysis Information Fusion Approach for Stock Price Analysis and Modeling, Fluctuation and Noise Letters, 2018. DOI:

N. Naik and B. R. Mohan, Optimal Feature Selection of Technical Indicator and Stock Prediction Using Machine Learning Technique, Communications in Computer and Information Science, 2019. DOI:

I. Kumar, K. Dogra, C. Utreja, and P. Yadav, A Comparative Study of Supervised Machine Learning Algorithms for Stock Market Trend Prediction, Proceedings of the International Conference on Inventive Communication and Computational Technologies (ICICCT), 2018. DOI:

Z. Dai, X. Dong, J. Kang, and L. Hong, Forecasting stock market returns: New technical indicators and two-step economic constraint method, North American Journal of Economics and Finance, 2020. DOI:

R. Pramudya and S. Ichsani, Efficiency of Technical Analysis for the Stock Trading, International Journal of Finance & Banking Studies, 2020.

Y. Chen and Y. Hao, Integrating principle component analysis and weighted support vector machine for stock trading signals prediction, Neurocomputing, 2018. DOI:

G. Jaiwang and P. Jeatrakul, Enhancing support vector machine model for stock trading using optimization techniques, 3rd International Conference on Digital Arts, Media and Technology, 2018. DOI:

F. Zhou, Q. Zhang, D. Sornette, and L. Jiang, Cascading logistic regression onto gradient boosted decision trees for forecasting and trading stock indices, Applied Soft Computing Journal, 2019. DOI:

O. B. Sezer, M. Ozbayoglu, and E. Dogdu, A Deep Neural-Network Based Stock Trading System Based on Evolutionary Optimized Technical Analysis Parameters, Procedia Computer Science, 2017. DOI:

C. Sang and M. Di Pierro, Improving trading technical analysis with TensorFlow Long Short-Term Memory (LSTM) Neural Network, Journal of Finance and Data Science, 2018. DOI:

Y. Roh, G. Heo, and S. E. Whang, A Survey on Data Collection for Machine Learning: A Big Data - AI Integration Perspective, IEEE Transactions on Knowledge and Data Engineering, 2019.

J. Jagwani, M. Gupta, H. Sachdeva, and A. Singhal, Stock Price Forecasting Using Data From Yahoo Finance and Analysing Seasonal and Nonseasonal Trend, Second International Conference on Intelligent Computing and Control Systems (ICICCS), 2018. DOI:

X. Wang and C. Wang, Time Series Data Cleaning: A Survey, IEEE Access, 2020. DOI:

A. Thakkar and K. Chaudhari, Fusion in stock market prediction: A decade survey on the necessity, recent developments, and potential future directions, Information Fusion, 2021. DOI:

S. A. N. Alexandropoulos, S. B. Kotsiantis, and M. N. Vrahatis, Data preprocessing in predictive data mining, Knowledge Engineering Review, 2019. DOI:

A. Picasso, S. Merello, Y. Ma, L. Oneto, and E. Cambria, Technical analysis and sentiment embeddings for market trend prediction, Expert Systems with Applications, 2019. DOI:

A. W. Li and G. S. Bastos, Stock market forecasting using deep learning and technical analysis: A systematic review, IEEE Access, 2020.

Y. Peng, P. H. M. Albuquerque, H. Kimura, and C. A. P. B. Saavedra, Feature selection and deep neural networks for stock price direction forecasting using technical analysis indicators, Machine Learning with Applications, 2021. DOI:

Y. Chen and Y. Hao, A feature weighted support vector machine and K-nearest neighbor algorithm for stock market indices prediction, Expert Systems with Applications, 2017. DOI:

R. T. Farias Nazário, J. L. e Silva, V. A. Sobreiro, and H. Kimura, A literature review of technical analysis on stock markets, Quarterly Review of Economics and Finance, 2017. DOI:

Y. Ni, M. Y. Day, P. Huang, and S. R. Yu, The profitability of Bollinger Bands: Evidence from the constituent stocks of Taiwan 50, Physica A: Statistical Mechanics and Its Applications, 2020. DOI:

A. Ntakaris, J. Kanniainen, M. Gabbouj, and A. Iosifidis, Mid-price prediction based on machine learning methods with technical and quantitative indicators, PLOS ONE, 2020. DOI:

D. A. Pisner and D. M. Schnyer, Support vector machine, Machine Learning: Methods and Applications to Brain Disorders, 2019. DOI:

G. C. Suguna et al., A Machine Learning Classification Approach for Detection of Covid 19 using CT Images, EMITTER International Journal of Engineering Technology, 2022.

How to Cite
Agusta, I. M. A. I., Barakbah, A., & Fariza, A. (2022). Technical Analysis Based Automatic Trading Prediction System for Stock Exchange using Support Vector Machine. EMITTER International Journal of Engineering Technology, 10(2), 279-293.