Adaptive Position Rebalancing via Regime-Conditioned Contextual Bandits for Pre-Market Trading Optimization
This paper proposes an adaptive pre-market portfolio management framework for the Indian stock market that dynamically selects Buy, Sell, or Hold actions by combining unsupervised market regime detection with an ensemble of four contextual bandit models, demonstrating superior performance over baseline approaches in volatile conditions.
Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
In the world of finance, the most difficult challenge is not predicting the future, but recognizing the present. Markets are not static landscapes; they are living environments that shift between distinct moods. Sometimes they are optimistic and rising, a state traders call "bullish." Other times, fear takes hold, and prices tumble in a "bearish" slump. In between, the market often sits in a neutral state, moving sideways with no clear direction. Traditional computer models often struggle with this reality because they tend to apply a single set of rules to all situations, like a driver using the same steering technique whether the road is dry, icy, or covered in mud. When the environment changes, a rigid model often fails to adapt quickly enough, leading to costly mistakes. This is particularly true for the brief window before the stock market opens, a time when traders must decide whether to buy more shares, sell what they hold, or do nothing at all based on the latest information.
A team of researchers from India has proposed a new way to handle this volatility by teaching computers to recognize the market's current mood before making a decision. Their work focuses on the pre-market session of the Indian stock exchange, a short eight-minute window between 9:00 AM and 9:08 AM where traders adjust their portfolios before regular trading begins. Instead of relying on one giant, all-purpose algorithm, the researchers built a system that first identifies whether the market is in a bullish, bearish, or neutral regime. Once the mood is identified, the system switches to a specialized team of four different decision-making tools, each trained specifically for that type of environment. These tools work together to vote on the best action for each stock, ensuring that the strategy fits the current conditions rather than forcing a single strategy onto a changing world.
The researchers tested this approach using historical data from five major Indian companies across different industries, including banking, technology, and automotive sectors, covering a decade of market history from 2015 to 2025. They compared their new "regime-conditioned" system against standard models that do not distinguish between market moods. The results showed a clear advantage for the adaptive approach. In the simulations, the new system correctly identified the best action—whether to buy, sell, or hold—about 54 to 61 percent of the time across the different stocks. In contrast, the standard models, which used the same logic regardless of market conditions, only achieved accuracy rates between 34 and 52 percent. The adaptive system also accumulated more total profit over time and made fewer costly errors compared to an ideal strategy, suggesting that tailoring decisions to the specific market environment significantly improves performance.
The core of this success lies in the system's ability to divide and conquer. The researchers used a method called clustering to group past market days into three categories based on how prices and trading volumes behaved. When a new day arrives, the system checks the current market data against these groups to determine the regime. If the market is trending up, the system activates a specific set of four decision engines designed for bullish conditions. If the market is falling, it switches to a different set of engines trained for bearish conditions. These engines include both linear models, which look for straightforward patterns, and neural models, which can detect complex, non-linear relationships. By having a dedicated team for each mood, the system avoids the confusion that often plagues single-model approaches when the market suddenly shifts from calm to chaotic.
To make these decisions, the system looks at a wide range of technical signals, such as how much a stock price has moved recently, the average price over the last few weeks, and the volume of shares being traded. It does not try to predict the exact price of a stock tomorrow. Instead, it asks a simpler, more practical question: given the current market mood and the stock's recent behavior, is it better to increase the position, reduce it, or stay the same? The system learns from its own mistakes in a continuous loop. After each trading day, it sees how the stock actually performed and updates its internal rules to do better the next time. This allows the system to adapt to new information as it arrives, rather than relying on a static plan created months ago.
The study also highlights the limitations of this approach. The system relies entirely on historical price and volume data, meaning it cannot account for sudden, unexpected news events like a geopolitical crisis or a surprise corporate announcement that might cause a stock to gap up or down when the market opens. Additionally, the simulations assumed that trades could be executed instantly without fees or delays, which is not always the case in the real world. Despite these constraints, the findings suggest that treating market conditions as distinct regimes rather than a single continuous flow offers a more robust way to manage portfolios. By acknowledging that the rules of the game change depending on the environment, the researchers have demonstrated a path toward more stable and effective trading strategies, particularly in the critical moments before the market opens.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.