Stock market outlook: The Indian stock market witnessed volatility throughout the week but managed to close with marginal gains, suggesting a consolidation phase after November's strong rally.