The economic foundation determines the superstructure of society. Sustainable development of society is inseparable from economic prosperity, and investment has an irreplaceable role as one of the "troika" to promote social economy. Based on this, the modeling in this paper aims to study the trading strategy problem. In this paper, firstly, outliers and missing values are processed by Laiida's rule for the attached data, and then a multi-layer LSTM weighted model is proposed to learn the influencing factors of input time span on output time span by using multi-layer LSTM network, and the model is trained to achieve higher accuracy relative to the LSTM model through the embedded method: superposition of the influence generation cycle sequence. Attention mechanisms are introduced and short and long term forecasts are continuously made. The fluctuations of MACD, RSI indicators, Apriori and other parameters are quantified; then, a risk measurement index is constructed, where the greater the cyclical price fluctuations, the greater the risk. The results show that timely buying and selling maximizes returns, and that a $1,000 investment ends up with a $900,000 return. The model is run again by increasing or decreasing the percentage of transaction costs, setting 0.5%, 1%, 1.5% and 2% points, to test the magnitude of sensitivity (trading decision results) at different transaction costs. The results show that the model is more robust, i.e., the model constructed in this paper has better results under different transaction costs.
Read full abstract