Reinforcement Learning in Trading
- Category
- Advanced Research
- Level
- Expert
Simple definition
Training a program to decide by trial and error, rewarding it for good outcomes. In markets the problem is that practice runs happen in a simulator that does not react like a real market.
Professional definition
Learning a decision policy from interaction rather than from labelled examples, with actions such as entering, sizing or routing an order and a reward defined by the designer. It needs an environment to practise in, and in trading that environment is a model whose shortcomings the agent will exploit.
Technical definition
Policy learning in a sequential decision problem where the environment is only approximated. Historical replay assumes the agent's own orders leave the market unchanged, which is false whenever size matters, so a policy learned on replayed data is optimised against a counterfactual. Non-stationarity means the environment also shifts between training and deployment, the reward specification silently encodes a risk preference, and the methods are sample-hungry precisely where independent samples are scarce.
Academic definition
The application of sequential decision learning to trading and execution problems, in which policy quality is bounded by simulator fidelity, reward specification and the non-stationarity of the environment.
Mechanism
An agent optimises whatever it is rewarded for inside whatever world it is given. If the world is a replayed order book, the agent can take unlimited size at the recorded price, so it learns to exploit a market that cannot push back. If the reward counts profit without penalising variance or drawdown, it learns to take risk the designer never chose. Both failures look like success during training.
In practice
- Who uses it
- Execution researchers working on order scheduling, market-making researchers, and teams studying sequential decision problems where the action set is well defined.
- Why it matters
- The sequential framing fits problems where a decision now changes the state later, such as working a large order down over a session.
- Limitations
- Policy quality is bounded by the simulator, and a historical replay cannot represent the market's reaction to the agent's own orders. No claim is made here that the approach produces a profitable strategy.
Common mistakes
- Training on a replay that assumes zero market impact.
- Writing a reward that counts profit and ignores risk.
- Reading training performance as evidence of live performance.
Examples
An agent trained on a replay that assumes no impact pays nothing for immediacy. At an effective round-trip cost of 14 basis points and 200 round trips a year, it is ignoring about 28 percentage points of annual cost.
- assumed effective round-trip cost = 14 bp
- assumed round trips per year = 200
- replay simulator applies no market impact
- 14 bp x 200 = 2,800 bp
- 2,800 bp = 28 percentage points per year
Both inputs are assumptions. The point is the order of magnitude: a cost model is not a detail added at the end, it determines which policy is optimal in the first place.
A reward defined as cumulative profit produces an agent that holds through large drawdowns, because nothing in the objective penalised them. The behaviour is not a bug in the algorithm; it is the specification being followed exactly.
Related terminology
- parent
- Machine Learning in Markets
- related
- Machine Learning in Markets Feature Leakage Backtesting Slippage Model Transaction Cost Analysis Order Execution Algorithm VWAP Execution Overfitting Paper Trading Live Forward Testing Trading Bot
Trading Bot
A trading bot is any program that places orders, usually following fixed rules a person wrote. Reinforcement learning is a way of deriving those rules from interaction; most bots involve no learning at all.
Sources
Editorial status
Flagged by the editor as uncertain on a linguistic, mathematical or regulatory point.
This entry in other languages
معاملهگری با یادگیری تقویتی · مامەڵەکردن بە فێربوونی بەهێزکەر
