116
1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Embed Size (px)

Citation preview

Page 1: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

1

Trading mechanisms, Roll model

Fabrizio LilloLecture 2

Page 2: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Market microstructure

• Market microstructure “is devoted to theoretical, empirical, and experimental research on the economics of securities markets, including the role of information in the price discovery process, the definition, measurement, control, and determinants of liquidity and transactions costs, and their implications for the efficiency, welfare, and regulation of alternative trading mechanisms and market structures” (NBER Working Group)

Page 3: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Garman (1976)

• “We depart from the usual approaches of the theory of exchange by (1) making the assumption of asynchronous, temporally discrete market activities on the part of market agents and (2) adopting a viewpoint which treats the temporal microstructure, i.e. moment-to-moment aggregate exchange behavior, as an important descriptive aspect of such markets.”

Page 4: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Characteristics

• Securities value comprises private and common components– Common: cash flow– Private: Information, investment horizon, risk

exposure– Heterogeneous private values

• Specific about the market mechanism• Multiple characterization of prices (no

Walrasian tatonnement)

Page 5: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Liquidity• Elasticity • Cost of trading• “Depth, breadth, and resiliency”– Above the current market price there is a large incremental

quantity for sale– Many market participants, none with significant market power– Price effects die out quickly

• Liquidity suppliers (sell side: brokers, dealers, intermediaries)• Liquidity demanders (buy side: individuals and institutional investors)• Market (liquidity) consolidation vs fragmentation• “Liquidity is a lot like pornography: we know it when we see it and we

can measure it even if we do not know how to define it” (Lehman)

Page 6: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

The Questions (Hasbrouck)

• What are the optimal trading strategies for typical trading problems?

• Exactly how is information impounded in prices?• How do we enhance the information aggregation process?• How do we avoid market failures?• What sort of trading arrangements maximize efficiency?• How is market structure related to the valuation of

securities?• What can market/trading data tell us about the

informational environment of the firm?• What can market/trading data tell us about long term risk?

Page 7: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Financial data

• In the last thirty years the degree of resolution of financial data has increased– Daily data– Tick by tick data– Order book data– “Agent” resolved data

• High frequency data are like a powerful microscope -> Change in the nature of social sciences ?

• High frequency data require sophisticated stochastic modeling and statistical techniques

Page 8: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Daily data• Daily financial data are available at least since nineteenth

century• Usually these data contains opening, closing, high, and low

price in the day together with the daily volume• Standard time series methods to investigate these data

(from Gopikrishnan et al 1999)

Page 9: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Tick by tick data

• Financial high frequency data usually refer to data sampled at a time horizon smaller than the trading day

• The usage of such data in finance dates back to the eighties of the last century – Berkeley Option Data (CBOE)– TORQ database (NYSE)– HFDF93 by Olsen and Associates (FX)– CFTC (Futures)

Page 10: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• Higher resolution means new problems • data size: example of a year of a LSE stock

– 12kB (daily data)– 15MB (tick by tick data)– 100MB (order book data)– the total volume of data related to US large caps in 2007

was 57 million lines, approximately a gigabyte of stored data

– A large cap stock in 2007 had on average 6 transactions per second, and on the order of 100 events per second affecting the order book

• irregular temporal spacing of events• the discreteness of the financial variables under investigation• problems related to proper definition of financial variables• intraday patterns• strong temporal correlations• specificity of the market structure and trading rules.

Page 11: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Data size Irregular temporal spacing

PeriodicitiesTemporal correlations

Page 12: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• More structured data require more sophisticated statistical tools

• data size: • more computational power• better filtering procedures

• irregular temporal spacing of events• point processes, ACD model, CTRW model…

• the discreteness of the financial variables under investigation• discrete variable processes

• problems related to proper definition of financial variables• intraday patterns• strong temporal correlations

• market microstructure• specificity of the market structure and trading rules.

• better understanding of the trading process

Page 13: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Trading mechanisms

• A trade is a preliminary agreement which sets in motion the clearing and settlement procedures that will result in a transfer of securities and funds

• Trading often involves a broker which may simply provide a conduit to the market but may also act as the customer’s agent.

• Principal-agent relationship• The broker’s duty is “best execution”: it provides

credit, clearing services, information, analytics. Usually it is not a counterparty.

Page 14: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Limit order book • Many stock exchanges (NYSE, LSE, Paris) works

through a double auction mechanism • Different levels oftransparency (recent at NYSE). Hidden and Iceberg orders• Many order books vsa consolidated limit orderBook• Price-time priority• Walk the book

Page 15: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Representation of limit order book dynamics

(Ponzi, Lillo, Mantegna 2007)

Page 16: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

A trading day

Page 17: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Floor market

• Old market structure• Now used only in US commodity futures markets (Chicago Board of Trade, New York Mercantile Exchange, Chicago Mercantile Exchange) • Little transparency on data• Bund futures at London International Financial Futures Exchange (LIFFE) and Eurex (1997)

Page 18: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Dealer market

• A dealer is an intermediary who is willing to act as a counterparty for the trades of his customers

• Foreign exchange, corporate bond, swap markets• Customers cannot typically place limit orders• A large customer can have relationships with many

competing dealers• Low transparency: quotes in response to customer

inquiries and not publicly available• Interdealer trading is also important (for dealer inventory

management). Limit order book for FX• Dealers facilitate large (block) trades. Upstairs or off book

market

Page 19: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Crossing networks

• A buyer and a seller are paired anonymously for an agreed-on quantity

• The trade is priced by reference to a price in another (typically the listed) market

• ITG’s POSIT, INSTINET, etc..

Page 20: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Fragmentation

Page 21: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Roll model (1984)• “It illustrates a dichotomy

fundamental to many microstructure models: the distinction between price components due to fundamental security value and those attributable to the market organization and trading process”

• It is also didactic in showing how to go from a structural model to a statistical model

Page 22: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Roll model (1984)• Random walk model of the efficient price

where ut is an i.i.d. noise with variance s2u

• All trades are conducted through a dealer who posts bid and ask prices

• Dealer incurs a noninformational cost c per trade (due to fixed costs: computers, telephone)

• The bid and the ask are

and thus the spread is 2c

mt mt 1 ut

bt mt c; at mt c

Page 23: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• The transaction price pt is

where qt=+1 (-1) if the customer is buyer (seller).

Moreover qt are assumed serially independent.• The variance of transaction price increments is

• The autocovariance of transaction price increments is

and it is zero for lag larger than one

Var (pt ) E[(pt pt 1)2] E[((mt qtc) (mt 1 qt 1c))

2]

E[qt 12 c 2 qt

2c 2 2qt 1qtc2 2qt 1utc 2qtutc ut

2] 2c 2 u2

1 Cov(pt 1pt ) c 2

pt mt qtc

Page 24: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• For example (Hasbrouck) the estimated first order covariance for PCO (Oct 2003) is g1=-0.0000294, which implies c=$0.017 and a spread 2c=$0.034. The time weighted spread is $0.032

• Roll model was used to determine the spread from transaction data

Autocorrelation function of transaction price returns (solid circles), absolute value of transaction price returns (open circles), returns of midprice sampled before each transaction (filled triangles), and returns of midprice sampled at each market event (filled squares) for the AstraZeneca (AZN) stock traded at LSE in 2002. The lags on the horizontal line are measured in event time.

Page 25: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Time series perspective• The autocovariance structure of transaction price

increments in the Roll model is the same as in a MA(1) process

• The Roll model is a structural model, while its time series representation is a statistical model

• By assuming covariance stationarity we can use the Wold theorem: any zero-mean covariance stationary process can be represented as

where et is a zero mean white noise process and kt is a linearly deterministic process (can be predicted arbitrarily well by a linear projection on past observation of xt)

x t jt j tj0

Page 26: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Asymmetric information models

Page 27: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• In the Roll model:– everyone possesses the same information– trades have no impact– Trading is not a strategic problem because agents

always face the same spread– Cost is fixed and uninformational

Page 28: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Asymmetric information models

• The security payoff is usually of a common value nature

• The primary benefit derived from ownership of the security is the resale value or terminal liquidating dividend that is the same for all holders

• But for trade to exist, we also need private value components, that is, diversification or risk exposure needs that are idiosyncratic to each agent

Page 29: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• Public information initially consists of common knowledge concerning the probability structure of the economy, in particular the unconditional distribution of terminal security value and the distribution of types of agents

• As trading unfolds, the most important updates to the public information set are market data, such as bids, asks, and the prices and volumes of trades

• The majority of the asymmetric information models in microstructure examine market dynamics subject to a single source of uncertainty

• Thus, the trading process is an adjustment from one well-defined information set to another (no stationarity, ergodicity, time-homogeneity)

Page 30: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• Sequential trade models: randomly selected traders arrive at the market singly, sequentially, and independently. (Copeland and Galai (1983) and Glosten and Milgrom (1985)).– When an individual trader only participates in the market

once, there is no need for her to take into account the effect her actions might have on subsequent decisions of others.

• Strategic trader models: A single informed agent who can trade at multiple times.– A trader who revisits the market, however, must make such

calculations, and they involve considerations of strategy• In both models a trade reveals something about the

agent’s private information

Page 31: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

31

Strategic model, Kyle model

Fabrizio LilloLecture 4

Page 32: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Strategic model: Kyle (1985)

• The model describes a case of information asymmetry and the way in which information is incorporated into price.

• It is an equilibrium model• There are several variants: single period,

multiple period, continuous time• The model postulates three (types of) agents:

an informed trader, a noise trader, and a market maker (MM)

Page 33: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• The terminal (liquidation) value of the asset is v, normally distributed with mean p0 and variance S0.

• The informed trader knows v and enters a demand x

• Noise traders submit a net order flow u, normally distributed with mean 0 and variance s2

u.

• The MM observes the total demand y=x+u and then sets a price p. All the trades are cleared at p, any imbalance is exchanged by the MM.

Page 34: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• The informed trader wants to trade as much as possible to exploit her informational advantage

• However the MM knows that there is an informed trader and if the total demand is large (in absolute value) she is likely to incur in a loss. Thus the MM protects herself by setting a price that is increasing in the net order flow.

• The solution to the model is an expression of this trade-off

Page 35: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Informed trader• The informed trader conjectures that the MM uses a

linear price adjustment rule p=ly+m, where l is inversely related to liquidity.

• The informed trader’s profit is =p (v-p)x =x[v-l(u+x)-m]

and the expected profit isE[p]=x(v-lx- )m

• The informed traders maximizes the expected profit, i.e.

x=(v- )/2m l• In Kyle’s model the informed trader can loose money,

but on average she makes a profit

Page 36: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Market maker

• The MM conjectures that the informed trader’s demand is linear in v, i.e. x= +a bv

• Knowing the optimization process of the informed trader, the MM solves

(v- )/2 = +m l a bv=- /2 =1/2a m l b l

• As liquidity drops the informed agent trades less• The MM observes y and sets

p=E[v|y]

Page 37: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Solution

• If X and Y are bivariate normal variables, it isE[Y|X=x]=mY+(sXY/sx

2)(x-mX)• This can be used to find

E[v|y]=E[v|u+ +a bv]• The solution is

p0

u2

0

; p0; 1

2

0

u2;

u2

0

;

Page 38: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Solution (II)• The impact is linear and the liquidity increases

with the amount of noise traders

• The informed agent trades more when she can hide her demand in the noise traders demand

• The expected profit of the informed agent depends on the amount of noise traders

• The noise traders loose money and the MM breaks even (on average)

pp0 1

2

0

u2 y

x (v p0) u

2

0

E (v p0)2

2

u2

0

Page 39: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Kyle model - summary

• The model can be extended to multiple periods in discrete or in continuous time

• The main predictions of the model are– The informed agent “slices and dices” her order

flow in order to hide in the noise trader order flow– Linear price impact– Uncorrelated total order flow– Permanent and fixed impact

Page 40: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Current microstructural paradigm• There are two types of traders: informed and uninformed• Informed traders have access to valuable information about

the future price of the asset (fundamental value)• Informed traders sell (buy) over- (under-)priced stocks

making profit AND, through their own impact, drive quickly back the price toward its fundamental value

• Examples: Kyle, Glosten-Milgrom

• In this way information is incorporated into prices, markets are efficient, and prices are unpredictable

Page 41: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Current paradigm

mispricing D

news arrives

Page 42: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Is this the right explanation? Orders of magnitude

• Information– How large is the relative uncertainty on the fundamental value? 10-3

or 1 (Black 1986)– Financial experts are on the whole pretty bad in forecasting earnings

and target prices– Many large price fluctuations not explained by public news

• Time– Time scale for news: 1 hour-1day (?)– Time scale for trading: 10-1s:100s– Time scale for market events: 10-2:10-1s– Time scale for “large” price fluctuations: 10 per day

• Volume– Daily volume: 10-3:10-2 of the market capitalization of a stock– Volume available in the book at a given time: 10-4:10-5 of the market

capitalization– Volume investment funds want to buy: up to 1% of a company

Page 43: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Consequences

• Financial markets are in a state of latent liquidity, meaning that the displayed liquidity is a tiny fraction of the true (hidden) liquidity supplied/demanded

• Delayed market clearing: traders are forced to split their large orders in pieces traded incrementally as the liquidity becomes available

• Market participants forms a kind of ecology, where different species act on different sides of liquidity demand/supply and trade with very different time scales

Page 44: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

44

Empirical market microstructure

Fabrizio LilloLecture 5

Page 45: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Mechanical price formation

“Market”Price impactOrder flow Price process

• Price impact is the correlation between an incoming order and the subsequent price change

• For traders impact is a cost -> Controlling impact• Volume vs temporal dependence of the impact

Page 46: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Price (or market) impact

• Price impact is the correlation between an incoming order and the subsequent price change

• For traders impact is a cost -> Controlling impact

• Volume vs temporal dependence of the impact

Page 47: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Why price impact?

• Given that in any transaction there is a buyer and a seller, why is there price impact?– Agents successfully forecast short term price movements

and trade accordingly (i.e. trade has no effect on price and noise trades have no impact)

– The impact of trades reveals some private information (but if trades are anonymous, how is it possible to distinguish informed trades?)

– Impact is a statistical effect due to order flow fluctuations (zero-intelligence models, self-fulfilling prophecy)

“Orders do not impact prices. It is more accurate to say that orders forecast prices” (Hasbrouck 2007)

Page 48: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Market impact

• Market impact is the price reaction to trades• However it may indicate many different quantities– Price reaction to individual trades– Price reaction to an aggregate number of trades– Price reaction to a set of orders of the same sign placed

consecutively by the same trader (hidden order)– Price reaction in a market to a trade in another market

(e.g. electronic market and block market)

Page 49: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Volume and temporal component of market impact of individual trades

• Market impact is the expected price change due to a transaction of a given volume. The response function is the expected price change at a future time

R(l ) E[(ptl pt ) t ]

f (V ) E[(pt1 pt ) t v t V ]

Page 50: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Impact of individual transaction is NOT universal

Paris Bourse (Potters et al. 2003)

London Stock Exchange

Individual market impact is a concave function of the volume

NYSE

Master curve for individual impact

Page 51: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Master curve for individual impact

GROUP A -> least capitalized groupGROUP T -> most capitalized group

NYSE

(Lillo et al. Nature 2003)

Page 52: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Price impact from book shape

Let indicate the cumulative number of shares (depth) up to price return rA market order of size V will produce a return

For example if

then the price impact is

Page 53: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Real and virtual impact• Is this explanation in terms of the relation between price impact and the limit order book shape correct ?• The basic assumptions are:• the traders placing market orders trade their desired volume

irrespectively from what is present on the limit order book • the limit order book is filled in a continuous way, i.e. all the price

levels are filled with limit orders

• We test the first assumption by measuring the virtual price impact, i.e. the price shift that would have been observed in a given instant of time if a market order of size V arrived in the market• We test the second assumption by considering the fluctuations of market impact

Page 54: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2
Page 55: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2
Page 56: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Fluctuations of the impactLet us decompose the conditional probability of a return r conditioned to an order of volume V as

and we investigate the cumulative probability

for several different value of V.

This is the cumulative probability of a price return r conditioned to the volume and to the fact that price

moves

Page 57: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• The role of the transaction volume is negligible. The volume is important in determining whether the price moves or not

• The fluctuations in market impact are important

Different curves correspond to different

trade volume

Independent fromthe volume !!

Page 58: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

58

• The impact function is NOT deterministic and the fluctuations of price impact are very large. • These results show that the picture of the book as an approximately constant object is substantially wrong

• Central role of fluctuations in the state of the book

• How can small volume transactions create large price changes ?

Page 59: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

59

• Large price changes are due to the granularity of supply and demand • The granularity is quantified by the size of gaps in the Limit Order Book

first gap

Casestudy

Page 60: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Origin of large price returns

• First gap distribution (red) and return distribution (black)

Large price returns are caused by the presence of large gaps in the order book

Page 61: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Tail exponents (Farmer et al 2004)

Low liquidity (red), medium liquidity (blue), high liquidity (green)

A similar exponent describes also the probability density of the successive gaps

Page 62: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Walking up the book?

# of gaps 0 1 2 3 4 5 >5

AZN 44% 49% 5.8% 0.80% 0.15% 0.026% 0.22%

VOD 64% 34% 1.7% 0.094% 0.010% 0.0002% 0.19%

• The analysis of transactions in both large and small tick size LSE stocks reveal that the “walking up” of the book, i.e. a trades that involves more than one price level in the limit order book, is an extremely rare event

• •This again strengthens the idea that market order traders strongly condition their order size to the best available volume

• Thus the use of the instantaneous shape of the limit order book for computing the market liquidity risk can be very misleading

Page 63: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

63

Financial markets are sometimes found in a state of temporary liquidity crisis, given by

a sparse state of the book. Even small transactions can trigger large spread and

market instabilities.• Are these crises persistent?• How does the market react to these crises?• What is the permanent effect of the crises

on prices?

Page 64: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Persistence of spread and gap sizeDFA of spread (Plerou et al 2005)

Page 65: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Market reaction to temporary liquidity crises• We quantify the market reaction to large spread changes. • The presence of large spread poses challenging questions to thetraders on the optimal way to trade.• Liquidity takers have a strong disincentive for submitting marketorders given that the cost, the bid-ask spread, is large• Liquidity provider can profit of a large spread byplacing limit orders and obtaining the best position.However the optimal order placement inside the spread is a nontrivial problem.

• Rapidly closing the spread -> priority but risk of informed traders• Slowly closing the spread -> “testing” the informed traders but risk of losing

priority

Page 66: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

66(see also Mike and Farmer 2006)

Traders’ behavior (order flow)

Spread is an important determinant in order placement decision process

Page 67: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

67

Limit order placement inside the spread (see also Mike and Farmer 2006)

Waiting time between two spread variations

Page 68: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

68

We wish to answer the question: how does the spread s(t) return to a normal value after a spread variation? To this end we introduce the quantity

Page 69: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

zero permanent impact

completely permanent impact

Permanent impact

Permanent impact is roughly proportional to immediate impact

Page 70: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Limit order placement

(from Zovko and Farmer 2002)

Limit order price is power law distributed with a tail exponent in the range 1.5-2.5Moreover limit order price is correlated with volatility

Page 71: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

An utility maximization argumentFor a given limit price D, volatility s, and investment horizon T the investor is faced with the lottery

From first passage time of the price random walk

So the expected utility is where u(D) is the utility function.Agent optimizes her limit order placement by choosing the lottery (i.e. the value of D) which maximizes the expected utility. For several choices of u(D) it is possible to solve the problem analytically. For example for power utility function u(x)=C xa

Some variable must be highly fluctuating: market (s) or agent (a or T)?

Page 72: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Firms are credit entities and investment firms which are members of the stock exchange and are entitled to trade in the market. Roughly 200 Firms in the BME and LSE (350/250 in the NYSE)

• The investigated markets are:• Spanish Stock Exchange (BME) 2001-2004• London Stock Exchange (LSE) 2002-2004.

Market member (broker) data

• Investigation at the level of market members and not of the agents (individuals and institutions• The dataset covers the whole market• The resolution is at the level of individual trade (no temporal aggregation)

Page 73: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

It is possible to show that heterogeneity in volatility or utility function cannot explain the value of the exponent empirically observed.The only possibility is a strong heterogeneity in investment horizon T

Heterogeneity in volatility Heterogeneity in traders preferences

Curiously, the same exponent of the time scale distribution is obtained by considering the time to fill of limit orders, metaorder splitting (see below), and a modified GARCH (Borland and Bouchaud 2005)

Page 74: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Aggregate impact

Page 75: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Impact of an aggregated number of transactions

Page 76: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

76

Impact of an aggregated number of transactions

Page 77: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Order flow• One of the key problem in the analysis of

markets is the understanding of the relation between the order flow and the process of price formation.

• The order flow is strongly depending on - the decisions and strategies of traders - the exploiting of arbitrage

opportunities• This problem is thus related to the balance

between supply and demand and to the origin of the market efficiency.

Page 78: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• We investigate the London Stock Exchange in the period 1999-2002• We consider market orders, i.e. orders to buy at the best available price triggering a trade • We consider the symbolic time series obtained by replacing buy orders with +1 and sell orders with -1• The order flow is studied mainly in event time

Market order flow

....+1,+1,-1,-1,-1,+1,-1,+1,+1,+1,-1,-1,+1,...

Page 79: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Order flow dynamics

Time series of signs of market orders is a long memory process (Lillo and Farmer 2004, Bouchaud et al 2004)

C() 0.5

• Why is the order flow a long-memory process ? • We show (empirically) that:• It is likely due to splitting• It requires a huge heterogeneity in agent size

Page 80: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Limit Orders Cancellations

The sign time series of the three types of orders

is a long-memory processHurst exponent

Page 81: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Long memory and efficiency• How can the long memory of order flow be compatible with market efficiency?

• In the previous slides we have shown two empirical facts

• Single transaction impact is on average non zero and given by

• The sign time series is a long memory process

E r v sign(v) f (v) f (v)

E tt

Page 82: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Naïve model• Consider a naïve random walk model of price

dynamics

• It follows that

• If market order signs et are strongly correlated in time, price returns are also strongly correlated, prices are easily predictable, and the market inefficient.

pt1 pt rt t f v t t

E rtrt E tt

Page 83: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• It is not possible to have an impact model where the impact is both fixed and permanent

• There are two possible modifications– A fixed but transient impact model (Bouchaud et

al. 2004)– A permanent but variable (history dependent)

impact model (Lillo and Farmer 2004, Gerig 2007, Farmer, Gerig, Lillo, Waelbroeck)

Page 84: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Fixed but transient impact model (Bouchaud et al 2004)

where the propagator G0(k) is a decreasing function.

The propagator can be chosen such as to make the market exactly efficient. This can be done by imposing that the volatility diffuses normally. The volatility at scale is

where D is a correlation-induced contribution

The model assumes that the price just after the (t-1)-th transaction is

and return is

pt p G0(k) t k f (v t k ) noisek1

rt pt1 pt G0(1) t f (v t ) [G0(k 1) G0(k)] t k f (v t k ) noisek1

Vl E[(pnl pn )2] G0

2(l j) [G0(l j) G0( j)]2 2(l )2lj0

j0

l

l

Page 85: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

The correlation in the order flow decays as a power law with exponent g

Page 86: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

The model is able to make predictions on the response function defined as

which can be re-expressed in terms of the propagator and of the order sign correlation C j

Rl E[n (pnl pn )]

Page 87: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2
Page 88: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

History dependent, permanent impact model

• We assume that agents can be divided in three classes– Directional traders (liquidity takers) which have large

hidden orders to unload and create a correlated order flow

– Liquidity providers, who post bid and offer and attempt to earn the spread

– Noise traders• The strategies of the first two types of agents will

adjust to remove the predictability of price changes

Page 89: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

We neglect volume fluctuations and we assume that the naïve model is modified as

pt1 pt rt t ˆ t t

ˆ t E t 1 t

where W is the information set of the liquidity provider.

Model for price diffusion

Ex post there are two possibilities, either the predictor was right or wrong

Let q+t (q-

t) be the probability that the next order has the same (opposite) sign of the predictor and r+

t (r-t) are the corresponding price change

Page 90: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• The efficiency condition Et-1[rt|W]=0 can be rewritten as

• The market maker has expectations on q+t

and q-t given her information set W and

adjusts r+t and r-

t in order to make the market efficient

-----> MARKET EFFICIENCY ASYMMETRIC LIQUIDITY MODEL

qtrt

qt rt

0

Page 91: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Empirical evidence of asymmetric liquidity

Page 92: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

A linear model The history dependent, permanent model is completely defined when one fixes

- the information set of the liquidity provider - the model used by the liquidity provider to build her forecast

As an important example we consider the case in which- the information set is made only by the past order flow- the liquidity provider uses a finite or infinite order

autoregressive model to forecast order flow

ˆ t

rt t ait ii1

K

t

Page 93: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

If the order flow is long memory, i.e. the optimal parameters of the autoregressive model are and the number of lags K in the model should be infinite.

If, more realistically, K is finite the optimal parameters of the autoregressive model follows the same scaling behavior with k

Under these assumptions and if K is infinite the linear model becomes mathematically equivalent to the fixed-temporary model (or propagator) model by Bouchaud et al. with

E tt

ak k 3

2 k 1

Page 94: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• Asymmetric liquidity depends on the information set W.

• This model predicts the existence of two classes of traders that are natural counterparties in many transactions – Large institutions creates predictable component of

order flow by splitting their large hidden orders– Hedge funds and high frequency traders removes this

predictability by adjusting liquidity (and making profit)• This ecology of market participants is empirically

detectable?• What is the interaction pattern between market

participants?

Page 95: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2
Page 96: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2
Page 97: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2
Page 98: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2
Page 99: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2
Page 100: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2
Page 101: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Hidden orders• In financial markets large investors usually need to trade large quantities that can significantly affect prices. The associated cost is called market impact • For this reason large investors refrain from revealing their demand or supply and they typically trade their large orders incrementally over an extended period of time. • These large orders are called packages or hidden orders and are split in smaller trades as the result of a complex optimization procedure which takes into account the investor’s preference, risk aversion, investment horizon, etc..

• We want to detect empirically the presence of hidden orders from the trading profile of the investors

Page 102: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Model of order splitting• There are N hidden orders (traders). • An hidden order of size L is composed by L revealed orders• The initial size L of each hidden order is taken by a given probability distribution P(L). The sign si (buy or sell) of the hidden order is initially set to +1 or -1 in a random way. • At each time step an hidden order i is picked randomly and a revealed order of sign si is placed in the market. The size of the hidden order is decreased by one unit.. • When an hidden order is completely executed, a new hidden order is created with a new size and a new sign.

Page 103: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

• We assume that the distribution of initial hidden order size is a Pareto distribution

The rationale behind this assumption is that

1. It is known that the market value of mutual funds is distributed as a Pareto distribution (Gabaix et al., 2003)

2. It is likely that the size of an hidden order is proportional to the firm placing the order

Page 104: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

We prove that the time series of the signs of the revealed order has an autocorrelation function decaying asymptotically as

Page 105: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Testing the models• It is very difficult to test the model because it is difficult to have information on the size and number of hidden orders present at a given time.• We try to cope with this problem by taking advantage of the structure of financial markets such as London Stock Exchange (LSE).• At LSE there are two alternative methods of trading

- The on-book (or downstairs) market is public and execution is completely automated (Limit Order Book)

- The off-book (or upstairs) market is based on personal bilateral exchange of information and trading.

We assume that revealed orders are placed in the on-book market, whereas off-book orders are proxies of hidden

orders

Page 106: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Volume distributionThe volume of on-book and off-book trades have different

statistical properties

• The exponenta=1.5 for the hidden order size and the market order sign autocorrelation exponent g are consistent with the order splitting model which predicts the relation = -1g a .

Is it possible to identify directly hidden orders?

Page 107: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Firms are credit entities and investment firms which are members of the stock exchange and are entitled to trade in the market. 200 Firms in the BME (350/250 in the NYSE)

• The investigated market is the Spanish Stock Exchange (BME).

Our investigation

• Investigation at the level of market members and not of the agents (individuals and institutions• The dataset covers the whole market• The resolution is at the level of individual trade (no temporal aggregation)

Page 108: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

A typical inventory profile

Credit Agricole trading Santander

Page 109: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Detecting hidden orders

We developed a statistical method to identify periods of time when an investor was consistently (buying or selling) at a constant rate -> Hidden orders

Page 110: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Distributional properties of hidden ordersInvestment horizon

Volume of the order

Number of transactions

Circles and squares are data taken from Chan and Lakonishok at NYSE (1995) and Gallagher and Looi at Australian Stock Exchange (2006)

Page 111: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Large hidden ordersThe distributions of large hidden orders sizes are characterized by power law tails.

Power law heterogeneity of investor typical (time or volume) scale

These results are not consistent with the theory of Gabaix et al. Nature 2003)

Page 112: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Allometric relations of hidden ordersWe measure the relation between the variables characterizing hidden orders by performing a Principal Component Analysis to the logarithm of variables.

Page 113: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Comments• The almost linear relation between N and V indicates that

traders do not increase the transaction size above the available liquidity at the best (see also Farmer et al 2004)

• For the Nm-Vm and the T-Nm relations the fraction of variance explained by the first principal value is pretty high

• For the T-Vm relation the fraction of variance explained by the first principal value is smaller, probably indicating an heterogeneity in the level of aggressiveness of the firm.

• Also in this case our exponents (1.9, 0.66, 1.1) are quite different from the one predicted by Gabaix et al theory (1/2, 1, 1/2)

Page 114: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Role of agents heterogeneity

• We have obtained the distributional properties and the allometric relations of the variables characterizing hidden orders by pooling together all the investigated firms

• Are these results an effect of the aggregation of firms or do they hold also at the level of individual firm?

Page 115: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Heterogeneity and power law tails• For each firm with at least 10 detected hidden

orders we performed a Jarque-Bera test of the lognormality of the distribution of T, Nm, and Vm

• For the vast majority of the firms we cannot reject the hypothesis of lognormality

• The power law tails of hidden order distributions is mainly due to firms (size?) heterogeneity

BBVA SAN TEF

Page 116: 1 Trading mechanisms, Roll model Fabrizio Lillo Lecture 2

Individual firms