Machine Learning and optimal trading
Enseignant : Charles-Albert Lehalle, Capital Fund Management (CFM)
Travaux Dirigés : Sophie Laruelle, UPEC
Machine learning started to be studied by investment banks around 2016, while hedge funds started to use it few years earlier. A lot of FinTechs (ie start-ups leveraging on new technology) are proposing services based on “deep something” for banks, insurances or regulators.
Intra day and high frequency finance is using at least stochastic approximations for long, since the number of data generated by trading activity is huge (around 50,000 trades per day for a liquid stock, and 10 times this updates of the orderbook close to the best prices), cf http://link.springer.com/article/10.1007/s11579-013-0096-7.
Moreover, the financial industry as a whole is now impacted by all these techniques (see https://hal.archives-ouvertes.fr/hal-02314348/ for a generic paper on the influence of IA on market participants, in French).
As a consequence, we decided to include explicitly elements of Machine Learning (ML) in the course. The table of contents is modified to include ML related topics; to make room for them, we removed some elements of market microstructure that were more detailed than before (but you can rely on our book on this topic to go further by your own: https://worldscientific.com/worldscibooks/10.1142/10739 ).
The goal is not to go away from the core topic of the course: how to build optimal trading strategies (execution and market making) using a quantitative, mathematically founded, approach in the era of modern markets (ie dealing with liquidity fragmentation, different type of matching mechanisms, dark pools, high frequency and low latency trading, etc)? We will simply show you how to use the new tools provided by machine learning to build optimal strategies, exploiting data with more accuracy, and solving optimization problems in higher dimension.
Here is the new content of the course; you can read that we will deal with neural networks (with a focus on dense ReLU perceptrons), Bayesian networks, Stochastic Approximation and Reinforcement Learning. We will mix generic results with illustrations of their use for high frequency finance. As usual, Sophie Laruelle will show you how to put some of these techniques on real data, using python.
1. Market Microstructure: Algorithmic trading in the XXIst century
- Stylized facts
- Recent ways of trading
2. Orderbook dynamics
- Dynamics and predictibility
- What is a (ReLU) perceptron?
- Deep learning on order book
3. Market impact
- Metaorders and latent variables
- What is a Bayesian network?
- Market impact estimation with partial information
4. Smart Order Routing
- Dealing with market fragmentation
- From online stochastic algorithms to reinforcement learning
5. Optimal control of trading
- From mean-variance to stochastic control
- Parametric stochastic control with deep networks
- Dealing with optimal trading with partial information thanks to reinforcement learning
6. Regulation and open questions
This course is addressing the main elements of high frequency trading for proprietary trading and brokerage:
a good knowledge of the market micro-structure
an understanding of the price formation process
intra day risk control optimisation techniques, to find the balance between trading too fast (to avoid market impact) and too slow (to avoid tracking error); moreover, an inventory-driven view of intra-day trading will be presented
high frequency statistics
asynchronous programming techniques, adapted to the communication with matching engines of the trading venues.
Python will be the programming language used during the practical sessions, to confront market making algos to a realistic market simulator:
Python web useful web resources: