0
$\begingroup$

I am trying to implement Avellaneda & Stoikov (2006) model for HF market making on L2 orderbook data.

Most parameters are straight forward but I am struggling with the orderbook liquidity parameter (k). It's logic that the parameter should be larger for more liquid and smaller for less liquid markets, causing the spread to be wider in lower liquidity markets. enter image description here

But being in possession of L2 orderbook data I am wondering how to best compute the parameter, as the paper leaves this out of the discussion.

Best Rapha

$\endgroup$

2 Answers 2

2
$\begingroup$

in our extension of Avellaneda - Stoikov paper, we provide some numerical examples: Dealing with the Inventory Risk. A solution to the market making problem.

In Faisabilité de l’apprentissage des paramètres d’un algorithme de trading sur des données réelles, Sophie Laruelle explains (in French) different ways to estimate the parameters on real data.

For this family of papers, you have parameters of different nature to estimate

  1. the (fair) price dynamics: essentially the volatility (and price movements if you have high frequency predictors)
  2. the liquidity dynamics: that are captured (in such models) by a "baseline intensity" $A$ and an "elasticity to the fair price" one $k$. The intensity of trades filling an order being at $\delta S$ to the fair price is $A\exp -k\,\delta S$. It means that the expectation of obtaining a fill during an infinitesimal time $dt$ is $A(\exp -k\,\delta S)\, dt$.

For the an estimation of the intraday volatility they are a lot of means (see for instance How to calculate historical intraday volatility?).

For the $(A,k)$ part, it is described in Sophie's paper and at Joaquin's thesis. The principle is the following:

  • you want to capture the probability that an order at $\delta S$ of the fair price is filled
  • you look in your history and you see an order that is at a distance $\delta S_k$ at time $t_k$ and you observe when it obtained an execution (say at $t_{k+1}$)
  • you have your first data point: it took $\delta t_k:=t_{k+1}-t_{k}$ second to obtain a fill starting at $\delta S_k$, you collect as much as you can
  • then you do some data curation (as usual) because you want to focus on "stationary situations" (or a least ergodic ones): remove outliers and inconsistant data (you can even create a "environment/context" indicator and condition by it). There is a matter of "censored data" too (if this order has been cancelled).
  • the last step is the easiest: do the regression to obtain $(A,k)$ from your curated collection of $(\delta S_k, \delta t_k)_k$; you can do it simply using a log-linear regression, or minimize any loss function you like.
$\endgroup$
2
  • $\begingroup$ Because youhave posted this as an answer, it would have been better if you had summarized in sufficient detail how the material in those papers answer the question rather than providing just links. $\endgroup$
    – Alper
    Dec 17, 2022 at 6:45
  • 1
    $\begingroup$ tank you @Alper I just did it $\endgroup$
    – lehalle
    Dec 18, 2022 at 15:59
1
$\begingroup$

On top of the very good paper by Sophie Laruelle that Mr Lehalle suggested, I would also suggest to have a look at the Modeling, optimization and estimation for the on-line control of trading algorithms in limit-order markets, thesis of Joaquin FERNANDEZ TAPIA, which covers the same topic and it is in English.

$\endgroup$
1
  • $\begingroup$ Because you posted this as an answer, it would have been better if you had also summarized in sufficient detail how the material in this thesis answer the question rather than providing just a link. $\endgroup$
    – Alper
    Dec 17, 2022 at 6:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.