In this article, we develop a modular framework for the application of Reinforcement Learning to the problem of Optimal Trade Execution. The framework is designed with flexibility in mind, in order to ease the implementation of different simulation setups. Rather than focusing on agents and optimization methods, we focus on the environment and break down the necessary requirements to simulate an Optimal Trade Execution under a Reinforcement Learning framework such as data pre-processing, construction of observations, action processing, child order execution, simulation of benchmarks, reward calculations etc. We give examples of each component, explore the difficulties their individual implementations \& the interactions between them entail, and discuss the different phenomena that each component induces in the simulation, highlighting the divergences between the simulation and the behavior of a real market. We showcase our modular implementation through a setup that, following a Time-Weighted Average Price (TWAP) order submission schedule, allows the agent to exclusively place limit orders, simulates their execution via iterating over snapshots of the Limit Order Book (LOB), and calculates rewards as the \$ improvement over the price achieved by a TWAP benchmark algorithm following the same schedule. We also develop evaluation procedures that incorporate iterative re-training and evaluation of a given agent over intervals of a training horizon, mimicking how an agent may behave when being continuously retrained as new market data becomes available and emulating the monitoring practices that algorithm providers are bound to perform under current regulatory frameworks.
翻译:在本篇文章中,我们为应用“强化学习”应用优化贸易执行问题制定了模块化框架。框架的设计具有灵活性,目的是便于实施不同的模拟设置。我们不是侧重于代理商和优化方法,而是侧重于环境,并打破在强化学习框架下模拟优化贸易执行的必要要求,如数据预处理、观察、观察建设、行动处理、儿童订单执行、基准模拟、奖励计算等。我们举例说明每个组成部分,探讨它们各自的实施困难,探讨它们之间的相互作用,并讨论每个组成部分在模拟中产生的不同现象,突出模拟与实际市场行为之间的差异。我们通过一个设置展示我们的模块实施,在采用一个经过时间审查的平均价格(TWAP)订单提交时间表后,允许代理商专门设置限制订单,通过对《限制秩序手册》(LOB)的快照来模拟其执行,并计算它们因TWAP当前基准算法在模拟中实现的价格改进而得到的回报,突出模拟与实际市场行为之间的差异。我们通过一个设置一个配置框架来展示我们的模块,按照一个经过时间审查的平均价格(TWAP),在现有的监管机构培训周期内进行新的评估,在进行新的评估程序时,在不断调整。我们的行为将一个稳定的市场培训。