Welcome to Francis Academic Press

Academic Journal of Business & Management, 2022, 4(7); doi: 10.25236/AJBM.2022.040712.

Trading Strategy of Gold and Bitcoin Based on Optimization Algorithm


Xinlei Lin1, Zhaotong Wu1, Yuhan Tang2

Corresponding Author:
Xinlei Lin

1College of Engineering, Shantou University, Guangdong, 515063, China

2College of Science, Shantou University, Guangdong, 515063, China


With the development of economy, gold and bitcoin have gradually become two important investment assets. However, due to the high volatility of them, the investment process is often accompanied by huge risks, and it is common to gain losses. This paper proposes a gold and Bitcoin investment strategy model based on a combination of grey prediction and linear programming. We predict future markets through grey prediction to calculate the relative strength index in economics, according to which and market openness we select linear programming or equation solving in order to maximize future returns and obtain the best portfolio strategy. In the process of solving linear programming, the standard deviation rate is also introduced for risk control. What’s more, we judge the merits and demerits of the model by proving prediction accuracy, comparing future market volatility, and observing risk aversion. Average absolute percentage error is introduced to measure prediction accuracy. Experiments have shown that the overall forecast accuracy is high, the predicted volatility trend is roughly the same as the actual volatility trend, the risk aversion is effective, and our model is reliable and forward-looking.


Grey prediction; Linear program; Mean absolute percentage error; Standard deviation rate

Cite This Paper

Xinlei Lin, Zhaotong Wu, Yuhan Tang. Trading Strategy of Gold and Bitcoin Based on Optimization Algorithm. Academic Journal of Business & Management (2022) Vol. 4, Issue 7: 72-76. https://doi.org/10.25236/AJBM.2022.040712.


[1] Ruoxin Yang. Stock trend analysis based on RSI and BB [J]. National Circulation Economy, 2020 (3): 154-156. DOI: 10.3969/J.ISSN.1009-5292.2020.03.069. 

[2] Yulan Hu, Liping Zhang, Zhihong Liao, Guan Liu. Application of genetic algorithm in optimal investment planning of enterprises [J]. Journal of Shenyang Institute of Technology, 2001(04):22-26. 

[3] Degang Dong, Rong Zhu. Research on the Application of Portfolio Theory in Risk Management [J]. Journal of Xiamen University (Philosophy and Social Sciences Edition), 2008 (4): 48-53. DOI: 10.3969/J. ISSN.0438-0460.2008.04.000