In recent years, the use of smart data analysis method to predict the stock price is financial technology; important issues in the field of finch. However, there are many technical indicators and human subjective factors will affect the stock price forecast, so we must effectively grasp the important influence indicators to improve the accuracy of stock price forecast. Therefore, this study uses four machine learning algorithms to predict and analyze the stock price fluctuation through the screening process of technical indicators, and then selects the important technical indicators. In addition, due to the uncertainty and fuzziness of the attributes of technical indicators and human subjective judgment, this study uses the fuzzy inference method to construct the fuzzy inference system to predict the rise and fall of stock price, and proposes the prediction method of the range of the rise and fall of stock price. Finally, this paper makes an empirical analysis on the stock price data of three companies. The results show that the accuracy of stock price forecast is more than 82.13%, and the average accuracy of stock price forecast is more than 83%. Therefore, the fuzzy inference prediction system proposed in this study not only has the theoretical basis, but also can effectively predict the trend and range of stock price, which has practical value and contribution to investors.