Reinforcement learning has been widely explored for trade execution, but less so for strategies that must infer hidden market conditions. Macrì, Jaimungal, and Lillo address this gap by modeling an optimal trading problem where the signal follows an Ornstein-Uhlenbeck process with regime-switching parameters. Because the trader cannot observe the regime directly, the problem is formulated as a partially observable Markov decision process.
The authors combine recurrent neural networks with reinforcement learning to handle both filtering and trading. They propose three variants: a one-step approach that feeds GRU hidden states directly into the RL agent, and two two-step approaches that first estimate either posterior regime probabilities or next-signal forecasts before passing them to the trader.
Across simulations with increasingly complex regime dynamics and an empirical equity pairs-trading application, the posterior-probability variant performed best. It achieved superior cumulative rewards and produced strategies that were more interpretable than those based on hidden states or forecasts. The authors conclude that the structure and quality of information supplied to the agent matter more than the raw capacity of the network.