The stock market plays a fundamental role in the global economy by mobilizing resources, distributing capital, and serving as an indicator of economic development. Forecasting its behavior is a long-standing challenge due to the influence of numerous interacting variables, both internal and external to the market. Accurate forecasting provides investors and institutions with the opportunity to reduce risks, optimize portfolio management, and improve trading strategies.