A reinforcement-learning policy learns actions that maximise a reward within its training environment. In trading, the validity of that environment is central: unrealistic fills, costs, inventory or market responses can teach a policy to exploit the simulator. Attractive training rewards are not evidence that the same behaviour is viable in a live market.
The model and its assumptions
Unlike a fixed-label prediction task, the agent's actions can change future state, exposure and available choices. The reward must therefore represent the actual objective, including relevant risk and implementation costs. A reward encouraging gross turnover or short-term mark-to-market gains can create behaviour inconsistent with the investment mandate.
Evaluation also needs repeated runs and strong baselines. Random seeds, training instability and selection among checkpoints can materially affect a reported result. The research literature on deep RL evaluation highlights these reproducibility problems even before the additional complications of financial markets are introduced.
A worked example
Consider a hypothetical agent making ten orders in an episode. It earns 30 units of gross trading P&L. A simulator charges two units per order, leaving reward-equivalent net P&L of 10. If realistic all-in cost is five units per order, the same actions produce 30 − 10×5 = −20.
The algorithm has not changed; the economics of its environment have. A policy may also look successful because the simulator fills passive orders without queue competition or allows instantaneous inventory changes. Those assumptions should be tested explicitly, not hidden in an average reward chart.
Practical review and implementation
Freeze a chronological evaluation environment and compare with transparent policies under identical costs and constraints. Run several independent training seeds, record checkpoint selection and report the distribution of results. Stress latency, impact, rejected orders, inventory limits and disrupted data.
Validate simple simulator cases against hand calculations and examine individual action sequences. Separate the training environment from the test environment and document any tuning prompted by test outcomes. A limited shadow evaluation can reveal operational mismatches, although it cannot reproduce every consequence of actual market impact.
Assumptions and limitations
A simulator is an economic model, not a complete copy of the market. Results can fail under a different participant mix, liquidity regime or account size. Reinforcement learning is not automatically better than a simpler supervised model or rule-based controller. Its additional complexity should be justified by an incremental decision benefit that survives realistic evaluation.
Primary references
Further detail on the underlying concepts and data definitions:
