Research on the Three-Stage Trading Strategy of Gold and Bitcoin Using Technical Indicators and A LSTM Model
DOI:
https://doi.org/10.54691/bcpbm.v20i.913Keywords:
Trading strategies, Decision tree classification, Long-term and short-term memory (LSTM) networks, Dynamic optimization.Abstract
In recent years, in pursuit of higher returns, people began to try the combination of bitcoin and gold. This study explored how to use the current and past prices of gold and bitcoin to get the best investment strategies for the next day to get the maximum return. The obtained historical price data of gold and bitcoin from 2016 to 2021 are divided into three stages according to the time axis, namely, stage Ⅰ (1st day-300th day), stage Ⅱ (300th day-400th day) and stage III (400th day-1825th day). Different methods are used for each stage to determine the trading strategy. In stage I, a comprehensive index is constructed by using four technical indexes closely related to the formulation of daily strategies in the financial market, such as moving average convergence and divergence, deviation rate, stochastic index and detrended price oscillator, and the trading strategy is determined by using this comprehensive index. In stage II, the four technical indicators and product prices in stage I are used as training sets, and the daily trading strategy is given by using the decision tree classification model. In the third stage, the long-term and short-term memory neural network is used to develop the future price prediction model of gold and bitcoin, and the trading strategies of gold, bitcoin and cash asset portfolios are formulated according to the dynamic optimization results of different types of traders' risk tolerance. The results show that during the five years from September 11, 2016 to September 10, 2021, the whole strategy created a net profit of $170,381 for aggressive traders and $7,694 for rational traders. After verification, our strategy is effective and robust, and its volatility is relatively small. The research provides theoretical guidance for investors on how to choose portfolios and trade to get the maximum return.
Downloads
References
X.X. Chen, Research on the asset allocation of Chinese investors in global market, Tongji University, Shanghai, 2008.
Y. Li, Research on the application of quantitative trading strategy model, Yunnan University of Finance and Economics, Kunming, 2014.
J.J. Wang, Quantitative trading applications in China's stock market, Nanjing University, Nanjing, 2013.
C. Ravi, Fuzzy Crow Search Algorithm-Based Deep LSTM for Bitcoin Prediction, in: International Journal of Distributed Systems and Technologies (IJDST), IGI Global, Pennsylvania, Hershey, 2020, pp. 53-71.
A.A.A. Aguirre, N.D.D. Méndez, R.A.R. Medina, Artificial intelligence applied to investment in variable income through the MACD (moving average convergence/divergence) indicator, in: Journal of Economics, Finance and Administrative Science, Emerald Publishing, United Kingdom, 2021, pp. 268-281.
T.H. Cormen, C.E. Leiserson, R.L. Rivest, C. Stein, Introduction to Algorithms third edition, The MIT Press, 2009.
B.B. Sahoo, R. Jha, A. Singh, D. Kumar, long short-term memory (LSTM) recurrent neural network for low-flow hydrological time series forecasting, in Acta Geophysica, Springer, Berlin, Heidelberg, 2019, pp. 1471–1481.
W. Bao, J. Yue, Y.L, Rao, A deep learning framework for financial time series using stacked autoencoders and long-short term memory, in: PLoS ONE, Public Library of Science, San Francisco, California, 2017, pp. 1–24.
Y.Q. Fang, Z. Lu, J.W. Ge, Forecasting stock prices with a combined RMSE loss LSTM-CNN model, in: Computer Engineering and Applications, Beijing “Computer Engineering and Application” Journal Co., Ltd., Beijing, 2022, pp. 1-10.
S. Mehtab, J. Sen, Stock Price Prediction Using CNN and LSTM-Based Deep Learning Models, in: 2020 International Conference on Decision Aid Sciences and Application (DASA), IEEE Press, Piscataway, NJ, 2020, pp. 447-453.






