Sitemap
Quantitative Investing

Latest articles on Quantitative Investing, covering wide-ranging topics, from portfolio construction and strategic rebalancing to risk premia strategies and statistical arbitrage, with emphasis on combining quantitative methods with financial insights.

Member-only story

Algo Trading

A Python Package for Optimal Mean Reversion Trading

From portfolio construction to optimal execution

3 min readSep 18, 2020

--

A Deep Dive into Pairs Trading. Photo by NOAA on Unsplash

In this new python package called Machine Learning Financial Laboratory (mlfinlab) developed by Hudson & Thames, there is a module that automatically solves for the optimal trading strategies (entry & exit price thresholds) when the underlying assets/portfolios have mean-reverting price dynamics.

It covers a few mean-reverting models, including the Ornstein-Uhlenbeck (OU) model. The trading model and computations are based on the results from this journal article.

The module includes three main steps:

Model Fitting:

Source: MLfinlab documentation
Source: MLfinlab documentation
Source: MLfinlab documentation

Determining the Optimal Entry & Exit Levels

--

--

Quantitative Investing
Quantitative Investing

Published in Quantitative Investing

Latest articles on Quantitative Investing, covering wide-ranging topics, from portfolio construction and strategic rebalancing to risk premia strategies and statistical arbitrage, with emphasis on combining quantitative methods with financial insights.

Tim Leung, Ph.D.
Tim Leung, Ph.D.

Written by Tim Leung, Ph.D.

Endowed Chair Professor of Applied Math, Director of the Computational Finance & Risk Management (CFRM) Program at University of Washington in Seattle

Responses (1)