Trading Strategy on Market Stock by Analyzing Candlestick Pattern using Artificial Neural Network (ANN) Method

Authors

  • Ni Putu Winda Ardiyanti Telkom University, Bandung
  • Irma Palupi Telkom University, Bandung
  • Indwiarti Indwiarti Telkom University, Bandung

DOI:

https://doi.org/10.30865/mib.v5i4.3266

Keywords:

Artificial Neural Network, Candlestick, K-Fold Cross-Validation, Technical Analysis, Trading Strategy

Abstract

Technical analysis plays an important role in a stock market. Traders using technical analysis to find the trading strategy on the market stock. There are some technical indicators tools that can support the technical analysis, such as Moving Average, Stochastic, and others. Candlestick pattern also parts of the tools that used in technical analysis to develop the trading strategy since Candlestick represents the stock behavior. Therefore, understanding the Candlestick pattern and technical indicator tools will be valuable for the traders to predict the trading strategy. This study performs the prediction of trading strategy by analyzing the Candlestick pattern using an Artificial Neural Network (ANN). The technical indicator tools and Candlestick pattern will be generated as the features and label data in the modeling process. The method is applied to four stocks from IDX through their technical indicators for a certain period of time. We find that in the period of 28 days, the model generates the highest accuracy that reached 85.96%. We also used K-Fold Cross-Validation to evaluate the result of model performance that generates

References

O. Coupelon, “Neural network modeling for stock movement prediction A state of the art,†Network, pp. 1–5, 2007, [Online]. Available: http://olivier.coupelon.free.fr/Neural_network_modeling_for_stock_movemen_prediction.pdf.

J. (New Y. I. of F. Murphy, Technical Analysis of The Financial Markets. 1999.

O. Hegazy, O. S. Soliman, and M. A. Salam, “A Machine Learning Model for Stock Market Prediction,†no. May 2014, 2014, [Online]. Available: http://arxiv.org/abs/1402.7351.

S. Sukamulja, “Analisis Fundamental, Teknikal dan program Meta stock,†2005.

F. Nuraini, D. Jondri, M. Si, and T. A. B. W, “Prediksi Pergerakan Indeks Harga Saham Menggunakan Artificial Neural Network dan Support Vector Machine Prediction of Stock Price Index Movement Using Artificial Neural Network and Support Vector Machine,†eProceedings Eng., vol. 2, no. 3, 2015.

H. Ryou, H. H. Bae, H. S. Lee, and K. J. Oh, “Momentum investment strategy using a hidden Markov model,†Sustain., vol. 12, no. 17, 2020, doi: 10.3390/su12177031.

J. H. Chen and Y. C. Tsai, “Encoding candlesticks as images for pattern classification using convolutional neural networks,†Financ. Innov., vol. 6, no. 1, 2020, doi: 10.1186/s40854-020-00187-0.

R. M. I. Kusuma, T.-T. Ho, W.-C. Kao, Y.-Y. Ou, and K.-L. Hua, “Using Deep Learning Neural Networks and Candlestick Chart Representation to Predict Stock Market,†pp. 1–13, 2019, [Online]. Available: http://arxiv.org/abs/1903.12258.

Y. Wan and Y.-W. Si, “A formal approach to chart patterns classification in financial time series,†Inf. Sci., vol. 411, pp. 151–175, 2017, doi: 10.1016/j.ins.2017.05.028.

I. Palupi, B. A. Wahyudi, and I. Indwiarti, “The clustering algorithms approach for decision efficiency in investment portfolio diversification,†2019 7th Int. Conf. Inf. Commun. Technol. ICoICT 2019, pp. 1–6, 2019, doi: 10.1109/ICoICT.2019.8835314.

Y. Kara, M. Acar Boyacioglu, and Ö. K. Baykan, “Predicting direction of stock price index movement using artificial neural networks and support vector machines: The sample of the Istanbul Stock Exchange,†Expert Syst. Appl., vol. 38, no. 5, pp. 5311–5319, 2011, doi: 10.1016/j.eswa.2010.10.027.

M. F. Rahman, D. Alamsah, M. I. Darmawidjadja, and I. Nurma, “Klasifikasi Untuk Diagnosa Diabetes Menggunakan Metode Bayesian Regularization Neural Network (RBNN),†J. Inform., vol. 11, no. 1, p. 36, 2017, doi: 10.26555/jifo.v11i1.a5452.

M. M. Goswami, C. K. Bhensdadia, and A. P. Ganatra, “Candlestick analysis based short term prediction of stock price fluctuation usingSOM-CBR,†2009 IEEE Int. Adv. Comput. Conf. IACC 2009, no. March, pp. 1448–1452, 2009, doi: 10.1109/IADCC.2009.4809230.

H. A. Do Prado, E. Ferneda, L. C. R. Morais, A. J. B. Luiz, and E. Matsura, “On the effectiveness of candlestick chart analysis for the Brazilian stock market,†Procedia Comput. Sci., vol. 22, pp. 1136–1145, 2013, doi: 10.1016/j.procs.2013.09.200.

P. Tharavanij, V. Siraprapasiri, and K. Rajchamaha, “Profitability of candlestick charting patterns in the stock exchange of Thailand,†SAGE Open, vol. 7, no. 4, 2017, doi: 10.1177/2158244017736799.

J. I. Larsen, “Predicting Stock Prices Using Technical Analysis and Machine Learning,†Urban Stud., vol. 5, no. 2, pp. 232–233, 1968, doi: 10.1080/00420986820080431.

A. G. Farizawani, M. Puteh, Y. Marina, and A. Rivaie, “A review of artificial neural network learning rule based on multiple variant of conjugate gradient approaches,†J. Phys. Conf. Ser., vol. 1529, no. 2, 2020, doi: 10.1088/1742-6596/1529/2/022040.

S. Agatonovic-Kustrin and R. Beresford, “Basic concepts of artificial neural network (ANN) modeling and its application in pharmaceutical research,†J. Pharm. Biomed. Anal., vol. 22, no. 5, pp. 717–727, 2000, doi: 10.1016/S0731-7085(99)00272-1.

J. Singh and R. Banerjee, “A study on single and multi-layer perceptron neural network,†Proc. 3rd Int. Conf. Comput. Methodol. Commun. ICCMC 2019, no. Iccmc, pp. 35–40, 2019, doi: 10.1109/ICCMC.2019.8819775.

J. D. H. Simanjuntak, I. Indwiarti, and A. A. Rohmawati, “Comparison Of Stock Price Prediction With Generalized Autoregressive Conditional Heteroscedasticity Model And Artificial Neural Network,†eProceedings Eng., 2019.

D. Berrar, “Cross-validation,†Encycl. Bioinforma. Comput. Biol. ABC Bioinforma., vol. 1–3, no. January 2018, pp. 542–545, 2018, doi: 10.1016/B978-0-12-809633-8.20349-X.

Downloads

Published

2021-10-26