Bitcoin or Gold?
A Financial Investment Model Based on LSTM
DOI:
https://doi.org/10.54097/fbem.v4i3.1139Keywords:
LSTM, Dynamic Programing, The Score of Buying.Abstract
In the topic selection, we need to estimate the prices of bitcoin and gold according to the data given from 2001 to 2012. According to the estimated price, the initial amount is set as $1000, which is used as the principal for financial investment for a period of five years from 2016. In the whole modeling process, the main problems we need to solve are the following four points: the task 1 is the best investment strategy is given through the established model, and the investment value on October 9, 2021 is calculated. The task 2 is the best strategy of the model is proved. The task 3 is Determine the impact of transaction costs on transaction results. The last task is to Complete a memo with strategies, models, and results. In the whole modeling process, we first preprocess the data, which is arranged and classified in chronological order, and fill the data by interpolation fitting. LSMT algorithm is a neural network algorithm, which is suitable for the calculation of various long-term processes. The investment problem we study is a good application field. In the calculation process of the basic model, it is necessary to set the initial value, complete a series of processing, and process the hidden layer of LSTM unit. Take x as the output value, set the temporary hidden layer and new hidden layer, and verify that the size of the final output result is consistent with the label size. The hidden layer is transformed according to the sigmoid function proposed above. After calculating the hidden layer conversion, the error is back propagated, the input derivative of the file is obtained, and the overall error and record hidden layer are obtained. Then the calculated hidden layer difference is used to calculate the change of parameters and update parameters. Since bitcoin can be traded on any trading day, gold can only be traded on weekly trading days. For the convenience of calculation, we fix the transactions of bitcoin and gold as trading days every Friday. After receiving the benefits, the total assets of the cash flow as of the trading day are obtained by deducting the Commission to be paid. However, the model ignores the impact of bitcoin mining with different software and the fact that gold and bitcoin are not fixed on the same trading day, so there will be errors.
Downloads
References
Jing Pengfei Comparative study on bitcoin price prediction based on multi model [D] Shanxi University, 2021 DOI:10.27284/d.cnki. gsxiu. 2021.000592.
Grullon G, Ikenberry D L. What do we know about stock repurchases[J].Journal of Applied Corporate Finance, 2015,13(1):31-51. DOI: https://doi.org/10.1111/j.1745-6622.2000.tb00040.x
Hakan Y.Testing the relationship between daily Bitcoin and gold prices: 2012-2013 Johansen Cointegration Test[J]. insan ve Toplum Bilimleri Arastirmalar1 Dergisi,2018,25(4):16-32.
Cheng C H, Chen T L, Wei L Y. A hybrid model based on rough sets theory and genetic algorithms for stock price forecasting[J]. Information Sciences, 2010,180(9):1610-1629. DOI: https://doi.org/10.1016/j.ins.2010.01.014
Wu K,Peng B, Xie H,et al. A Coefficient of Variation Method to Measure the Extents of Decentralization for Bitcoin and Ethereum Networks[J].InternationalJournal of Network Security, 2020,22(2):191-200.
Chen Zhei. Research on the influencing factors and prediction methods of Bitcoin price [D]. Harbin Institute of Technology, 2021.doi: 10.27061 / D.cnki.ghgdu.2021.000149.
Hongyang, Wang Li Song, Ge Chunpeng.Research on Mining Strategy and Yield of Bitcoin Platform [J] .Journal of Nanjing University of Information Science (Natural Science Edition), 2019, 11 (05): 532-540.Doi: 10.13878 /j.cnki.jnuist.2019.05.004.
Xiong Wei. Research on the dynamic optimization of energy price based on dynamic CGE [D]. North China Electric Power University (Beijing), 2014.
Meng Lili, Zhang Bohan. Primitive Risk Prediction and Control Based on Multi - linear Regression [J]. Green Technology, 2021,23 (16): 263-265 + 269.DOI: 10.16663 / j.cnki.lskj.2021.16. 070.
Padungsaksawasdi Chaiyuth. On the dynamic relationship between gold investor sentiment index and stock market:A sectoral analysis[J]. International Journal of Managerial Finance,2019,ahead-of-print(ahead-of-print): DOI: https://doi.org/10.1108/IJMF-11-2018-0334








