Trading Non Linear
Trading Non Linear
Introduction
This paper proposes a model that takes into account, in a rather stylized form,
some aspects of automated trading mechanisms adopted in modern financial
markets, in particular, the dynamics of the limit order book.
In short, a limit order book keeps records of arivals, movements and departures of market participants (traders) who declare their trading positions. An
arriving trader may wish to buy or sell at a certain price, and can move his
declared price when time progresses. If the declared price is met by a trader
with the opposite intention, a trade is recorded: this may lead to disappearance
of one or both participants from the market, due to exhaustion of their offers.
For a detailed description of some common limit order book models and their
applications, see [2, 3, 4] and references therein.
1
Institute for Information Transmission Problems, RAS, Moscow, Russia
2
DPMMS, University of Cambridge, and St Johns College, Cambridge, UK
3
IME, Universidade de Sao Paulo, Sao Paulo, Brazil
In the current paper we present a somewhat different model, including elements of queueing behavior of arrived offers; this model is studied by using
techniques of asymptotic analysis. An earlier account of this work (in its preliminary version) can be found in [1]. Compared with [1], in the present text
we adopt a continuous-time setting for the basic Markov process: it clarifies the
meaning of the main parameters of the model and shortens the proof of some
of our main results.
The model under consideration is a prototype; at this stage it does not aim
to take into account all possible aspects that can be viewed as defining, either
theoretically or practically. Instead, we opted for a simplified description which
leads to some straightforward, yet instructive, answers.
Our model differs from known models of the limit order book in a number of
aspects. Arguably, it can be a subject of criticism (as a number of other proposed
models). In particular, the strategic behavior of the model in its current form
(and some further details) do not quite match existing mechanisms governing
electronic trading on financial markets. Nevertheless, the model shows a certain
amount of flexibility, and covers a borad range of situations. Its mathematical
advantage is that in the scaling limit under consideration, it leads to a single
fixed point.
Our scaling limit is based on suppositions that (i) the number of market
participants is large, (ii) during a very short time period only part of them
makes a decision of performing a trade or maiking a move along the price range,
and (iii) the probability for any given participant to make such decision is small.
This makes it natural to change, in a suitable manner, parameters of original
Markov process.
After rescaling, a limiting dynamical system emerges, with a deterministic behavior described by a system of non-linear ordinary differential equations. The rescaling techniques greatly simplify the structure of the model,
and this phenomenon extends far beyond basic examples like the current prototype model. As we mentioned earlier, the present paper focuses on a simplified
model, with minimal number of constant parameters, where some of technically
involved issues are absent.
A similar approach is commonly used in the literature on stochastic communication networks; see, e.g., [5, 6, 7, 8] and [9]. We also find similarities,
as well as differences, with models proposed (in a different context) in a recent
paper [10]; analogies with [10] could be useful for the aforementioned purpose
of defining the prices that are appropriate for trades.
In the next section we describe the underlying Markov process. In Section
3 the rescaling of the process is presented and the main results are stated and
the proofs are given. The last section contains concluding discussion of various
aspects of the model.
state U (0) (deterministic or random), the distribution of the random state U (t)
at time t converges weakly to as t :
lim P U (t) = (b, s) = b, s .
t
and
M
sk (t ) = sk (t) + jk+1
(t, t ) nk (t, t ) jkM (t, t ) jkQ (t, t ).
Here ikM (t, t ) is the number of buyers who move within time interval (t, t ) from
level k to k + 1 and jkM (t, t ) that of sellers who move from level k to k 1.
Next, ikQ (t, t ) is the number of buyers who quit the system during interval (t, t )
from level k and jkQ (t, t ) the number of sellers who quit the system from level
k. Finally, nk (t, t ) is the number of buyers and sellers who got a trade over
(t, t ) at level k. All listed quantities are non-negative integer-values random
variables. For k = 1 the structure of the expression is similar, with the term
M
M
ik1
(t, t ) being replaced by i B (t, t ) 0, while for k = N the term jk+1
(t, t ) is
Scaling limit
The complexity
of the time-dynamics and of the equilibrium distribution for
process U (t) makes it desirable to develop efficient methods of approximation.
In this paper we focus on one such method based on scaling the parameters of
the process (including states and time-steps).
4
, Q = , M = .
L
L
L
(1)
bk
sk
t
, yk , .
L
L
L
(2)
1 (L)
U
L), 0.
L
(3)
Let RN
+ denote a positive orthant in N dimensions. Suppose we are given
N
a pair of vectors (x(0), y(0)) RN
+ R+ where x(0) = (x1 (0), . . . , xN (0)),
y(0) = (y1 (0), . . . , yN (0)). Consider the following system of first-order ODEs
for functions xk = xk ( ) and yk = yk ( ) where > 0 and 1 i N :
x 1 = B + x1 min x1 , y1 ,
x k = xk1 + xk min xk , yk , 1 < k N,
(4)
y k = yk+1 + yk min xk , yk , 1 k < N,
y N = S + yN min xN , yN ,
xk (0) 0, yk (0) 0, 1 k N.
The fixed point x , y of system (4) has
(5)
)
x = (x1 , . . . , xN ) and y = (y1 , . . . , yN
yk+1 =
+ yk + min xk , yk ,
1 k < N,
S
=
+ yN
+ min xN , yN
.
(1 )
(2 )
(3 )
(6)
(4 )
(In (6) we noted individual equations by addition signs that are used below).
Both systems (4) and (6) are non-linear. However, the non-linearity disappears
at a local level which greatly simplifies the analysis of these systems.
In Theorems 2 and 3 below, we use the distance generated by the Euclidean
norm in RN RN .
Theorem 2 (a) For any initial data (x(0), y(0)) with xi (0) 0, yi (0) 0,
1 i N for all > 0 there exists a unique solution (x( ), y( )), to problem
(4)(5) and xi ( ) > 0, yi ( ) > 0.
(b) As , the solution approaches a fixed point which is a unique
solution to system (6):
h
i
(7)
dist x( ), y( ) , x , y 0.
k<i
k>j
(8)
Then for the solutions (x( ), y( )), (x ( ), y ( )), to (4), with the initial conditions (x(0), y(0)) = (x, y) and (x (0), y (0)) = (x , y ), for all > 0,
xk ( ) xk ( ), and yk ( ) yk ( ).
(9)
and
h
i
xk (0) = max B /( + ), max xi (0) , yk (0) = 0.
i
By Propositions 1 and 2
xk ( ) xk ( ) xk ( ), yk ( ) yk ( ) yk ( ).
(10)
(0)
(0)
L2
B /
L(0)
1
(1)
L2
(2)
L2
MN
(1)
L1
B /( + )
B / ( + + )
(1)
(1)
and o2
( + + )
B
,
( + + ) ( + )( + + )2 + 2
(2)
(2)
(1)
(2)
where o2
lies on the
and 3) a line segment L2 joining o2 with the point o2 on the horizontal axis:
B
(2)
o2 =
,
0
.
( + )2
8
(1)
(2)
The slopes dw/dv of segments L2 and L2 are negative, but the slope flattens
(1)
(2)
when we pass from L2 to L2 .
In the above figure, L1 and L2 are shown on the same (v, w)-plane R2 ; in
this figure line L2 lies to the left of L1 . (The third broken line, MN present in
the figure is explained below.)
A similar picture persists when we iterate, i.e., pass from (v2 , w2 ) to (v3 , w3 )
and so on. At step k (vk , wk ) 7 (vk+1 , wk+1 ) where again the map is 1 - 1,
(vk+1 , wk+1 ) belongs to a continuous broken line Lk+1 in R2+ formed by k + 2
(0)
(1)
pieces. One piece, Lk+1 , is a vertical ray while the k + 1 others, Lk+1 , . . .,
(k+1)
Lk+1 , are line segments of negative slopes, the slope flattens when we pass
(1)
(k)
(k+1)
from Lk to Lk . The last segment, Lk+1 , joins a point on the bisectrix and
a point on the horizontal axis.
At the end of this process we obtain a continuous broken line LN , the locus
of points (vN , wN ). Our next step is to consider the intersection of LN and MN
where MN is the locus where
S = ( + )wN + min [vN , wN ].
More precisely, MN is a continuous broken line formed by a horizontal ray issued
from the point
S
S
,
,
++ ++
and a line segment joining this point with the point
S
0,
+
lying on the vertical axis. Cf. the figure.
We want to check that the point of intersection is always unique: it yields
to unique solution to (6).
Line LN may intersect the horizontal part of MN . That means that there
dwN
<
on LiN , 1 i < N .
dvN
+
9
(11)
(i)
(i)
(k)
(k)
Lk+1
and
(k+1)
Lk+1 .
(i)
Lk+1 ,
maps
i = 1, . . . , k+1
(i)
(k+1)
is steeper than that of Lk and the slope of Lk+1 is steeper than that
(i)
More, the slopes of LN , 0 < i N, are steeper then the steep segment
To show that consider three cases of the map Lk Lk+1 :
(k)
of Lk .
of MN .
Ak+1 ( + + ) dwk
2
dvk
dwk+1
2
= ( + + ) dwk ,
dvk+1
2
dvk
Bk (++) dwk ,
2
(12)
dvk
where, respectively,
( + )vk+1 + wk+1
( + + )wk
vk =
, wk+1 =
,
( + + )vk+1
( + + )wk
v =
, wk+1 =
,
k
( + )wk + vk
v = ( + + )vk+1 , w
.
k
k+1 =
vk
wk+1
and Bk = + +
.
Here Ak+1 = + +
vk+1
wk
Therefore for N > 2
dw
( + + )N 1 dw ( + + )N 1 +
N
1
>
=
N 1
dvN
dv
N 1
1
dw
>
.
=
dv MN
+
n
o
Then, for all T > 0, the process V (L) ( ), [0, T ] converges in probability
n
o
to the solution (x( ), y( )), 0 T . That is, > 0,
lim P
sup
0 T
n
h
io
dist V (L) ( ), (x( ), y( )) = 0.
= 0.
lim P sup dist V ( ), x , y
L
(13)
(14)
0 T
Moreover, if process U (t), is in equilibrium then Eqn (14) holds true.
Proof of Theorem 3. Let G(L) denote the generator of the Markov process {U (L) (t)} (with rates as in Eqn (1)). Then the action of matrix G(L) on
functions (b, s) of state variables b, s ZN
+ is determined by the equation
X
(b ek , s) (b, s) bk
L
1kN
+ (b, s ek ) (b, s) sk
X
+
(b ek + ek+1 , s) (b, s) bk
L
1k<N
X
+
(b, s ek + ek1 ) (b, s) sk
G(L) (b, s) =
(15)
1<kN
+B (b + e1 , s) (b, s) + S (b, s + eN ) (b, s)
+
X
(b ek , s ek ) (b, s) bk sk .
L
1kN
11
h
i
+B b + e1 L, s L b L, s L
h
i
+S b L, s + eN L b L, s L
X h
i
b ek L, s ek L b L, s L
b k sk L .
1kN
Next, we multiply the both side by L in agreement with the time-scale t L
in Eqn (2) and pass to the limit L . This yields
lim LG(L) (x, y)
(
X
+ yk
=
xk
xk
yk
h X1kN
X
i
+
xk
+
yk
xk+1
xk
yk1
yk
1k<N
1<kN
)
X
(x, y) .
+ S
+
xk yk
+ B
x1
yN
xi
yi
1kN
12
(0)
M yi+1
M xi1
s
b
(0)
(0)
(0)
, y =
, xi =
, y =
Q + M +
Q + M + N
Q + M i
Q + M
Next, let x(k) , y (k) , k = 1, 2, . . . be the solution to the system
(k1) (k1)
(k)
b
= q + m x1 + min x1
, y1
,
(k1) (k1)
(k)
(k)
, 1 < i N,
, yi
m xi1 = q + m xi + min xi
(k) (k1)
(k)
(k)
, 1 i < N,
m yi+1 = q + m yi + min xi , yi
(k) (k1)
(k)
.
s
= q + m yN + min xN , yN
(0)
x1 =
(k)
(k1)
(k)
<
, yi
> xi
These iterations converge because the inequalities xi
(k) (k)
hold true i, k 1 and, values xi , yi are uniformly bounded and
(k)
(k)
there exist lim xi , lim yi that, naturally, satisfy (6).
(k1)
yi
is
s
P so that xi < yi , 1 i N, then the amount of trades
P sufficiently large,
min[x
,
y
]
=
i
i
i xi is not changing by increase of s , all extra sellers
i
leave the market without performing any trade.
It is interesting to investigate the dependance of trade performance on
as , that is where the trade action happens almost immediately after
the moment when traders appear at some price level. Then almost all trades
happen at two levels i0 and i0 + 1, and xi is very small as i > i0 + 1, yi ia
very small as i < i0 . But our limit model does not permit to consider the case
= , though, sure the initial Markov process can be investigated in case of
immediate trade deals. The limiting case = of our model is close to the
problems investigated in [10].
We hope that the variation of these models parameters can help to determine factors attracting or repelling various market participants. An important
aspect of any model of the market is what possibilities it gives for an accurate
13
Acknowledgements
The authors thank the anonymous referees for stimulating critical remarks. NV
would like to thank the grant RFBR 11-01-00485-a. YS would like to thank
the FAPESP Foundation, Sao Paulo, Brazil, for providing a grant towards this
work, and NUMEC/IME, University of Sao Paulo, for warm hospitality.
References
[1] N.D. Vvedenskaya, Y. Suhov, V. Belitsky, A non-linear model of limit order
book dynamics,http://arXiv:1102.1104 (2011); a presentation held at ISIT2011 (St Petersburg, July 31August 5, 2011).
[2] R. Cont, S. Stoikov, R. Talreja, A stochastic model for order book dynamics,
Operations Research, vol. 58, pp. 549563, 2010.
[3] R. Cont, A. Kukanov, S. Stoikov, The price impact of order book events,
Technical paper, http://ssm.com./abstract=1712822 (2011).
[4] I. Rosu, A dynamic model of the limiting order book, Rev.Financial Studies,
vol. 22, pp. 46014641, 2009.
[5] N. D. Vvedenskaya, R. L. Dobrushin, F. I.Karpelevich, A queueing system
with selection of the shortest of two queues: an asymptotical approach,
Problems of Information Transmission, vol. 32, pp. 1527, 1996.
[6] M. Mitzenmacher, The power of two choices in randomized load balancing.
PhD Thesis, UC Berkeley, 1996.
[7] J.B. Martin, Yu.M. Suhov, Fast Jackson networks, Ann. Appl. Prob., vol.
9, 854870, 1999.
[8] N. D. Vvedenskaya, Y. M. Suhov, Multy access system with many users:
stability and metastability, Problems of Information Transmission, vol. 43,
pp. 263271, 2007.
14
15