Empirical Research on Daily Direction Prediction of S&P 500 ETF Based on Machine Learning and Multivariate Technical Indicators
Main Article Content
Keywords
SPY ETF, machine learning, technical indicators, market direction prediction, time-series forecasting
Abstract
This paper examines whether machine learning models can predict the next-day direction of SPY, an exchange-traded fund that tracks the S&P 500 Index. Using daily market data from 2010 to 2026, the study constructs 21 technical and cross-asset features, including returns, moving-average ratios, volatility, momentum, RSI, MACD, volume changes, and related market signals. Four supervised learning models are compared: Logistic Regression, Random Forest, XGBoost, and Support Vector Machine. The results show that XGBoost achieves the highest test accuracy among the tested models, with an accuracy of 0.5360 and a ROC-AUC of 0.5393. However, the model does not outperform the majority-class baseline accuracy of 0.5690. These findings suggest that technical indicators contain limited predictive information for next-day SPY direction, but their business value is weak as a standalone trading strategy. The model is more appropriate as a market monitoring or risk-awareness tool than as an automatic investment system.
References
- [1] Kumbure, M. M., Lohrmann, C., Luukka, P., and Porras, J. “Machine Learning Techniques and Data for Stock Market Forecasting: A Literature Review.” Expert Systems with Applications, vol. 197, 2022, Article 116659.
- [2] Yahoo Finance. “Historical Daily Market Data for SPY, QQQ, IWM, TLT, GLD, USO, UUP, and VIX.” Accessed 2026.
- [3] Mostafavi, S. M., et al. “Key Technical Indicators for Stock Market Prediction.” Intelligent Systems with Applications, 2025.
- [4] Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V., Thirion, B., Grisel, O., Blondel, M., Prettenhofer, P., Weiss, R., Dubourg, V., Vanderplas, J., Passos, A., Cournapeau, D., Brucher, M., Perrot, M., and Duchesnay, É. “Scikit-learn: Machine Learning in Python.” Journal of Machine Learning Research, vol. 12, 2011, pp. 2825–2830.
- [5] Chen, T., and Guestrin, C. “XGBoost: A Scalable Tree Boosting System.” Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 2016, pp. 785–794.
- [6] Caparrini López, A., Arroyo, J., and Escayola Mansilla, J. “S&P 500 Stock Selection Using Machine Learning Classifiers: A Look into the Changing Role of Factors.” Research in International Business and Finance, vol. 70, 2024, Article 102336.
- [7] Lopez de Prado, M. Advances in Financial Machine Learning. Wiley, 2018.
- [8] Davidovic, M., and McCleary, J. “News Sentiment and Stock Market Dynamics: A Machine Learning Investigation.” Journal of Risk and Financial Management, vol. 18, no. 8, 2025, Article 412.
