In this paper, WOA-ELM model and cyclic decision model are used to analyze and model the practical application. First of all, this paper establishes a quantitative trading model, and uses the WOA-ELM model to establish the corresponding forecasting model. Through this model, we predict the specific values for the period from September 10, 2016 to September 11, 2021. The optimal position ratio is determined and the periodic decision-making model is established. The optimal investment decision model is established by using Python. The model has high accuracy. The forecast price is not much different from the actual price.