Objective: The aim of this research is to provide a practical guide for investing in the Tehran Stock Exchange by combining technical analysis techniques with advanced machine learning methods. Focusing on the analysis of buy and sell signals in selected indices of the Tehran Stock Exchange, the study seeks to evaluate the effectiveness of machine learning models in predicting market trends. Materials and Methods: In this study, the daily data of six selected indices of the Tehran Stock Exchange, including financial, petroleum products, automotive, pharmaceutical, food, and basic metals indices, were analyzed from 2020 to January 2025. Four machine learning models, including Linear Model, Random Forest, Artificial Neural Network, and Support Vector Regression, were utilized alongside two technical analysis strategies, TEMA and MACD, to generate and evaluate buy and sell signals. Results: The results indicated that machine learning models, particularly Random Forest and Artificial Neural Network, performed better in identifying buy and sell signals when combined with TEMA and MACD strategies. These models were able to predict market trends with higher accuracy, and the signals they generated were mostly consistent with actual price changes. The food, automotivation and financial and basic metals indices demonstrated greater sensitivity to these analyses. Conclusion: The combination of machine learning methods with technical analysis strategies can provide investors with a powerful tool for decision-making in the Tehran Stock Exchange. This research demonstrated that using these methods can not only improve the accuracy of buy and sell signals but also reduce investment risk and increase returns. Utilizing these models can be recommended as part of an investment strategy for analysts and investors. Originality: This research is the first quantitative study that seeks to conceptualize buy and sell signals using the combined method of machine learning and technical analysis as one of the basic tools to guide investors. |
Rights and permissions | |
![]() | This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. |