Optimization of Daily Trading Strategy

Authors

  • Yuxin Li
  • Ziheng Yu
  • Ziqing Lian

DOI:

https://doi.org/10.54097/hbem.v17i.11353

Keywords:

Investment portfolio, VMD, LSTM, PSO, Machine learning decision

Abstract

This study proposes a novel method that integrates variational pattern decomposition (VMD), long short-term memory (LSTM) models, and particle swarm optimization (PSO) to optimize daily trading strategies for a portfolio. By analyzing historical price data for gold and bitcoin, we have successfully identified the optimal investment actions (buy, hold, or sell) for a portfolio comprising different assets. The VMD-LSTM model proposed by us mitigates the long-term dependence problem of machine learning algorithm RNN in financial time series prediction through batch normalization optimization, and realizes the accurate prediction of the future price of gold and bitcoin, whose R-squared values reach 0.99 and 0.98 respectively. We also applied the particle swarm optimization algorithm to a sequence of trading decisions generated by predicting prices, ultimately obtaining a maximum portfolio value of $20,560,265.5, which is more than 14.2 times the 10-year growth of Bitcoin and 12,310.5 times the 10-year growth of gold. By verifying the universality and local optimal properties of our model, we use the Sharpe ratio as an objective function to evaluate the effect of the portfolio. After several perturbation tests, the results show that the original scheme is superior to other perturbation schemes considering the Sharpe ratio and the final return, which verifies the validity of the investment scheme selected by us as the local optimal value. These findings make our research more coherent and provide investors with a reliable basis for making decisions to achieve long-term capital appreciation and risk control.

Downloads

Download data is not yet available.

References

Nakamoto, S. (2008). Bitcoin: A Peer-to-Peer Electronic Cash System. Retrieved from https://bitcoin.org/bitcoin.pdf

Baur, D. G., & Lucey, B. M. (2010). Is gold a hedge or a safe haven? An analysis of stocks, bonds and gold. Financial Review, 45(2), 217-229.

Bouoiyour, J., Selmi, R. and Wohar, M., 2018. Measuring the response of gold prices to uncertainty: An analysis beyond the mean. 3rd ed. pp.105-116.

BullionByPost. 2022. Bull Market. Available at: (https://www.bullionbypost.co.uk/index/market-commentary/bull-market/).

Cheah, E. T., & Fry, J. (2015). Speculative bubbles in Bitcoin markets? An empirical investigation into the fundamental value of Bitcoin. Economics Letters, 130, 32-36.

Dyhrberg, A. H. (2016). Bitcoin, gold and the dollar—A GARCH volatility analysis. Finance Research Letters, 16, 85-92.

Jiang, M., Jia, L., Chen, Z., et al. (2022). "The two-stage machine learning ensemble models for stock price prediction by combining mode decomposition, extreme learning machine and improved harmony search algorithm." Annals of Operations Research, 309, 553-585. https://doi.org/10.1007/s10479-020-03690-w.

Jian Cao, Zhi Li, Jian Li, 2019, 'Financial time series forecasting model based on CEEMDAN and LSTM’, Physica A: Statistical Mechanics and its Applications, Volume 519, Pages 127-139, ISSN 0378-4371, available at: (https://doi.org/10.1016/j.physa.2018.11.061).

Federico M, Beata W (2015). "Particle swarm optimization (PSO): A tutorial." Chemometrics and Intelligent Laboratory Systems, 149(Part B), 153-165. ISSN 0169-7439.

Sharpe, W., 1994. The Sharpe Ratio. ‘The Journal of Portfolio Management’. Available at: (http://web.stanford.edu/~wfsharpe/art/sr/sr.htm).

Downloads

Published

31-08-2023