Research on the Investment Strategy of Quantitative Trading Based on Random Forest and Genetic Algorithm

Authors

  • Yuwei Chen
  • Yueyang Zhang
  • Yufeng Lan
  • Yujia Liu
  • Yaoxiang Lin

DOI:

https://doi.org/10.54691/bcpbm.v23i.1330

Keywords:

Quantitative Investments, Random Forest, Genetic Algorithm.

Abstract

Gold and Bitcoin are two common investments in the market. Investors profit from the capital market through specific trading strategies. Based on previous price data, this paper established a prediction-decision model, which provides investors with an optimal trading strategy and effectively improves the return on investment. To begin with, we use the past daily price of gold and bitcoin to calculate the Bollinger band, DMA, and MACD characteristics. We used the Random Forest algorithm to predict the next day's price and established a loop to predict all price data. Finally, we got the prediction data with the goodness of fit ( ) as high as 0.98. We intuitively see that the prediction effect is pretty good from the predictive value-real value-line chart. Then, we established the transaction decision-making objective model, used the Genetic Algorithm to select the daily transaction amount, obtained the optimal transaction strategy, and then established a loop to obtain all the optimal strategies. The final total assets were 243,424.76, and the annual return rate reached 6085.62%.

Downloads

Download data is not yet available.

References

BROCK W, LAKONISHOK J, LEBARON B. Simple technical trading rules and the stochastic properties of stock returns [J]. The Journal of Finance, 1992, 47(1): 1731-1764.

LAI M M, LAU S H. The profitability of the simple moving averages and trading range breakout in the Asian stock markets [J]. Journal of Asian Economics, 2006, 17(1): 144-170.

MARSHALL B R, NGUYEN N H. VISALTANACHOTI N. Time series momentum and moving average trading rules [J]. Quantitative Finance, 2017,17(3): 405-421.

RAD H, LOW R K Y, FAFF R. The profitability of pairs trading strategies: Distance, cointegration and copula methods [J]. Quantitative Finance, 2016, 16(10): 1541-1558.

B.S. Bini, Tessy Mathew. Clustering and Regression Techniques for Stock Prediction[J]. Procedia Technology,2016,24(C):

Ding Y, Cheng L, Pedrycz W, et al. Global Nonlinear Kernel Prediction for Large Data Set With a Particle Swarm-Optimized Interval Support Vector Regression[J]. IEEE Transactions on Neural Networks & Learning Systems, 2017, 26(10):2521-2534.

Wen M, Li P, Zhang L, et al. Stock Market Trend Prediction Using High-order Information of Time Series[J]. IEEE Access, 2019:28299-28308.

Bin Li, Yan lin, Wenxuan Tang. ML-TEA: A set of quantitative investment algorithms based on machine learning and technical analysis[J]. Systems Engineering Theory and Practice. 2017, 37 (5):1089-1100.

Krauss, C, X. A. Do,and N. Huck. Deep Neural Networks, Gradient -boosted Trees, Random Forests: Statistical Arbitrage on the S&P 500[J]. European Journal of Operational Research, 2017, 259(2): 689-702

He Juan, Luo Guangyi, Yang Sha, Zeng Lijuan, Kang Shuai. Research on Quantum Entanglement Genetic Algorithm and Its Optimization Performance [J]. Information Technology and Informatization, 2021(12):27-30.’

Downloads

Published

2022-08-04

How to Cite

Chen, Y. ., Zhang, Y. ., Lan, Y. ., Liu, Y. ., & Lin, Y. . (2022). Research on the Investment Strategy of Quantitative Trading Based on Random Forest and Genetic Algorithm. BCP Business & Management, 23, 11-17. https://doi.org/10.54691/bcpbm.v23i.1330