Professional Documents
Culture Documents
Motivation
Two major types of market mechanisms: 1 Quote driven (e.g. NYSE specialist) 2 Order driven (e.g. Arca, Instinet, Tokyo stock exchange)
Motivation
Two major types of market mechanisms: 1 Quote driven (e.g. NYSE specialist) 2 Order driven (e.g. Arca, Instinet, Tokyo stock exchange) Two approaches to order driven markets: 1 Markets are made up of many rational individuals acting in their own best interest (e.g. Parlour (1998), Foucault et al. (2005), Rosu (2008)) 2 The collective behavior of these rational people can be reproduced by modeling non strategic traders (e.g. Bouchaud et al. (2002), Farmer et al. (2004))
Motivation
Two major types of market mechanisms: 1 Quote driven (e.g. NYSE specialist) 2 Order driven (e.g. Arca, Instinet, Tokyo stock exchange) Two approaches to order driven markets: 1 Markets are made up of many rational individuals acting in their own best interest (e.g. Parlour (1998), Foucault et al. (2005), Rosu (2008)) 2 The collective behavior of these rational people can be reproduced by modeling non strategic traders (e.g. Bouchaud et al. (2002), Farmer et al. (2004)) The above approaches focus on equilibrium properties
Motivation
Two major types of market mechanisms: 1 Quote driven (e.g. NYSE specialist) 2 Order driven (e.g. Arca, Instinet, Tokyo stock exchange) Two approaches to order driven markets: 1 Markets are made up of many rational individuals acting in their own best interest (e.g. Parlour (1998), Foucault et al. (2005), Rosu (2008)) 2 The collective behavior of these rational people can be reproduced by modeling non strategic traders (e.g. Bouchaud et al. (2002), Farmer et al. (2004)) The above approaches focus on equilibrium properties These models seem challenging to estimate
Model objectives
To predict short term price behavior 1 Given the current order book 2 Given statistics on the order ow
Model objectives
To predict short term price behavior 1 Given the current order book 2 Given statistics on the order ow To test strategies that impact the price dynamics 1 Strategies for liquidity providers 2 Block order execution 3 Size eects
Model objectives
To predict short term price behavior 1 Given the current order book 2 Given statistics on the order ow To test strategies that impact the price dynamics 1 Strategies for liquidity providers 2 Block order execution 3 Size eects We should focus on computing conditional probabilities
Model objectives
To predict short term price behavior 1 Given the current order book 2 Given statistics on the order ow To test strategies that impact the price dynamics 1 Strategies for liquidity providers 2 Block order execution 3 Size eects We should focus on computing conditional probabilities Our model should be easy to estimate
Outline
1
Outline
1
Estimation
The rates of market orders, limit orders and cancellations Comparing data to simulation
Outline
1
Estimation
The rates of market orders, limit orders and cancellations Comparing data to simulation
Conditional probabilities
Laplace transforms methods Birth death processes
Outline
1
Estimation
The rates of market orders, limit orders and cancellations Comparing data to simulation
Conditional probabilities
Laplace transforms methods Birth death processes Probability of the price going up Probability of executing a limit order before the price moves Probability of making the spread
Outline
1
Estimation
The rates of market orders, limit orders and cancellations Comparing data to simulation
Conditional probabilities
Laplace transforms methods Birth death processes Probability of the price going up Probability of executing a limit order before the price moves Probability of making the spread
Conclusion
A market order
A limit order
A limit order
A cancellation
Notation
Continuous-time Markov chain Xt (Xt1 , . . . , Xtn ), where |Xti |
Notation
Continuous-time Markov chain Xt (Xt1 , . . . , Xtn ), where |Xti |
Notation
Continuous-time Markov chain Xt (Xt1 , . . . , Xtn ), where |Xti |
then there are Xti ask orders at price i . pA (t) = inf{i , Xti > 0},
t 0.
Assumptions
from the opposite best quote at independent, exponential times with rate (i ),
Cancellations of limit orders at a distance of i ticks from the
opposite best quote occur at a rate proportional to the number of outstanding orders: if the number of outstanding orders at that level is x then the cancellation rate is (i )x.
The above events are mutually independent.
for for
Ergodic property
Proposition
X is an ergodic Markov process. In particular, X has a proper stationary distribution. We may compute time averages of various quantities in a simulation
average shape of the order book volatility
N S = 0.0198 T S
opposite quote in our data N = [71, 884 50, 851 36, 825
29, 567
25, 831]
opposite quote in our data N = [71, 884 50, 851 36, 825 29, 567 Limit order rate function for 1 d 5: N (d) (d) = T orders per second.
25, 831]
opposite quote in our data N = [71, 884 50, 851 36, 825 29, 567 Limit order rate function for 1 d 5: N (d) (d) = T
25, 831]
orders per second. For d > 5 extrapolate with a power law function of the form k (d) = d k and are obtained by minimizing the least square distance
5
min
k, d=1
k (d) d
0.03
0.025
0.02
0.015
0.01
0.005
10
32, 370
27, 264
23, 218]
32, 370
27, 264
23, 218]
Average cancellation size S = 18.61 Average number of orders at a distance of d from best quote
Q(d).
32, 370
27, 264
23, 218]
Average cancellation size S = 18.61 Average number of orders at a distance of d from best quote
Q(d).
Cancel rate function for 1 d 5:
0.008
0.006
0.004
0.002
10
Comparing movies
Empirical
100
200
300
600
700
800
7.8 7.7 Last traded price 7.6 7.5 7.4 7.3 7.2 7.1
x 10
Simulation
100
200
300
600
700
800
Empirical Simulation
1.5
0.5
going up, when there are m orders in the queue, for 1 d 5, conditional on the best quotes not changing.
d pup (m) =
for d = 1
d pup (m) =
for d > 1
going up, when there are m orders in the queue, for 1 d 5, conditional on the best quotes not changing.
d pup (m) =
for d = 1
d pup (m) =
for d > 1
We can compare these probabilities to the empirical
3 4 Queue size
3 4 Queue size
3 ticks from opposite quote Probability of increase 1 Empirical Model 0.5 Probability of increase 1
3 4 Queue size
3 4 Queue size
3 4 Queue size
(spread=1)
(spread=1)
The probability that the midprice goes up before it goes down
(spread>1)
(spread=1)
The probability that the midprice goes up before it goes down
(spread>1)
The probability that an order at the bid executes before the
(spread=1)
The probability that the midprice goes up before it goes down
(spread>1)
The probability that an order at the bid executes before the
Laplace transforms
The two-sided Laplace transform
f (s) = E [e sT ] =
e st f (t)dt
Laplace transforms
The two-sided Laplace transform
f (s) = E [e sT ] =
e st f (t)dt
f (t) =
1 2i
+i i
e ts f (s)ds
Laplace transforms
The two-sided Laplace transform
f (s) = E [e sT ] =
e st f (t)dt
f (t) =
1 2i
+i i
e ts f (s)ds
Laplace transforms
The two-sided Laplace transform
f (s) = E [e sT ] =
e st f (t)dt
f (t) =
1 2i
+i i
e ts f (s)ds
T i ,i 1 - rst time that the BD process goes from i to i 1 The Laplace transform of the rst passage time
i ,i 1 fi ,i 1(s) = E [e sT ]
T i ,i 1 - rst time that the BD process goes from i to i 1 The Laplace transform of the rst passage time
i ,i 1 fi ,i 1(s) = E [e sT ]
k=1 where
ak lim wn n bk n 1,
k 1.
k=1 where
ak lim wn n bk n 1,
ak , bk + u
k 1.
starting at b
starting at b
b = b,b1 + b1,b2 + + 1,0 where i ,i 1 denotes the rst-passage time of the birth-death process from the state i to the state i 1
starting at b
b = b,b1 + b1,b2 + + 1,0 where i ,i 1 denotes the rst-passage time of the birth-death process from the state i to the state i 1
The Laplace transform of b
fb (s) =
b=1 i k=i
k + k + s
Theorem
Pa,b P[a < b ] is given by the inverse Laplace transform of 1 Fa,b (s) = fb (s)fa (s), s evaluated at t = 0, where fb (s) = 1
b
b=1 i k=i
( + k) + ( + k) + s
is given by the inverse Laplace transform of 1 Fa,b,S (s) = hb (s)ha (s), s evaluated at t = 0, where hb (s) = and S1 (i ). i =1 (fb (s + ) 1) fb (s + ) + +s
Theorem
Pa,b P[b < a ] is given by the inverse Laplace transform of 1 Fa,b (s) = gb (s)fa (s), s evaluated at t = 0, where gb (s) = ib1 =1 + i . + i + s
Proposition
The probability Pa,b P[max{b , a } < min{b , a }] of making the spread is given by ha,b + hb,a , where
a
ha,b =
i =0 j=1
P[j < i ]
0
X (t)i , i!
a,j
X (t) tk W k (Q ) k! a
1 e t
W Qa t
k=0
a,j
W Qa
0 0 0 0 0 0 0 + 0 . . . . .. .. . . . . . . . . 0 0 + (a 1) (a 1)
b 1 2 3 4 5
b 1 2 3 4 5
b 1 2 3 4 5
Conclusion
Markov chain
Conclusion
Markov chain
Conditional on the best bid and ask prices, each price level is
Conclusion
Markov chain
Conditional on the best bid and ask prices, each price level is
quotes data
Conclusion
Markov chain
Conditional on the best bid and ask prices, each price level is
quotes data
We nd that our simulation is comparable to the data
Conclusion
Markov chain
Conditional on the best bid and ask prices, each price level is
quotes data
We nd that our simulation is comparable to the data We use Laplace transform methods to compute conditional
probabilities
Conclusion
Markov chain
Conditional on the best bid and ask prices, each price level is
quotes data
We nd that our simulation is comparable to the data We use Laplace transform methods to compute conditional
probabilities
Thanks! Any questions?