An Optimal Control Strategy for Execution of Large Stock Orders Using LSTMs

A. Papanicolaou,H. Fu,P. Krishnamurthy,B. Healy,F. Khorrami
2023-06-15
Abstract:In this paper, we simulate the execution of a large stock order with real data and general power law in the Almgren and Chriss model. The example that we consider is the liquidation of a large position executed over the course of a single trading day in a limit order book. Transaction costs are incurred because large orders walk the order book, that is, they consume order book liquidity beyond the best bid/ask. We model the order book with a power law that is proportional to trading volume, and thus transaction costs are inversely proportional to a power of trading volume. We obtain a policy approximation by training a long short term memory (LSTM) neural network to minimize transaction costs accumulated when execution is carried out as a sequence of smaller suborders. Using historical S&P100 price and volume data, we evaluate our LSTM strategy relative to strategies based on time-weighted average price (TWAP) and volume-weighted average price (VWAP). For execution of a single stock, the input to the LSTM is the cross section of data on all 100 stocks, including prices, volumes, TWAPs and VWAPs. By using this data cross section, the LSTM should be able to exploit inter-stock co-dependence in volume and price movements, thereby reducing transaction costs for the day. Our tests on S&P100 data demonstrate that in fact this is so, as our LSTM strategy consistently outperforms TWAP and VWAP-based strategies.
Computational Finance
What problem does this paper attempt to address?
### Problems Addressed by the Paper The paper primarily explores how to optimize the execution strategy of large stock orders using Long Short-Term Memory (LSTM) neural networks to minimize trading costs. Specifically: - **Research Background**: Institutional investors need to consider trading costs when executing large stock trades. For example, a multi-billion dollar mutual fund may need to execute several large stock orders each month to rebalance its holdings. - **Problem Description**: Submitting a very large sell order at once can consume a significant amount of market liquidity, resulting in an average execution price far below the best quote. Therefore, splitting large orders into a series of smaller sub-orders can reduce trading costs. - **Objective**: The paper aims to solve this problem by training an LSTM neural network to obtain the optimal execution strategy. LSTM neural networks can learn from historical data and utilize the correlation between prices and volumes across stocks to predict better execution prices. ### Main Methods and Contributions - **Model Establishment**: It is assumed that the depth of the order book is proportional to the volume and follows a power-law distribution. - **Data Input**: Input data includes prices, volumes, Time-Weighted Average Price (TWAP), and Volume-Weighted Average Price (VWAP) for all 100 stocks. - **Experimental Validation**: The LSTM strategy was tested using historical minute-level data from January 2020 to July 2022 and compared with TWAP and VWAP strategies. - **Results Display**: The results show that the LSTM strategy can save 1-2 basis points (bps) of trading costs per stock per day when executing large orders of S&P 100 stocks compared to TWAP and VWAP strategies. ### Conclusion - By using LSTM neural networks, the paper successfully improves the execution strategy of large orders, achieving lower trading costs.